Window Class - HPC-Vis/computer-graphics GitHub Wiki

Functions

Window()

Sets the window to 0.

~Window()

Stops the SLD window and closes it.

bool Initialize(const string &name, int* width, int* height)

Sets up the SDL widow with the given name of the given height and width.

void Swap()

This is used to swap the frame buffers of the window.

Variables

SDL_Window* gWindow

The window for SDL

SDL_GLContext gContext

The Window context