class
BuiltinResources
Holds references to built-in resources used by the core engine.
Public
Constructors
BuiltinResources
Methods
~BuiltinResources
GetDefaultGUIStyleSheet
Returns the default style sheet used by the GUI, if no other style sheet is provided.
GetDefaultGUIStyleSheetCascade
Returns the default style sheet for GUI elements.
GetWhiteSpriteTexture
Returns a small entirely white texture.
GetDummyTexture
Returns a dummy 2x2 texture that may be used when no other is available.
Don't modify the returned texture.
GetCursorArrow
Returns image data for an arrow cursor, along with its hotspot.
GetCursorArrowDrag
Returns image data for an arrow with dragged object cursor, along with its hotspot.
GetCursorWait
Returns image data for a wait cursor, along with its hotspot.
GetCursorIBeam
Returns image data for an "I" beam cursor, along with its hotspot.
GetCursorSizeNesw
Returns image data for a NESW resize cursor, along with its hotspot.
GetCursorSizeNs
Returns image data for a NS resize cursor, along with its hotspot.
GetCursorSizeNwse
Returns image data for a NWSE resize cursor, along with its hotspot.
GetCursorSizeWe
Returns image data for a WE resize cursor, along with its hotspot.
GetCursorDeny
Returns image data for a deny cursor, along with its hotspot.
GetCursorMoveLeftRight
Returns image data for a move left-right cursor, along with its hotspot.
GetBuiltinShader
Returns one of the builtin shader types.
CreateSpriteTextMaterial
Creates a material used for textual sprite rendering (for example text in GUI).
CreateSpriteImageMaterial
Creates a material used for image sprite rendering (for example images in GUI).
CreateSpriteLineMaterial
Creates a material used for antialiased line rendering (for example curve rendering in GUI).
GetShader
Loads a shader at the specified path.
- path
- Path relative to the default shader folder with no file extension.
GetFont
Attempts to return a font of the given font family.
Returns the default font is provided font is not found.
GetOrCompileShader
Loads the shader with the specified name from the cache if available, or compiles the shader from source if not available.
- path
- Absolute path to the shader source file.
Returns: Valid shader if successful, or null otherwise.
GetDefaultFont
Returns the default font used by the engine.
staticGetTexture
Retrieves one of the builtin textures.
staticGetShaderFolder
Returns absolute path to the builtin shader folder where raw shader files are located.
staticGetUnitTestDataFolder
Returns the folder holding unit test resources.
staticGetShaderIncludeFolder
Returns absolute path to the builtin shader include folder.
staticGetEditorShaderIncludeFolder
Returns absolute path to the editor builtin shader include folder.
staticInstance
Returns a reference to the module instance.
Module has to have been started up first otherwise an exception will be thrown.
staticInstancePtr
Returns a pointer to the module instance.
Module has to have been started up first otherwise an exception will be thrown.
staticShutDown
Shuts down this module and frees any resources it is using.
staticIsStarted
Query if the module has been started.
Protected
Methods
~Module<T>
OnShutDown
Override if you want your module to be notified just before it is deleted.
staticInstanceInternal
Returns a singleton instance of this module.
Private
Methods
OnStartUp
Override if you want your module to be notified once it has been constructed and started.
GetSkinTexture
Loads a GUI skin texture with the specified filename.
GetCursorTexture
Loads a cursor texture with the specified filename.