File: EmptyExample.h

package info (click to toggle)
bullet 2.83.7%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 48,772 kB
  • sloc: cpp: 355,312; lisp: 12,087; ansic: 11,969; python: 644; makefile: 116; xml: 27
file content (32 lines) | stat: -rw-r--r-- 789 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef EMPTY_EXAMPLE_H
#define EMPTY_EXAMPLE_H

#include "../CommonInterfaces/CommonExampleInterface.h"

class EmptyExample : public CommonExampleInterface
{
public:

	EmptyExample() {}
	virtual ~EmptyExample(){}

	static CommonExampleInterface* CreateFunc(struct CommonExampleOptions& /* unusedOptions*/)
	{
		return new EmptyExample;
	}

	virtual void    initPhysics(){}
	virtual void    exitPhysics(){}
	virtual void	stepSimulation(float deltaTime){}
	virtual void	renderScene(){}
	virtual void	physicsDebugDraw(int debugFlags){}
	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;}

};

 

#endif //EMPTY_EXAMPLE_H