|
pgl
PrimitiveOpenGL3Dprimitivelibrary
|
#include <primitive.h>


Public Member Functions | |
| Plane (const Vector3 &vx, const Vector3 &vy, const Vector3 &offset={0, 0, 0}, const Texture &texture=Texture(), int repeat=1) | |
| Specifies vectors along which the plane is aligned. More... | |
Public Member Functions inherited from pgl::Primitive | |
| Primitive () | |
| Default constructor. More... | |
| virtual void | draw () |
| Draw primitive and its children. | |
Public Member Functions inherited from pgl::Object | |
| Object () | |
| Default constructor. More... | |
Public Member Functions inherited from pgl::Node | |
| template<class T > | |
| T * | attach (T *child) |
| Add child to list of sub-objects. More... | |
Protected Member Functions | |
| void | make (const Vector3 &vx, const Vector3 &vy, int repeat) |
Protected Member Functions inherited from pgl::Primitive | |
| double | align (const Vector3 &start, const Vector3 &end) |
| Align primitive along axis. More... | |
| virtual void | normal (const Vector3 &v) |
| Sets norm for subsequent vertices. | |
| virtual void | vertex (const Vector3 &v) |
| Enters vertex into display list. | |
| virtual void | quad (const Vector3 &v1, const Vector3 &v2, const Vector3 &v3, const Vector3 &v4) |
| Draws a four-sided polygon using two triangles. More... | |
| virtual void | triangle (const Vector3 &v1, const Vector3 &v2, const Vector3 &v3) |
| Draws triangle. | |
Protected Attributes | |
| Texture | texture_ |
Protected Attributes inherited from pgl::Primitive | |
| GLuint | list_ |
| OpenGL display list identifier. | |
Additional Inherited Members | |
Public Attributes inherited from pgl::Primitive | |
| Vector3 | color |
| Primitive color. | |
Public Attributes inherited from pgl::Object | |
| Transform | transform |
| Position and orientation. | |
Public Attributes inherited from pgl::Node | |
| std::vector< Node * > | children |
| Sub-objects. | |
Draws a (textured) plane. The texture can be repeated, for example to create a near infinite ground plane.
|
inline |
Specifies vectors along which the plane is aligned.
Optional arguments are the offset, Texture to be applied, and the number of times the texture should be repeated.
1.8.13