class BuiltinEditorResources

Contains a set of built-in resources used by the editor.

Public

Constructors

BuiltinEditorResources

BuiltinEditorResources()

Methods

GetGUIStyleSheetCascade

const SPtr<const GUIStyleSheetCascade> GetGUIStyleSheetCascade() const

Returns default style sheet cascade for all editor GUI elements.

GetDefaultFont

const HFont &GetDefaultFont() const

Returns the default font used by the editor.

GetDefaultAaFont

const HFont &GetDefaultAaFont() const

Returns the default antialiased font used by the editor.

CreateDockDropOverlayMaterial

HMaterial CreateDockDropOverlayMaterial() const

Creates a material used for docking drop overlay used by the editor.

CreateSceneGridMaterial

HMaterial CreateSceneGridMaterial() const

Creates a material used for rendering the scene grid.

CreatePicking

HMaterial CreatePicking(CullingMode cullMode) const

Creates a material used for picking non-transparent objects in scene view.

CreatePickingAlpha

HMaterial CreatePickingAlpha(CullingMode cullMode) const

Creates a material used for picking transparent objects in scene view.

CreateLineGizmoMat

HMaterial CreateLineGizmoMat() const

Creates a material used for rendering line gizmos.

CreateSolidGizmoMat

HMaterial CreateSolidGizmoMat() const

Creates a material used for rendering solid gizmos.

CreateWireGizmoMat

HMaterial CreateWireGizmoMat() const

Creates a material used for rendering wireframe gizmos.

CreateIconGizmoMat

HMaterial CreateIconGizmoMat() const

Creates a material used for rendering icon gizmos.

CreateGizmoPickingMat

HMaterial CreateGizmoPickingMat() const

Creates a material used for picking non-transparent gizmos.

CreateAlphaGizmoPickingMat

HMaterial CreateAlphaGizmoPickingMat() const

Creates a material used for picking transparent gizmos.

CreateLineHandleMat

HMaterial CreateLineHandleMat() const

Creates a material used for rendering line handles.

CreateSolidHandleMat

HMaterial CreateSolidHandleMat() const

Creates a material used for rendering solid handles.

CreateTextGizmoMat

HMaterial CreateTextGizmoMat() const

Creates a material used for rendering text for gizmos and handles.

CreateHandleClearAlphaMat

HMaterial CreateHandleClearAlphaMat() const

Creates a material used for clearing the alpha channel of the handle rendering texture.

GetProjectLibraryIcon

HSpriteTexture GetProjectLibraryIcon(ProjectLibraryIcon icon, int size) const

Retrieves an icon that represents a specific resource type that may be displayed when viewing the project library.

GetSceneWindowIcon

GUIContentImages GetSceneWindowIcon(SceneWindowIcon icon) const

Retrieves an icon that may be displayed on the scene window.

GetSceneViewIcon

HSpriteTexture GetSceneViewIcon(SceneViewIcon icon) const

Retrieves an icon that may be displayed in the 3D scene view.

GetLibraryWindowIcon

HSpriteTexture GetLibraryWindowIcon(LibraryWindowIcon icon) const

Retrieves an icon that may be displayed on the library window.

GetInspectorWindowIcon

HSpriteTexture GetInspectorWindowIcon(InspectorWindowIcon icon) const

Retrieves an icon that may be displayed on the inspector window.

GetAnimationWindowIcon

GUIContentImages GetAnimationWindowIcon(AnimationWindowIcon icon) const

Retrieves an icon that may be displayed on the animation editor window.

GetEditorIcon

HSpriteTexture GetEditorIcon(EditorIcon icon) const

Retrieves an icon that represents a specific generic editor icon.

GetEditorToggleIcon

GUIContentImages GetEditorToggleIcon(EditorToggleIcon icon) const

Retrieves an icon that represents a specific generic editor icon used for toggleable elements.

GetLogMessageIcon

HSpriteTexture GetLogMessageIcon(LogMessageIcon icon, u32 size, bool dark) const

Retrieves an icon that represents a specific log message type.

GetSprite

HSpriteTexture GetSprite(EditorSprites sprite)

Retrieves a builtin editor sprite texture.

GetEmptyShaderCode

String GetEmptyShaderCode() const

Returns text contained in the default "empty" shader.

GetEmptyCsScriptCode

String GetEmptyCsScriptCode() const

Returns text contained in the default "empty" C# script.

staticGetSplashScreen

static SPtr<PixelData> GetSplashScreen()

Returns image data the Banshee Engine splash screen.

staticGetDefaultWidgetLayoutPath

static Path GetDefaultWidgetLayoutPath()

Returns absolute path to the default widget layout file.

staticInstance

static T &Instance()

Returns a reference to the module instance.

Module has to have been started up first otherwise an exception will be thrown.

staticInstancePtr

static T *InstancePtr()

Returns a pointer to the module instance.

Module has to have been started up first otherwise an exception will be thrown.

staticShutDown

static void ShutDown()

Shuts down this module and frees any resources it is using.

staticIsStarted

static bool IsStarted()

Query if the module has been started.

Protected

Methods

~Module<T>

virtual ~Module<T>() = default

OnStartUp

virtual void OnStartUp()

Override if you want your module to be notified once it has been constructed and started.

OnShutDown

virtual void OnShutDown()

Override if you want your module to be notified just before it is deleted.

staticInstanceInternal

static T *&InstanceInternal()

Returns a singleton instance of this module.

staticIsDestroyed

static bool &IsDestroyed()

Checks has the Module been shut down.

staticIsStartedUp

static bool &IsStartedUp()

Checks has the Module been started up.

Private

Methods

GetGuiIcon

HSpriteTexture GetGuiIcon(const String &name) const

Loads a GUI icon with the specified filename.

GetGuiIcon3D

HSpriteTexture GetGuiIcon3D(const String &name) const

Loads a GUI icon with the specified filename.

GetAnimatedSprite

HSpriteTexture GetAnimatedSprite(const String &name) const

Loads an animated sprite with the specified filename.

GetShader

HShader GetShader(const String &name) const

Loads a shader with the specified filename

Fields

mShaderDockOverlay

HShader mShaderDockOverlay

mShaderSceneGrid

HShader mShaderSceneGrid

mShaderPicking

HShader[3] mShaderPicking

mShaderPickingAlpha

HShader[3] mShaderPickingAlpha

mShaderGizmoSolid

HShader mShaderGizmoSolid

mShaderGizmoWire

HShader mShaderGizmoWire

mShaderGizmoLine

HShader mShaderGizmoLine

mShaderGizmoIcon

HShader mShaderGizmoIcon

mShaderGizmoPicking

HShader mShaderGizmoPicking

mShaderGizmoAlphaPicking

HShader mShaderGizmoAlphaPicking

mShaderGizmoText

HShader mShaderGizmoText

mShaderHandleSolid

HShader mShaderHandleSolid

mShaderHandleLine

HShader mShaderHandleLine

mShaderHandleClearAlpha

HShader mShaderHandleClearAlpha

mDefaultFont

HFont mDefaultFont

mDefaultAAFont

HFont mDefaultAAFont

mEditorGUIStyleSheet

HGUIStyleSheet mEditorGUIStyleSheet

mEditorGUIStyleSheetCascade

SPtr<GUIStyleSheetCascade> mEditorGUIStyleSheetCascade

BuiltinDataFolder

Path BuiltinDataFolder

BuiltinRawDataFolder

Path BuiltinRawDataFolder

EditorRawSkinFolder

Path EditorRawSkinFolder

EditorRawIconsFolder

Path EditorRawIconsFolder

EditorShaderFolder

Path EditorShaderFolder