GetExecutablePath

static inline std::string GetExecutablePath()

Returns the path of the program executable.

This function should only be called after calling Setup::SetupProgram.

Examples

// Get the path of the executable //
std::string executablePath = Setup::GetExecutablePath();


Other functions of the class Setup
SetupProgram
Sets up OpenLayer and the other libraries
SetupScreen
Sets up the program window or the fullscreen mode
GetWindowWidth
Returns the width of the program window
GetWindowHeight
Returns the height of the program window
GetColorDepth
Returns the color depth of the program window
GetExecutablePath
Returns the path of the program executable
ToAbsolutePathname
Converts the relative pathname to an absolute one

Advanced functions

IsProgramSetUp
Returns true if SetupProgram is called
IsScreenSetUp
Returns true if SetupScreen is called


Questions about GetExecutablePath? Click here.