-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathWindow.h
More file actions
37 lines (28 loc) · 809 Bytes
/
Window.h
File metadata and controls
37 lines (28 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// Window.h
// KSDL
//
// Created by Kyle Koser on 8/5/14.
// Copyright (c) 2014 Kyle Koser. All rights reserved.
//
#ifndef __KSDL__Window__
#define __KSDL__Window__
#include <SDl2/SDL.h>
#include <stack>
#include "ViewController.h"
class Window {
public:
Window( const char *title, int aX, int aY, int aHeight, int aWidth, Uint32 aFlags );
virtual ~Window();
SDL_Renderer* getRenderer();
ViewController* getRootViewController();
void run();
void setRootViewController(ViewController *aViewController);
void pushViewController(ViewController * aViewController);
void popViewController();
private:
SDL_Renderer *renderer;
std::stack<ViewController *> viewControllerStack;
SDL_Window *window;
};
#endif /* defined(__KSDL__Window__) */