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
- 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
A default KeyboardInputProvider hooked up to the Panel.
[Browsable(false)]
public KeyboardInputProvider KeyboardInputProvider { get; }
Property Value
MouseInputProvider
A default MouseInputProvider hooked up to the Panel.
[Browsable(false)]
public MouseInputProvider MouseInputProvider { get; }
Property Value
TouchInputProvider
A default TouchInputProvider hooked up to the Panel.
[Browsable(false)]
public TouchInputProvider TouchInputProvider { get; }
Property Value
Methods
AddInputReceiver(IInputReceiver)
Calls AddReceiver(IInputReceiver) for all default InputProviders.
public void AddInputReceiver(IInputReceiver receiver)
Parameters
receiver
IInputReceiverThe 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
booltrue 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
PaintEventArgsA 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
RemoveInputReceiver(IInputReceiver)
Calls RemoveReceiver(IInputReceiver) for all default InputProviders.
public void RemoveInputReceiver(IInputReceiver receiver)
Parameters
receiver
IInputReceiverThe object to no longer receive the commands.
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.