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
-
objectMarshalByRefObjectRenderPanel
- 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
- See Also
AutoRenderInterval
The interval in milliseconds in which Render() is automatically called.
public int AutoRenderInterval { get; set; }
Property Value
- See Also
Engine
The Engine used to render graphics onto this panel.
[Browsable(false)]
public Engine? Engine { get; }
Property Value
KeyboardInputProvider
Provides keyboard input.
[Browsable(false)]
public KeyboardInputProvider? KeyboardInputProvider { get; }
Property Value
MouseInputProvider
Provides mouse input.
[Browsable(false)]
public MouseInputProvider? MouseInputProvider { get; }
Property Value
TouchInputProvider
Provides touch input.
[Browsable(false)]
public TouchInputProvider? TouchInputProvider { get; }
Property Value
Methods
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
disposingbooltrue 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
ePaintEventArgsA 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
Setup()
public Engine Setup()
Returns
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.