Last active
August 29, 2015 14:06
-
-
Save johan-bjareholt/3b2432c42a04f99f83af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class EventReceiver : public IEventReceiver | |
{ | |
public: | |
virtual bool OnEvent(const SEvent& event) | |
{ | |
return false; | |
} | |
}; | |
/* | |
Inside the start loop | |
*/ | |
int load(){ | |
EventReceiver eventReceiver;// = EventReceiver(); | |
// Create video device | |
device = | |
createDevice( video::EDT_OPENGL, dimension2d<u32>(640, 480), 16, | |
fullscreen, stencilbuffer, vsync, &eventReceiver); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment