Sandbox

From Newton Wiki
Jump to: navigation, search

Template:Languages

 #include <stdafx.h>
 #include <dVector.h>
 #include "OpenGlUtil.h"
 #include "CreateScene.h"
 
 #define USE_VISUAL_DEBUGGER
 #define DEMO_FPS_IN_MICROSECUNDS (int (1000000.0f/100.0f))
 
 static int g_currentTime;
 static int g_physicTime;
 static int g_timeAccumulator = DEMO_FPS_IN_MICROSECUNDS;
 
 static int g_entityCount;
 static Entity** g_EntityArray;
 
 static void* g_newtonDebugger;
 static NewtonWorld* g_world;
 
 static void ShutDown ();
 static void* AllocMemory (int sizeInBytes);
 static void FreeMemory (void *ptr, int sizeInBytes);
 static void AdvanceSimulation (int timeInMilisecunds);
 
 #pragma warning (disable: 4100) //unreferenced formal parameter
 #pragma warning (disable: 4702) //unreachable code


Sandbox