|
DubiousEngine
0.2.0
Simple Game Engine
|
OpenGL Primitives. More...
#include <Open_gl_primitive.h>
Public Types | |
| enum | Primitive_type { TRIANGLE_STRIP = GL_TRIANGLE_STRIP, TRIANGLES = GL_TRIANGLES, LINE_STRIP = GL_LINE_STRIP, LINE_LOOP = GL_LINE_LOOP, LINES = GL_LINES, POINTS = GL_POINTS, QUADS = GL_QUADS } |
| The type of the primitive. More... | |
Public Member Functions | |
| Open_gl_primitive (Primitive_type type) | |
| Constructor, calls glBegin. More... | |
| Open_gl_primitive (const Open_gl_primitive &)=delete | |
| ~Open_gl_primitive () | |
| Destructor, calls glEnd. More... | |
| Open_gl_primitive & | operator= (const Open_gl_primitive &)=delete |
| template<int T> | |
| void | vertex (const Math::PointT< T > &v) const |
| Calls glVertex. More... | |
| template<int T> | |
| void | normal (const Math::Unit_vectorT< T > &n) const |
| Calls glNormal. More... | |
OpenGL Primitives.
Class for managing the drawing of OpenGL primitive objects. Manages the calling of glBegin and glEnd for you
|
inline |
Constructor, calls glBegin.
| type | - [in] The type of the primitive |
|
delete |
|
inline |
Destructor, calls glEnd.
|
inline |
Calls glNormal.
| n | - [in] The normal you want to rander |
|
delete |
|
inline |
Calls glVertex.
| v | - [in] The vector you want to rander |