- AddScene
void AddScene(Scene scene)
adds a scene to the project scene array
- GetGameDirectory
string GetGameDirectory()
gets the directory the game executable is in
- GetResolution
Vec2!int GetResolution()
gets the resolution of the window
- Init
void Init()
- InitLibs
void InitLibs()
initialises the text library
- InitWindow
void InitWindow(string name, int w, int h, bool resizable)
- KeyPressed
bool KeyPressed(SDL_Scancode key)
checks if a key is pressed
- LoadFontData
void LoadFontData(ubyte[] data)
Undocumented in source. Be warned that the author may not have intended to support it.
- LoadFontFile
void LoadFontFile(string path, int pointSize)
Undocumented in source. Be warned that the author may not have intended to support it.
- LoadTextureFromData
Texture LoadTextureFromData(ubyte[] data)
loads a texture from raw file data
- LoadTextureFromFile
Texture LoadTextureFromFile(string fileName)
loads a texture from a file
- Run
void Run()
- SetResolution
void SetResolution(uint w, uint h)
sets the logical resolution of the window
- SetScene
void SetScene(Scene scene)
sets the current scene to a scene from the project scene array
- SetScene
void SetScene(size_t index)
sets the current scene to a scene from the project scene array
- SetWindowSize
void SetWindowSize(uint w, uint h)
main project class used for the game as a whole