SDL-mirror/EXCLUDE/GLTSF/include/App.hpp
dewyatt 4ec949ec5b Added support for On_Resized event to App.
Added OpenGL code to draw a rotating triangle.
Rearranged main loop code.
2010-06-12 03:21:54 -04:00

36 lines
648 B
C++

#ifndef APP_HPP
#define APP_HPP
#include "Window.hpp"
class App : public Window_Listener
{
public:
App();
virtual ~App();
void Initialize();
void Finalize();
void Run();
virtual void On_Close();
virtual void On_Key_Down(int Key);
virtual void On_Key_Up(int Key);
virtual void On_Char(unsigned int Char);
virtual void On_Resized(unsigned int Width, unsigned int Height);
private:
void Update();
void Draw();
static const int Width = 800;
static const int Height = 600;
static const int Bits_Per_Pixel = 32;
static const bool Fullscreen = true;
Window my_Window;
bool my_Done;
};
#endif