Ketchup Engine
Loading...
Searching...
No Matches
EngineSettings Class Reference

#include <EngineSettings.h>

Collaboration diagram for EngineSettings:
Collaboration graph

Public Member Functions

 EngineSettings ()
 
 EngineSettings (const EngineSettings &)=delete
 
EngineSettingsoperator= (const EngineSettings &)=delete
 
virtual ~EngineSettings ()=default
 

Protected Member Functions

void SetWindowName (const char *pWindowName)
 
void SetWidthHeight (const int width, const int height)
 
void SetVsync (bool enable)
 
void SetClearColor (float red, float green, float blue, float alpha)
 

Private Member Functions

virtual void LoadResources ()
 Loads the resources necessary for the game. Called automatically by Ketchup when Run() is called, after InitGame(). To be overridden by user.
 
virtual void InitGame ()
 Initializes the game. Called automatically by Ketchup when Run() is called. To be overridden by user.
 
virtual void EndGame ()
 Cleans up the game after running. Called automatically by Ketchup at the end of the game. To be overridden by user.
 
void Attach (Ketchup *k)
 

Private Attributes

Ketchupp_ketchup
 

Friends

class EngineSettingsAttorney
 

Constructor & Destructor Documentation

◆ EngineSettings() [1/2]

EngineSettings::EngineSettings ( )

◆ EngineSettings() [2/2]

EngineSettings::EngineSettings ( const EngineSettings )
delete

◆ ~EngineSettings()

virtual EngineSettings::~EngineSettings ( )
virtualdefault

Member Function Documentation

◆ Attach()

void EngineSettings::Attach ( Ketchup k)
private

◆ EndGame()

virtual void EngineSettings::EndGame ( )
inlineprivatevirtual

Cleans up the game after running. Called automatically by Ketchup at the end of the game. To be overridden by user.

Haru, 3/22/2023.

◆ InitGame()

virtual void EngineSettings::InitGame ( )
inlineprivatevirtual

Initializes the game. Called automatically by Ketchup when Run() is called. To be overridden by user.

Haru, 3/22/2023.

◆ LoadResources()

virtual void EngineSettings::LoadResources ( )
inlineprivatevirtual

Loads the resources necessary for the game. Called automatically by Ketchup when Run() is called, after InitGame(). To be overridden by user.

Haru, 3/22/2023.

◆ operator=()

EngineSettings & EngineSettings::operator= ( const EngineSettings )
delete

◆ SetClearColor()

void EngineSettings::SetClearColor ( float  red,
float  green,
float  blue,
float  alpha 
)
protected

◆ SetVsync()

void EngineSettings::SetVsync ( bool  enable)
protected

◆ SetWidthHeight()

void EngineSettings::SetWidthHeight ( const int  width,
const int  height 
)
protected

◆ SetWindowName()

void EngineSettings::SetWindowName ( const char *  pWindowName)
protected

Friends And Related Function Documentation

◆ EngineSettingsAttorney

friend class EngineSettingsAttorney
friend

Member Data Documentation

◆ p_ketchup

Ketchup* EngineSettings::p_ketchup
private

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