Not much lol
This commit is contained in:
@@ -6,6 +6,8 @@ Display::Display(std::string title, int width, int height) {
|
||||
}
|
||||
|
||||
m_window = SDL_CreateWindow(title.c_str(), SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, width, height, SDL_WINDOW_SHOWN);
|
||||
m_screenSurface = SDL_GetWindowSurface(m_window);
|
||||
|
||||
isClosed = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,6 +11,8 @@ public:
|
||||
virtual ~Display();
|
||||
private:
|
||||
SDL_Window *m_window;
|
||||
SDL_Surface *m_screenSurface;
|
||||
SDL_Surface *m_texture;
|
||||
bool isClosed;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
#define SCREEN_WIDTH 640
|
||||
#define SCREEN_HEIGHT 480
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
Game game("Crumpet engine", SCREEN_WIDTH, SCREEN_HEIGHT);
|
||||
|
||||
while (!game.IsDisplayClosed()) {
|
||||
|
||||
Reference in New Issue
Block a user