Class GLScene is a container for OpenGL primitives.
More...
#include <glscene.h>
Detailed Description
Class GLScene is a container for OpenGL primitives.
Its purpose is mainly the interchange of primitive collections for now.
Constructor & Destructor Documentation
crp::GLScene::GLScene |
( |
| ) |
|
crp::GLScene::~GLScene |
( |
| ) |
|
Member Function Documentation
void crp::GLScene::add_primitive |
( |
const SPtr< GLPrimitive > & |
primitive | ) |
|
Adds a new primitive to the scene.
- Parameters:
-
primitive | Primitive to add |
int crp::GLScene::add_texture |
( |
GLTexture * |
texture | ) |
|
Adds a texture to the scene.
- Parameters:
-
texture | Pointer to a texture |
void crp::GLScene::clear |
( |
| ) |
|
Removes all primitives from the scene.
std::vector<SPtr<GLPrimitive> >& crp::GLScene::get_primitives |
( |
| ) |
|
Returns the list of primitives.
- Returns:
- Vector of primitives
Type of the primitive.
- Returns:
- Type name of the primitive
Implements crp::GLPrimitive.
bool crp::GLScene::load_primitives |
( |
const std::string & |
file_name | ) |
|
Loads primitives from file.
- Parameters:
-
file_name | Name of the file to load |
- Returns:
- True if succeeded
virtual void crp::GLScene::make_display_list |
( |
int |
flags | ) |
const [virtual] |
Performs operations needed to create a display list of the model.
- Parameters:
-
flags | Style flags used to filter out drawing |
Implements crp::GLPrimitive.
void crp::GLScene::remove_primitive |
( |
const SPtr< GLPrimitive > & |
primitive | ) |
|
Removes a new primitive from the scene.
- Parameters:
-
primitive | Primitive to remove |
The documentation for this class was generated from the following file: