|
|
virtual | ~graphics_engine ()=default |
| | Default destructor.
|
| |
|
virtual void | setup_graphics (std::map< std::string, const void * > params=std::map< std::string, const void * >())=0 |
| | Initialize graphics engine.
|
| |
| virtual std::string | get_graphics_engine_name () const =0 |
| | Get the name of the graphics engine. More...
|
| |
| virtual bool | get_supported (FEATURE feature) const =0 |
| | Get if a specified feature is supported. More...
|
| |
|
virtual void | set_viewport (unsigned x, unsigned y, unsigned width, unsigned height)=0 |
| | Set view port.
|
| |
|
virtual void | get_viewport (unsigned &x, unsigned &y, unsigned &width, unsigned &height) const =0 |
| | Get view port.
|
| |
| virtual void | set_2D_coordinate (double left, double right, double bottom, double top)=0 |
| | Configure 2D coordinate view. More...
|
| |
| virtual void | look_at (const double target[3], const double position[3], const double up[3], double fov, double near, double far)=0 |
| | Set up a camera with a target position, origin position and fov. More...
|
| |
|
virtual void | clear ()=0 |
| | Clear out the canvas.
|
| |
|
virtual void | get_background_color (double color[3]) const =0 |
| | Get the background color.
|
| |
|
virtual void | get_foreground_color (double color[3]) const =0 |
| | Get the foreground color.
|
| |
|
void | color3 (double r, double g, double b) |
| | Equivalebt to glColor. See https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glColor.xml.
|
| |
|
void | color4 (double r, double g, double b, double a) |
| | Equivalebt to glColor. See https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glColor.xml.
|
| |
|
template<class T > |
| void | color3v (const T *v) |
| | Equivalebt to glColor. See https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glColor.xml.
|
| |
|
virtual void | color4v (const double *v)=0 |
| | Equivalebt to glColor. See https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glColor.xml.
|
| |
|
void | color4v (const float *v) |
| | Equivalebt to glColor. See https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glColor.xml.
|
| |
|
void | vertex2 (double x, double y) |
| | Equivalebt to glVertex. See https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glVertex.xml.
|
| |
|
void | vertex3 (double x, double y, double z) |
| | Equivalebt to glVertex. See https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glVertex.xml.
|
| |
|
virtual void | begin (MODE mode)=0 |
| | Equivalebt to glBegin. See https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glBegin.xml.
|
| |
|
virtual void | end ()=0 |
| | Equivalebt to glEnd. See https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glEnd.xml.
|
| |
|
virtual void | point_size (double size)=0 |
| | Equivalebt to glPointSize. See https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glPointSize.xml.
|
| |
|
virtual void | line_width (double width)=0 |
| | Equivalebt to glLineWidth. See https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glLineWidth.xml.
|
| |
|
template<class T > |
| void | vertex2v (const T *v) |
| | Equivalebt to glVertex. See https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glVertex.xml.
|
| |
|
virtual void | vertex3v (const double *v)=0 |
| | Equivalebt to glVertex. See https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glVertex.xml.
|
| |
|
void | vertex3v (const float *v) |
| | Equivalebt to glVertex. See https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glVertex.xml.
|
| |
| virtual void | draw_string (const double *v, std::string str, unsigned size=0)=0 |
| | Draw a string at the current position. More...
|
| |
Interface for handling drawing operations.