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

Collection of OpenGL commands. More...

#include <Open_gl_commands.h>

Static Public Member Functions

template<int T>
static void translate (const Math::VectorT< T > &v)
 glTranslate More...
 
static void clear_color (const Color &c)
 glClearColor More...
 
static void viewport (int x, int y, int width, int height)
 glViewport More...
 
static void perspective (float fovy, float aspect, float z_near, float z_far)
 gluPerspective More...
 
static void look_at (const Math::Point &position, const Math::Point &target, const Math::Vector &up)
 gluLookAt More...
 
static void mult_matrix (float m[16])
 glMultMatrix More...
 
static void new_list (unsigned int handle, int mode)
 glNewList More...
 
static void end_list ()
 glEndList More...
 
static void call_list (unsigned int handle)
 glCallList More...
 
static void material (int light, const Color &c)
 glMaterial More...
 
static void cull_face (int face)
 glCullFace More...
 
static void polygon_mode (GLenum face, GLenum mode)
 glPolygonMode More...
 
static void line_width (float width)
 glLineWidth More...
 

Detailed Description

Collection of OpenGL commands.

Not a class so much as an abstraction of the OpenGL commands. This keeps all OpenGL Commands in one class, instead of spread all throughout the system. It also lets OpenGL work with my own types a bit easier.

Member Function Documentation

static void Dubious::Renderer::Open_gl_commands::call_list ( unsigned int  handle)
inlinestatic

glCallList

static void Dubious::Renderer::Open_gl_commands::clear_color ( const Color c)
inlinestatic

glClearColor

static void Dubious::Renderer::Open_gl_commands::cull_face ( int  face)
inlinestatic

glCullFace

static void Dubious::Renderer::Open_gl_commands::end_list ( )
inlinestatic

glEndList

static void Dubious::Renderer::Open_gl_commands::line_width ( float  width)
inlinestatic

glLineWidth

static void Dubious::Renderer::Open_gl_commands::look_at ( const Math::Point position,
const Math::Point target,
const Math::Vector up 
)
inlinestatic

gluLookAt

void Dubious::Renderer::Open_gl_commands::material ( int  light,
const Color c 
)
static

glMaterial

static void Dubious::Renderer::Open_gl_commands::mult_matrix ( float  m[16])
inlinestatic

glMultMatrix

static void Dubious::Renderer::Open_gl_commands::new_list ( unsigned int  handle,
int  mode 
)
inlinestatic

glNewList

static void Dubious::Renderer::Open_gl_commands::perspective ( float  fovy,
float  aspect,
float  z_near,
float  z_far 
)
inlinestatic

gluPerspective

static void Dubious::Renderer::Open_gl_commands::polygon_mode ( GLenum  face,
GLenum  mode 
)
inlinestatic

glPolygonMode

template<int T>
static void Dubious::Renderer::Open_gl_commands::translate ( const Math::VectorT< T > &  v)
inlinestatic

glTranslate

Parameters
v- [in] translate by this amount
static void Dubious::Renderer::Open_gl_commands::viewport ( int  x,
int  y,
int  width,
int  height 
)
inlinestatic

glViewport


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