#include <primitive.h>

Public Member Functions | |
| primitive () | |
| Default constructor. | |
| primitive (const color &col) | |
| Constructor. | |
| virtual | ~primitive () |
| Destructor. | |
| virtual void | dl_gen (const screen &s)=0 |
| Display-list generator. | |
Public Attributes | |
| color | c |
| The color of the the primitive. | |
| GLenum | p |
| Shader program handle. | |
This class is the parent of all the primitives that get drawn to the screen.
| glot::primitive::primitive | ( | ) | [inline] |
Default constructor.
| glot::primitive::primitive | ( | const color & | col | ) | [inline] |
| virtual glot::primitive::~primitive | ( | ) | [inline, virtual] |
Destructor.
Virtual classes need virtual destructors
| virtual void glot::primitive::dl_gen | ( | const screen & | s | ) | [pure virtual] |
Display-list generator.
| s | - the screen specs |
Implemented in glot::contour, glot::curve, glot::flow, glot::p_curve, glot::scalar_field, and glot::vector.
| GLenum glot::primitive::p |
Shader program handle.
Some primitives specify their own shader programs and the container class, grapher, will use each one's self-specified program when it's called.
1.5.8