DubiousEngine  0.2.0
Simple Game Engine
Dubious::Renderer::Open_gl_primitive Class Reference

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_primitiveoperator= (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...
 

Detailed Description

OpenGL Primitives.

Class for managing the drawing of OpenGL primitive objects. Manages the calling of glBegin and glEnd for you

Member Enumeration Documentation

The type of the primitive.

Enumerator
TRIANGLE_STRIP 
TRIANGLES 
LINE_STRIP 
LINE_LOOP 
LINES 
POINTS 
QUADS 

Constructor & Destructor Documentation

Dubious::Renderer::Open_gl_primitive::Open_gl_primitive ( Primitive_type  type)
inline

Constructor, calls glBegin.

Parameters
type- [in] The type of the primitive
Dubious::Renderer::Open_gl_primitive::Open_gl_primitive ( const Open_gl_primitive )
delete
Dubious::Renderer::Open_gl_primitive::~Open_gl_primitive ( )
inline

Destructor, calls glEnd.

Member Function Documentation

template<int T>
void Dubious::Renderer::Open_gl_primitive::normal ( const Math::Unit_vectorT< T > &  n) const
inline

Calls glNormal.

Parameters
n- [in] The normal you want to rander
Open_gl_primitive& Dubious::Renderer::Open_gl_primitive::operator= ( const Open_gl_primitive )
delete
template<int T>
void Dubious::Renderer::Open_gl_primitive::vertex ( const Math::PointT< T > &  v) const
inline

Calls glVertex.

Parameters
v- [in] The vector you want to rander

The documentation for this class was generated from the following file: