Class for drawing 2D primitives using OpenGL 2.
vtkOpenGL2ContextDevice2D()
void DrawImage(const vtkRectf &pos, vtkImageData *image)
Draw the supplied image at the given position.
virtual void DrawImage(float p[2], float scale, vtkImageData *image)
Draw the supplied image at the given x, y (p[0], p[1]) (bottom corner), scaled by scale (1....
virtual void ReleaseGraphicsResources(vtkWindow *window)
Release any graphics resources that are being consumed by this device.
virtual ~vtkOpenGL2ContextDevice2D()
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void DrawPointSprites(vtkImageData *sprite, float *points, int n, unsigned char *colors=0, int nc_comps=0)
Draw a series of point sprites, images centred at the points supplied.
static vtkOpenGL2ContextDevice2D * New()
Creates a 2D Painter object.
static bool IsSupported(vtkViewport *viewport)
Return true if the current rendering context supports this device.
virtual bool LoadExtensions(vtkOpenGLExtensionManager *m)
Load the OpenGL extensions we need.
Class for drawing 2D primitives using OpenGL 1.1+.