Window

A class representing a window

It wrapps a SDL_Window and SDL_Renderer wich can both be freely retrived and manipulated

Constructors

this
this(int screenWidth, int screenHeight)
this
this(uint screenWidth, uint screenHeight, string title)

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

getHeight
int getHeight()

Returns the height of the screen in pixels

getRenderer
SDL_Renderer* getRenderer()

Returns a reference to the SDL_Renderer wrapped in this class

getWidth
int getWidth()

Returns the width of the screen in pixels

getWindow
SDL_Window* getWindow()

Returns a reference to the SDL_Window wrapped in this class

Meta