Untitled Game engine no.5  1.0
Public Member Functions | Static Public Member Functions | List of all members
Engine::Window Class Reference

Wrapper for the display window. More...

#include <Window.hpp>

Public Member Functions

 Window (std::string title, int width, int height)
 
 ~Window ()
 Destructor.
 
void Shutdown ()
 Shutdown the window.
 
bool Init ()
 
void SwapBuffers ()
 Swap the buffers to render to the window.
 

Static Public Member Functions

static unsigned int GetWidth ()
 
static unsigned int GetHeight ()
 

Detailed Description

Wrapper for the display window.

Constructor & Destructor Documentation

◆ Window()

Engine::Window::Window ( std::string  title,
int  width,
int  height 
)

Creates a window

Parameters
titleof the window we are creating
widthof the window
heightof the window

Member Function Documentation

◆ GetHeight()

static unsigned int Engine::Window::GetHeight ( )
inlinestatic
Returns
the height of the window

◆ GetWidth()

static unsigned int Engine::Window::GetWidth ( )
inlinestatic
Returns
the width of the window

◆ Init()

bool Engine::Window::Init ( )

Initialize SDL and Window creation

Returns
false if the window could not be initialized

The documentation for this class was generated from the following files: