#include <StelPainter.hpp>
All coordinates are converted using the StelProjector instance passed at construction. Because openGL is not thread safe, only one instance of StelPainter can exist at a time, enforcing thread safety. As a coding rule, no openGL calls should be performed when no instance of StelPainter exist. Typical usage is to create a local instance of StelPainter where drawing operations are needed.
Return the instance of projector associated to this painter.
Fill with black around the viewport.
Generalisation of glVertex3v for non-linear projections.
This method does not manage the lighting operations properly.
Convenience function.
Draw the string at the given position and angle with the given font.
If the gravity label flag is set, uses drawTextGravity180.
Draw the given polygon.
Draw a small circle arc between points start and stop with rotation point in rotCenter.
The angle between start and stop must be < 180 deg. Each time the small circle crosses the edge of the viewport, the viewportEdgeIntersectCallback is called with the screen 2d position, direction of the currently drawn arc toward the inside of the viewport. If rotCenter is equal to 0,0,0, the method draws a great circle.
Draw a simple circle, 2d viewport coordinates in pixel.
Draw a square using the current texture at the given projected 2d position.
Draw a rotated square using the current texture at the given projected 2d position.
Draw a rotated rectangle using the current texture at the given projected 2d position.
Draw a GL_POINT at the given position.
Re-implementation of gluSphere : glu is overridden for non-standard projection.
Re-implementation of gluCylinder : glu is overridden for non-standard projection.
Draw a disk with a special texturing mode having texture center at center of disk.
The disk is made up of concentric circles with increasing refinement. The number of slices of the outmost circle is (innerFanSlices<<level).
Draw a disk with a special texturing mode having texture center at center.
Draw a ring with a radial texturing.
Draw a fisheye texture in a sphere.
Get some informations about the OS openGL capacities.
This method needs to be called once at init