Added basic Window structure
This commit is contained in:
parent
2f42093946
commit
65e5993ee4
4 changed files with 70 additions and 30 deletions
17
include/RenderWindow.hpp
Normal file
17
include/RenderWindow.hpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
#pragma once
|
||||
|
||||
struct SDL_Window;
|
||||
struct SDL_Renderer;
|
||||
|
||||
class RenderWindow
|
||||
{
|
||||
public:
|
||||
RenderWindow(int width, int height);
|
||||
~RenderWindow();
|
||||
|
||||
void Run();
|
||||
|
||||
private:
|
||||
SDL_Window* window;
|
||||
SDL_Renderer* renderer;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue