Class GLPoint represents points in the three-dimensional space.
More...
#include <glpoint.h>
Detailed Description
Class GLPoint represents points in the three-dimensional space.
Constructor & Destructor Documentation
crp::GLPoint::GLPoint |
( |
double |
x = 0 , |
|
|
double |
y = 0 , |
|
|
double |
z = 0 |
|
) |
| |
Constructor from the coordinates of the point.
- Parameters:
-
x | X-coordinate of the point |
y | Y-coordinate of the point |
z | Z-coordinate of the point |
crp::GLPoint::GLPoint |
( |
const GLVertex & |
position | ) |
|
Constructor from the coordinates of the point.
- Parameters:
-
crp::GLPoint::~GLPoint |
( |
| ) |
|
Member Function Documentation
double crp::GLPoint::get_texture_x |
( |
| ) |
const [inline] |
Returns the texture coordinate.
- Returns:
- X-Coordinate
double crp::GLPoint::get_texture_y |
( |
| ) |
const [inline] |
Returns the texture coordinate.
- Returns:
- Y-Coordinate
Type of the primitive.
- Returns:
- Type name of the primitive
Implements crp::GLPrimitive.
void crp::GLPoint::make_display_list |
( |
int |
flags | ) |
const [virtual] |
Draws the point into an OpenGL display list.
- Parameters:
-
flags | Style flags used to filter out drawing |
Implements crp::GLPrimitive.
void crp::GLPoint::set_texture_coords |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
Sets the texture coordinates.
- Parameters:
-
x | X-Coordinate with respect to the used texture |
y | Y-Coordinate with respect to the used texture |
Field Documentation
The documentation for this class was generated from the following file: