Table of Contents

Class DialogManager

Namespace
OmegaGUI.Render
Assembly
OmegaGUI.dll

Manages shared resources of DirectX-based dialogs

public sealed class DialogManager : IDisposable
Inheritance
DialogManager
Implements
Inherited Members
Extension Methods

Constructors

DialogManager(Engine)

Sets up the GUI system for usage with a rendering engine

public DialogManager(Engine engine)

Parameters

engine Engine

The rendering engine containing the Direct3D device

Properties

Device

Gets the DirectX device

public Device Device { get; }

Property Value

Device

Disposed

Has this manager been disposed?

[Browsable(false)]
public bool Disposed { get; }

Property Value

bool

Engine

Gets the render engine

public Engine? Engine { get; }

Property Value

Engine

MessageBox

Gets a Specialized MessageBox dialog

public MessageBox MessageBox { get; }

Property Value

MessageBox

Sprite

public Sprite? Sprite { get; }

Property Value

Sprite

StateBlock

public StateBlock? StateBlock { get; }

Property Value

StateBlock

Target

Gets the render target control

public Control Target { get; }

Property Value

Control

Methods

AddFont(string, uint, FontWeight)

Adds a font to the resource manager

public int AddFont(string faceName, uint height, FontWeight weight)

Parameters

faceName string
height uint
weight FontWeight

Returns

int

AddTexture(string)

Adds a texture to the resource manager

public int AddTexture(string filename)

Parameters

filename string

Returns

int

CreateFont(int)

Creates a font

public void CreateFont(int font)

Parameters

font int

CreateTexture(int)

Creates a texture

public void CreateTexture(int tex)

Parameters

tex int

Dispose()

Unhooks the OmegaGUI system from the Engine and disposes its internal DirectX resources

public void Dispose()

~DialogManager()

protected ~DialogManager()

GetFontNode(int)

Gets a font node from the cache

public FontNode GetFontNode(int index)

Parameters

index int

Returns

FontNode

GetTextureNode(int)

Gets a texture node from the cache

public TextureNode GetTextureNode(int index)

Parameters

index int

Returns

TextureNode

OnCreateDevice()

Called when the device is created

public void OnCreateDevice()

OnLostDevice()

Called when the device has been lost.

public void OnLostDevice()

OnResetDevice()

Called when the device has been reset.

public void OnResetDevice()