Night Byte
Public Member Functions | Static Public Member Functions | List of all members
Engine Class Reference

Public Member Functions

 Engine (Engine &other)=delete
 
void operator= (const Engine &)=delete
 
void initWindow (int SCREEN_WIDTH, int SCREEN_HEIGHT)
 
void closeWindow ()
 
EngineRenderingAdaptergetRenderingAdapter ()
 

Static Public Member Functions

static EnginegetInstance ()
 
static void renderImGui (bool &cheatMode)
 
static void clearImGui ()
 
static bool ShowCheckBox (const std::string &label, bool *value)
 
static bool InputFloat (const std::string &label, float *value)
 
static bool InputInt (const std::string &label, int *value)
 
static bool InputText (const std::string &label, char *value, int bufferSize)
 
static bool Button (const std::string &label)
 

Member Function Documentation

◆ closeWindow()

void Engine::closeWindow ( )

Close the game window

Clears the SDL_Window pointer in the Engine class and calls SDL_DestroyWindow & SDL_Quit.

◆ initWindow()

void Engine::initWindow ( int  SCREEN_WIDTH,
int  SCREEN_HEIGHT 
)

Initialize the game window

Stores a SDL_Window pointer in the Engine class.

Parameters
SCREEN_WIDTHThe width of the window.
SCREEN_HEIGHTThe height of the window.

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