The Primitive class represents a basic building block for rendering 3D objects. More...
#include <primitive.h>
Public Member Functions | |
| Primitive () | |
Public Member Functions inherited from cil::Object | |
| Object () | |
| virtual | ~Object () |
Public Attributes | |
| std::shared_ptr< Geometry > | geometry |
| This is a shared pointer to a Geometry object. It references the actual geometric data(vertex and index buffers) defining the shape of the primitive. | |
| std::shared_ptr< Material > | material |
| This is a shared pointer to a Material object. It references the material properties that define the appearance of the primivite when rendered. | |
| int | priority |
| This is an integer value representing the priority of the primitive during rendering. | |
The Primitive class represents a basic building block for rendering 3D objects.
| cil::Primitive::Primitive | ( | ) |
| std::shared_ptr<Geometry> cil::Primitive::geometry |
This is a shared pointer to a Geometry object. It references the actual geometric data(vertex and index buffers) defining the shape of the primitive.
| std::shared_ptr<Material> cil::Primitive::material |
This is a shared pointer to a Material object. It references the material properties that define the appearance of the primivite when rendered.
| int cil::Primitive::priority |
This is an integer value representing the priority of the primitive during rendering.