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, IRenderHost
Inheritance
object
MarshalByRefObject
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

Provides keyboard input.

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

Property Value

KeyboardInputProvider

MouseInputProvider

Provides mouse input.

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

Property Value

MouseInputProvider

TouchInputProvider

Provides touch input.

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

Property Value

TouchInputProvider

Methods

Dispose(bool)

protected override void Dispose(bool disposing)

Parameters

disposing bool

OnPaint(PaintEventArgs)

protected override void OnPaint(PaintEventArgs e)

Parameters

e PaintEventArgs

OnResize(EventArgs)

protected override void OnResize(EventArgs eventargs)

Parameters

eventargs EventArgs

Setup()

Initializes the Engine for rendering on this Panel.

[MemberNotNull("Engine")]
[MemberNotNull("KeyboardInputProvider")]
[MemberNotNull("MouseInputProvider")]
[MemberNotNull("TouchInputProvider")]
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.

Direct3DX9NotFoundException

d3dx9_43.dll is missing.

Direct3D9Exception

Internal errors occurred while initializing the graphics card.