Table of Contents

Class RenderPanel

Namespace
OmegaEngine
Assembly
OmegaEngine.dll

A Panel that automatically provides an Engine instance for rendering on it, an optional timer-driver render loop, input handling, etc.

public class RenderPanel : TouchPanel, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, ITouchControl
Inheritance
RenderPanel
Implements
Inherited Members
Extension Methods

Constructors

RenderPanel()

public RenderPanel()

Properties

AutoRender

When set to true Render() is automatically called in regular intervals.

public bool AutoRender { get; set; }

Property Value

bool
See Also

AutoRenderInterval

The interval in milliseconds in which Render() is automatically called.

public int AutoRenderInterval { get; set; }

Property Value

int
See Also

Engine

The Engine used to render graphics onto this panel.

[Browsable(false)]
public Engine Engine { get; }

Property Value

Engine

KeyboardInputProvider

A default KeyboardInputProvider hooked up to the Panel.

[Browsable(false)]
public KeyboardInputProvider KeyboardInputProvider { get; }

Property Value

KeyboardInputProvider

MouseInputProvider

A default MouseInputProvider hooked up to the Panel.

[Browsable(false)]
public MouseInputProvider MouseInputProvider { get; }

Property Value

MouseInputProvider

TouchInputProvider

A default TouchInputProvider hooked up to the Panel.

[Browsable(false)]
public TouchInputProvider TouchInputProvider { get; }

Property Value

TouchInputProvider

Methods

AddInputReceiver(IInputReceiver)

public void AddInputReceiver(IInputReceiver receiver)

Parameters

receiver IInputReceiver

The object to receive the commands.

Dispose(bool)

Releases the unmanaged resources used by the Control and its child controls and optionally releases the managed resources.

protected override void Dispose(bool disposing)

Parameters

disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

OnPaint(PaintEventArgs)

Raises the Paint event.

protected override void OnPaint(PaintEventArgs e)

Parameters

e PaintEventArgs

A PaintEventArgs that contains the event data.

OnResize(EventArgs)

Fires the event indicating that the panel has been resized. Inheriting controls should use this in favor of actually listening to the event, but should still call base.onResize to ensure that the event is fired for external listeners.

protected override void OnResize(EventArgs eventargs)

Parameters

eventargs EventArgs

An EventArgs that contains the event data.

RemoveInputReceiver(IInputReceiver)

public void RemoveInputReceiver(IInputReceiver receiver)

Parameters

receiver IInputReceiver

The object to no longer receive the commands.

Setup()

Initializes the Engine for rendering on this Panel.

public Engine Setup()

Returns

Engine

The newly initialized Engine.

Remarks

Calling this multiple times will always return the same Engine instance.

Exceptions

NotSupportedException

The graphics card does not meet the engine's minimum requirements.

Direct3D9NotFoundException

Throw if required DirectX version is missing.

Direct3DX9NotFoundException

Throw if required DirectX version is missing.

Direct3D9Exception

Internal errors occurred while initializing the graphics card.

DirectSoundException

Internal errors occurred while initializing the sound card.