add basic legacy OpenGL2 rendering

This commit is contained in:
erwin coumans
2015-04-20 15:28:52 -07:00
parent 482deb1fca
commit 13396d32bf
14 changed files with 1080 additions and 100 deletions

View File

@@ -51,7 +51,7 @@ static ExampleInterface* sCurrentDemo = 0;
static b3AlignedObjectArray<const char*> allNames;
static class ExampleEntries* gAllExamples=0;
static bool sUseOpenGL2 = false;
bool sUseOpenGL2 = false;
bool drawGUI=true;
extern bool useShadowMap;
static bool visualWireframe=false;
@@ -237,7 +237,7 @@ void selectDemo(int demoIndex)
{
s_parameterInterface->removeAllParameters();
int option = gAllExamples->getExampleOption(demoIndex);
s_guiHelper= new OpenGLGuiHelper(s_app);
s_guiHelper= new OpenGLGuiHelper(s_app, sUseOpenGL2);
sCurrentDemo = (*func)(0,s_guiHelper, option);
if (sCurrentDemo)
{