Class DialogManager
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
EngineThe 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
Engine
Gets the render engine
public Engine? Engine { get; }
Property Value
MessageBox
Gets a Specialized MessageBox dialog
public MessageBox MessageBox { get; }
Property Value
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
Methods
AddFont(string, uint, FontWeight)
Adds a font to the resource manager
public int AddFont(string faceName, uint height, FontWeight weight)
Parameters
Returns
AddTexture(string)
Adds a texture to the resource manager
public int AddTexture(string filename)
Parameters
filename
string
Returns
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()
public void Dispose()
~DialogManager()
protected ~DialogManager()
GetFontNode(int)
Gets a font node from the cache
public FontNode GetFontNode(int index)
Parameters
index
int
Returns
GetTextureNode(int)
Gets a texture node from the cache
public TextureNode GetTextureNode(int index)
Parameters
index
int
Returns
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()