Class GLPicture represents a quad primitive with a texture drawn on it.
More...
#include <glpicture.h>
Detailed Description
Class GLPicture represents a quad primitive with a texture drawn on it.
Constructor & Destructor Documentation
crp::GLPicture::GLPicture |
( |
const GLTexture & |
texture, |
|
|
const GLVertex & |
position, |
|
|
double |
width = 1.0 , |
|
|
double |
height = 1.0 , |
|
|
double |
px = 0.0 , |
|
|
double |
py = 0.0 |
|
) |
| |
Constructor from the coordinates of the picture.
- Parameters:
-
texture | Texture of the picture |
position | Position of the primitive |
width | Width of the image |
height | Height of the image |
px | Displacement to the image center in image coordinates |
py | Displacement to the image center in image coordinates |
crp::GLPicture::~GLPicture |
( |
| ) |
|
Member Function Documentation
virtual GLPrimitiveType crp::GLPicture::get_type |
( |
| ) |
const [inline, virtual] |
Type of the primitive.
- Returns:
- Type name of the primitive
Implements crp::GLPrimitive.
void crp::GLPicture::make_display_list |
( |
int |
style | ) |
const [virtual] |
Draws the point into an OpenGL display list.
- Parameters:
-
flags | Style flags used to filter out drawing |
Implements crp::GLPrimitive.
Sets the corners of the image position.
- Parameters:
-
tl | Top left pixel of the image |
bl | Top left pixel of the image |
tr | Top left pixel of the image |
br | Top left pixel of the image |
The documentation for this class was generated from the following file: