mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
clean up
This commit is contained in:
parent
31481931e8
commit
a81c6ebd06
8 changed files with 201 additions and 187 deletions
|
|
@ -58,7 +58,7 @@ NvSimpleTypes.h : Defines basic data types for integers and floats.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#if defined(__APPLE__)
|
||||||
#include <sys/malloc.h>
|
#include <sys/malloc.h>
|
||||||
#else
|
#else
|
||||||
#if defined( __FreeBSD__)
|
#if defined( __FreeBSD__)
|
||||||
|
|
@ -78,7 +78,7 @@ NvSimpleTypes.h : Defines basic data types for integers and floats.
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WIN32
|
#if defined(WIN32)
|
||||||
typedef __int64 NxI64;
|
typedef __int64 NxI64;
|
||||||
typedef signed int NxI32;
|
typedef signed int NxI32;
|
||||||
typedef signed short NxI16;
|
typedef signed short NxI16;
|
||||||
|
|
@ -92,7 +92,7 @@ NvSimpleTypes.h : Defines basic data types for integers and floats.
|
||||||
typedef float NxF32;
|
typedef float NxF32;
|
||||||
typedef double NxF64;
|
typedef double NxF64;
|
||||||
|
|
||||||
#elif LINUX
|
#elif defined(LINUX)
|
||||||
typedef long long NxI64;
|
typedef long long NxI64;
|
||||||
typedef signed int NxI32;
|
typedef signed int NxI32;
|
||||||
typedef signed short NxI16;
|
typedef signed short NxI16;
|
||||||
|
|
@ -106,7 +106,7 @@ NvSimpleTypes.h : Defines basic data types for integers and floats.
|
||||||
typedef float NxF32;
|
typedef float NxF32;
|
||||||
typedef double NxF64;
|
typedef double NxF64;
|
||||||
|
|
||||||
#elif __APPLE__
|
#elif defined(__APPLE__)
|
||||||
typedef long long NxI64;
|
typedef long long NxI64;
|
||||||
typedef signed int NxI32;
|
typedef signed int NxI32;
|
||||||
typedef signed short NxI16;
|
typedef signed short NxI16;
|
||||||
|
|
@ -120,7 +120,7 @@ NvSimpleTypes.h : Defines basic data types for integers and floats.
|
||||||
typedef float NxF32;
|
typedef float NxF32;
|
||||||
typedef double NxF64;
|
typedef double NxF64;
|
||||||
|
|
||||||
#elif __CELLOS_LV2__
|
#elif defined(__FreeBSD__)
|
||||||
typedef long long NxI64;
|
typedef long long NxI64;
|
||||||
typedef signed int NxI32;
|
typedef signed int NxI32;
|
||||||
typedef signed short NxI16;
|
typedef signed short NxI16;
|
||||||
|
|
@ -134,7 +134,21 @@ NvSimpleTypes.h : Defines basic data types for integers and floats.
|
||||||
typedef float NxF32;
|
typedef float NxF32;
|
||||||
typedef double NxF64;
|
typedef double NxF64;
|
||||||
|
|
||||||
#elif _XBOX
|
#elif defined(__CELLOS_LV2__)
|
||||||
|
typedef long long NxI64;
|
||||||
|
typedef signed int NxI32;
|
||||||
|
typedef signed short NxI16;
|
||||||
|
typedef signed char NxI8;
|
||||||
|
|
||||||
|
typedef unsigned long long NxU64;
|
||||||
|
typedef unsigned int NxU32;
|
||||||
|
typedef unsigned short NxU16;
|
||||||
|
typedef unsigned char NxU8;
|
||||||
|
|
||||||
|
typedef float NxF32;
|
||||||
|
typedef double NxF64;
|
||||||
|
|
||||||
|
#elif defined(_XBOX)
|
||||||
typedef __int64 NxI64;
|
typedef __int64 NxI64;
|
||||||
typedef signed int NxI32;
|
typedef signed int NxI32;
|
||||||
typedef signed short NxI16;
|
typedef signed short NxI16;
|
||||||
|
|
|
||||||
|
|
@ -2656,7 +2656,7 @@ static NxI32 overhull(Plane *planes,NxI32 planes_count,float3 *verts, NxI32 vert
|
||||||
float3 *&verts_out, NxI32 &verts_count_out, NxI32 *&faces_out, NxI32 &faces_count_out ,NxF32 inflate)
|
float3 *&verts_out, NxI32 &verts_count_out, NxI32 *&faces_out, NxI32 &faces_count_out ,NxF32 inflate)
|
||||||
{
|
{
|
||||||
NxI32 i,j;
|
NxI32 i,j;
|
||||||
if (verts_count < 4) return 0; //XXTH NULL;
|
if (verts_count < 4) return 0;
|
||||||
maxplanes = Min(maxplanes,planes_count);
|
maxplanes = Min(maxplanes,planes_count);
|
||||||
float3 bmin(verts[0]),bmax(verts[0]);
|
float3 bmin(verts[0]),bmax(verts[0]);
|
||||||
for(i=0;i<verts_count;i++)
|
for(i=0;i<verts_count;i++)
|
||||||
|
|
|
||||||
|
|
@ -133,14 +133,20 @@ void tc_sleep(NxU32 ms)
|
||||||
|
|
||||||
void tc_spinloop()
|
void tc_spinloop()
|
||||||
{
|
{
|
||||||
#if defined(__linux__) || defined( __APPLE__ ) || defined( __FreeBSD__)
|
|
||||||
|
|
||||||
asm ( "pause" );
|
#if defined( _XBOX )
|
||||||
#elif defined( _XBOX )
|
|
||||||
// Pause would do nothing on the Xbox. Threads are not scheduled.
|
// Pause would do nothing on the Xbox. Threads are not scheduled.
|
||||||
#elif defined( _WIN64 )
|
#elif defined( _WIN64 )
|
||||||
YieldProcessor( );
|
YieldProcessor( );
|
||||||
#else
|
#elif defined( __APPLE__ )
|
||||||
|
pthread_yield_np();
|
||||||
|
#elif defined(__linux__) || defined(__FreeBSD__)
|
||||||
|
#if defined(_POSIX_PRIORITY_SCHEDULING)
|
||||||
|
sched_yield();
|
||||||
|
#else
|
||||||
|
asm("pause");
|
||||||
|
#endif
|
||||||
|
#elif
|
||||||
__asm { pause };
|
__asm { pause };
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -204,7 +204,6 @@ bool GFXGLTextureObject::copyToBmp(GBitmap * bmp)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//XXTH orig: glBindTexture(mBinding, NULL);
|
|
||||||
glBindTexture(mBinding, 0);
|
glBindTexture(mBinding, 0);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,6 @@ public:
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
PopupMenu::PopupMenu()
|
PopupMenu::PopupMenu()
|
||||||
{
|
{
|
||||||
//XXTH orig mMenuItems = NULL;
|
|
||||||
mMenuItems = 0;
|
mMenuItems = 0;
|
||||||
mMenuBarCtrl = nullptr;
|
mMenuBarCtrl = nullptr;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,7 @@
|
||||||
// IN THE SOFTWARE.
|
// IN THE SOFTWARE.
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
//XXTH orig #ifndef __APPLE__
|
#ifndef __APPLE__
|
||||||
#if not defined (__APPLE__) //and not defined (__FreeBSD__)
|
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
|
||||||
|
|
@ -149,10 +149,6 @@ void ProcessControlInit()
|
||||||
void Platform::postQuitMessage(const S32 in_quitVal)
|
void Platform::postQuitMessage(const S32 in_quitVal)
|
||||||
{
|
{
|
||||||
|
|
||||||
Process::requestShutdown();
|
|
||||||
return;
|
|
||||||
|
|
||||||
|
|
||||||
// if we have a window send a quit event, otherwise just force shutdown
|
// if we have a window send a quit event, otherwise just force shutdown
|
||||||
#if 0
|
#if 0
|
||||||
if (x86UNIXState->windowCreated())
|
if (x86UNIXState->windowCreated())
|
||||||
|
|
@ -161,10 +157,11 @@ void Platform::postQuitMessage(const S32 in_quitVal)
|
||||||
SendQuitEvent();
|
SendQuitEvent();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
forceShutdown(in_quitVal);
|
forceShutdown(in_quitVal);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
Process::requestShutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -788,7 +788,7 @@ class TSThread
|
||||||
keyPos = 0;
|
keyPos = 0;
|
||||||
mSeqPos = 0;
|
mSeqPos = 0;
|
||||||
mShapeInstance = NULL;
|
mShapeInstance = NULL;
|
||||||
makePath = false; //XXTH NULL;
|
makePath = false;
|
||||||
priority = 0;
|
priority = 0;
|
||||||
sequence = 0;
|
sequence = 0;
|
||||||
timeScale = 1.0f;
|
timeScale = 1.0f;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue