Created
May 10, 2013 10:36
-
-
Save oholiab/5553646 to your computer and use it in GitHub Desktop.
Gosu window
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
// All of Gosu. | |
#include <Gosu/Gosu.hpp> | |
// To safely include std::tr1::shared_ptr | |
#include <Gosu/TR1.hpp> | |
// Makes life easier for Windows users compiling this. | |
#include <Gosu/AutoLink.hpp> | |
class GameWindow : public Gosu::Window | |
{ | |
public: | |
GameWindow() | |
: Window(640, 480, false) | |
{ | |
setCaption(L"Gosu Tutorial Game"); | |
} | |
void update() | |
{ | |
// ... | |
} | |
void draw () | |
{ | |
// ... | |
} | |
}; | |
int main() | |
{ | |
GameWindow window; | |
window.show(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment