add RenderDemo to CpuDemo.
This commit is contained in:
36
Demos3/CpuDemos/rendering/RenderDemo.h
Normal file
36
Demos3/CpuDemos/rendering/RenderDemo.h
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
#include "../CpuDemo.h"
|
||||
|
||||
struct RenderDemo : public CpuDemo
|
||||
{
|
||||
GLInstancingRenderer* m_instancingRenderer;
|
||||
|
||||
virtual void initPhysics(const ConstructionInfo& ci);
|
||||
|
||||
virtual void exitPhysics();
|
||||
|
||||
virtual void renderScene();
|
||||
|
||||
virtual void clientMoveAndDisplay();
|
||||
virtual const char* getName() {
|
||||
return "RenderDemo";
|
||||
}
|
||||
virtual bool mouseMoveCallback(float x,float y)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
virtual bool mouseButtonCallback(int button, int state, float x, float y)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
virtual bool keyboardCallback(int key, int state)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
static CpuDemo* MyCreateFunc()
|
||||
{
|
||||
CpuDemo* demo = new RenderDemo;
|
||||
return demo;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user