add basic legacy OpenGL2 rendering
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
|
||||
|
||||
|
||||
#include "BasicExample.h"
|
||||
|
||||
#include "btBulletDynamicsCommon.h"
|
||||
@@ -21,6 +22,7 @@ struct BasicExample : public CommonRigidBodyBase
|
||||
}
|
||||
virtual ~BasicExample(){}
|
||||
virtual void initPhysics();
|
||||
virtual void renderScene();
|
||||
};
|
||||
|
||||
void BasicExample::initPhysics()
|
||||
@@ -102,6 +104,15 @@ void BasicExample::initPhysics()
|
||||
}
|
||||
|
||||
|
||||
void BasicExample::renderScene()
|
||||
{
|
||||
CommonRigidBodyBase::renderScene();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ExampleInterface* BasicExampleCreateFunc(PhysicsInterface* pint, GUIHelperInterface* helper, int option)
|
||||
{
|
||||
@@ -110,6 +121,3 @@ ExampleInterface* BasicExampleCreateFunc(PhysicsInterface* pint, GUIHelperInt
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user