Skip to content

Instantly share code, notes, and snippets.

@oholiab
Created May 10, 2013 10:36
Show Gist options
  • Save oholiab/5553646 to your computer and use it in GitHub Desktop.
Save oholiab/5553646 to your computer and use it in GitHub Desktop.
Gosu window
// 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