removed STL usage of Extras/ConvexBuilder and replaced by btAlignedObjectArray
fixed several warnings, thanks to sparkprime added comments patch for linear math, thanks to Tully Foote
This commit is contained in:
@@ -36,7 +36,6 @@ subject to the following restrictions:
|
||||
|
||||
#include "BMF_Api.h"
|
||||
#include <stdio.h> //printf debugging
|
||||
#include <vector>
|
||||
|
||||
|
||||
#include "ConvexDecompositionDemo.h"
|
||||
|
||||
@@ -167,7 +167,7 @@ void Raytracer::clientMoveAndDisplay()
|
||||
displayCallback();
|
||||
}
|
||||
|
||||
int once = 1;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -353,20 +353,20 @@ void Raytracer::displayCallback()
|
||||
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
glDisable(GL_LIGHTING);
|
||||
if (once)
|
||||
if (!m_initialized)
|
||||
{
|
||||
m_initialized = true;
|
||||
glGenTextures(1, &glTextureId);
|
||||
glBindTexture(GL_TEXTURE_2D,glTextureId );
|
||||
once = 0;
|
||||
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
glBindTexture(GL_TEXTURE_2D,glTextureId );
|
||||
|
||||
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
|
||||
|
||||
glDisable(GL_TEXTURE_2D);
|
||||
glDisable(GL_BLEND);
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ class Raytracer : public DemoApplication
|
||||
btCollisionDispatcher* m_dispatcher;
|
||||
btAxisSweep3* m_overlappingPairCache;
|
||||
btCollisionWorld* m_collisionWorld;
|
||||
bool m_initialized;
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user