mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-20 23:23:47 +00:00
Removes bits of code and includes that are based on old 360, xbox and PS3 flags that are no longer needed.
This commit is contained in:
parent
513789c2c7
commit
26fd24fbab
43 changed files with 35 additions and 356 deletions
|
|
@ -29,11 +29,7 @@ extern void zero_vert_normal_bulk_SSE(const dsize_t count, U8 * __restrict const
|
|||
#
|
||||
#elif defined(TORQUE_CPU_PPC)
|
||||
# // PPC CPU family implementations
|
||||
# if defined(TORQUE_OS_XENON)
|
||||
extern void zero_vert_normal_bulk_X360(const dsize_t count, U8 * __restrict const outPtr, const dsize_t outStride);
|
||||
# else
|
||||
extern void zero_vert_normal_bulk_gccvec(const dsize_t count, U8 * __restrict const outPtr, const dsize_t outStride);
|
||||
# endif
|
||||
#
|
||||
#else
|
||||
# // Other CPU types go here...
|
||||
|
|
|
|||
|
|
@ -54,10 +54,6 @@
|
|||
|
||||
#include "opcode/Opcode.h"
|
||||
|
||||
#if defined(TORQUE_OS_XENON)
|
||||
# include "platformXbox/platformXbox.h"
|
||||
#endif
|
||||
|
||||
GFXPrimitiveType drawTypes[] = { GFXTriangleList, GFXTriangleStrip };
|
||||
#define getDrawType(a) (drawTypes[a])
|
||||
|
||||
|
|
|
|||
|
|
@ -47,14 +47,6 @@
|
|||
|
||||
#include "core/util/safeDelete.h"
|
||||
|
||||
#if defined(TORQUE_OS_XENON)
|
||||
//# define USE_MEM_VERTEX_BUFFERS
|
||||
#endif
|
||||
|
||||
#if defined(USE_MEM_VERTEX_BUFFERS)
|
||||
# include "gfx/D3D9/360/gfx360MemVertexBuffer.h"
|
||||
#endif
|
||||
|
||||
namespace Opcode { class Model; class MeshInterface; }
|
||||
namespace IceMaths { class IndexedTriangle; class Point; }
|
||||
|
||||
|
|
@ -89,12 +81,7 @@ struct TSDrawPrimitive
|
|||
S32 matIndex; ///< holds material index & element type (see above enum)
|
||||
};
|
||||
|
||||
#if defined(USE_MEM_VERTEX_BUFFERS)
|
||||
struct __NullVertexStruct {};
|
||||
typedef GFX360MemVertexBufferHandle<__NullVertexStruct> TSVertexBufferHandle;
|
||||
#else
|
||||
typedef GFXVertexBufferDataHandle TSVertexBufferHandle;
|
||||
#endif
|
||||
|
||||
class TSMesh;
|
||||
class TSShapeAlloc;
|
||||
|
|
|
|||
|
|
@ -59,24 +59,19 @@ MODULE_BEGIN( TSMeshIntrinsics )
|
|||
// Assign defaults (C++ versions)
|
||||
zero_vert_normal_bulk = zero_vert_normal_bulk_C;
|
||||
|
||||
#if defined(TORQUE_OS_XENON)
|
||||
zero_vert_normal_bulk = zero_vert_normal_bulk_X360;
|
||||
#else
|
||||
// Find the best implementation for the current CPU
|
||||
if(Platform::SystemInfo.processor.properties & CPU_PROP_SSE)
|
||||
{
|
||||
#if (defined( TORQUE_CPU_X86 ) || defined( TORQUE_CPU_X64 ))
|
||||
|
||||
zero_vert_normal_bulk = zero_vert_normal_bulk_SSE;
|
||||
#endif
|
||||
#if (defined( TORQUE_CPU_X86 ) || defined( TORQUE_CPU_X64 ))
|
||||
zero_vert_normal_bulk = zero_vert_normal_bulk_SSE;
|
||||
#endif
|
||||
}
|
||||
else if(Platform::SystemInfo.processor.properties & CPU_PROP_ALTIVEC)
|
||||
{
|
||||
#if !defined(TORQUE_OS_XENON) && defined(TORQUE_CPU_PPC)
|
||||
zero_vert_normal_bulk = zero_vert_normal_bulk_gccvec;
|
||||
#endif
|
||||
#if defined(TORQUE_CPU_PPC)
|
||||
zero_vert_normal_bulk = zero_vert_normal_bulk_gccvec;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
MODULE_END;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue