tweak OpenCL particle demo

This commit is contained in:
erwin.coumans
2010-07-24 06:52:55 +00:00
parent 9bee6f6afd
commit 51869dceda
4 changed files with 21 additions and 20 deletions

View File

@@ -42,10 +42,11 @@ subject to the following restrictions:
#include "btParticlesSharedDefs.h"
#include "btParticlesSharedTypes.h"
#define PARTICLES_MAX_PARTICLES (65536)
#define PARTICLES_MAX_NEIGHBORS (32)
#define DEF_PARTICLE_RADIUS (0.023f)
#define WORLD_SIZE 1.9f
//#define WORLD_SIZE 1.9f
#define WORLD_SIZE 1.f
enum
{
@@ -137,7 +138,7 @@ public:
btParticlesDynamicsWorld(btDispatcher* dispatcher,btBroadphaseInterface* pairCache,btConstraintSolver* constraintSolver,btCollisionConfiguration* collisionConfiguration,
int maxObjs = PARTICLES_MAX_PARTICLES, int maxNeighbors = PARTICLES_MAX_NEIGHBORS)
int maxObjs , int maxNeighbors = PARTICLES_MAX_NEIGHBORS)
: btDiscreteDynamicsWorld(dispatcher, pairCache, constraintSolver, collisionConfiguration)
{
m_cxMainContext = 0;