Class VisualizerCanvas
Provides a control with a graphics context and a simple render loop for scheduling accelerated rendering operations.
public class VisualizerCanvas : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
- Inheritance
-
VisualizerCanvas
- Implements
- Derived
- Inherited Members
Constructors
- VisualizerCanvas()
Initializes a new instance of the VisualizerCanvas class.
Properties
- Canvas
Gets the control containing the graphics context on which to call render operations.
Methods
- Dispose(bool)
Releases the unmanaged resources used by the Control and its child controls and optionally releases the managed resources.
- MakeCurrent()
Makes the canvas context current in the calling thread.
- OnRenderFrame(EventArgs)
Raises the RenderFrame event.
- OnSwapBuffers(EventArgs)
Raises the SwapBuffers event.
Events
- RenderFrame
Occurs when it is time to render a frame.
- SwapBuffers
Occurs immediately after the front and back buffers are swapped, and the rendered scene is presented to the screen.