ContRap-Libraries
|
Class GLSquare represents squares in the three-dimensional space. More...
#include <glsquare.h>
Public Member Functions | |
GLSquare (const GLVertex &position=GLVertex(), double dx=0.0, double dy=0.0, double dz=1.0, double side=1.0) | |
Constructor from the coordinates of the point. | |
~GLSquare () | |
Destructor. | |
void | make_display_list (int style) const |
Draws the point into an OpenGL display list. | |
virtual GLPrimitiveType | get_type () const |
Type of the primitive. |
Class GLSquare represents squares in the three-dimensional space.
crp::GLSquare::GLSquare | ( | const GLVertex & | position = GLVertex() , |
double | dx = 0.0 , |
||
double | dy = 0.0 , |
||
double | dz = 1.0 , |
||
double | side = 1.0 |
||
) |
Constructor from the coordinates of the point.
position | Position of the primitive |
dx | X-coordinate of the normal direction |
dy | Y-coordinate of the normal direction |
dz | Z-coordinate of the normal direction |
side | Half side length |
crp::GLSquare::~GLSquare | ( | ) |
Destructor.
virtual GLPrimitiveType crp::GLSquare::get_type | ( | ) | const [inline, virtual] |
void crp::GLSquare::make_display_list | ( | int | style | ) | const [virtual] |
Draws the point into an OpenGL display list.
flags | Style flags used to filter out drawing |
Implements crp::GLPrimitive.