GL++  0.1
OpenGL API C++ Wrapper
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Groups Pages
glpp::context Struct Reference

Opengl Context. More...

#include <context.hpp>

Public Member Functions

GLint get_param_int (context_param_type pname) const
GLuint get_param_uint (context_param_type pname) const
GLint64 get_param_int64 (context_param_type pname) const
bool get_param_bool (context_param_type pname) const
GLfloat get_param_float (context_param_type pname) const
GLdouble get_param_double (context_param_type pname) const
std::vector< int > get_param_intv (context_param_type pname, size_t size)
std::vector< GLint64 > get_param_int64v (context_param_type pname, size_t size)
std::vector< float > get_param_floatv (context_param_type pname, size_t size)
std::vector< double > get_param_doublev (context_param_type pname, size_t size)
depth_test_unitdepth_test ()
 Access depth test unit of this context.
stencil_test_unitstencil_test ()
 Access stencil test unit of this context.
scissor_test_unitscissor_test ()
 Access scissor test unit of this context.
blend_unitblend ()
 Access blend unit of this context.
logicop_unitlogicop ()
 Access color logical operations unit of this context.
face_cull_unitface_cull ()
 Access face cull unit of this context.
texture_unit_ttexture_unit (size_t index)
 Access a specific texture_unit.
size_t active_texture_unit () const
 Get the index of the active texture unit.
capabilities_unitcapabilities ()
 Access the capabilities query interface.
 ~context ()
 Destructor.

Static Public Member Functions

static bool create ()
 Create a new GLPP context for current thread.

Protected Types

typedef std::vector
< texture_unit_t * > 
texture_unit_collection
 Texture unit collection.

Protected Attributes

depth_test_unit m_depth_test
 Depth test unit.
stencil_test_unit m_stencil_test
 Stencil test unit.
scissor_test_unit m_scissor_test
 Scissor test unit.
blend_unit m_blend_unit
 Blend unit.
logicop_unit m_logicop_unit
 Logicop unit.
capabilities_unit m_capabilities
 Query capabilities interface.
face_cull_unit m_face_cull
 Face cull unit.
texture_unit_collection m_texture_units
 Texture units collection.

Detailed Description

Opengl Context.

Member Function Documentation

size_t glpp::context::active_texture_unit ( ) const

Get the index of the active texture unit.

Get the name of the active texture unit.

texture_unit_t & glpp::context::texture_unit ( size_t  index)

Access a specific texture_unit.

Get a specific texture_unit.


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