/// <summary> /// Setups up a new DirectX9Canvas instance with the given specifications. /// </summary> /// <param name="driver">DirectX9 driver to associated with this canvas.</param> /// <param name="control">Control to render this canvases graphics to.</param> /// <param name="flags">BitMask of GraphicsFlags flags, specifies how the canvas is setup.</param> public OpenGLCanvas(OpenGLDriver driver, Control control, GraphicsFlags flags) { // Store the driver for future use _control = control; _glDriver = driver; _flags = flags; // Setup windows components and show it. _control.Resize += new System.EventHandler(ResizeEvent); _control.Disposed += new EventHandler(Disposed); }
public OpenGLImageFrame(OpenGLDriver driver) { _glDriver = driver; }
/// <summary> /// Creates a new image frame out of a PixelMap and associates it with a specific image. /// </summary> /// <param name="driver">Direct3D9Driver that this image frame should be associated with.</param> /// <param name="pixelMap">PixelMap to create frame from.</param> public OpenGLImageFrame(OpenGLDriver driver, PixelMap pixelMap) { _glDriver = driver; ConstructFromPixelMap(pixelMap); }