GL++
0.1
OpenGL API C++ Wrapper
|
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_unit & | depth_test () |
Access depth test unit of this context. | |
stencil_test_unit & | stencil_test () |
Access stencil test unit of this context. | |
scissor_test_unit & | scissor_test () |
Access scissor test unit of this context. | |
blend_unit & | blend () |
Access blend unit of this context. | |
logicop_unit & | logicop () |
Access color logical operations unit of this context. | |
face_cull_unit & | face_cull () |
Access face cull unit of this context. | |
texture_unit_t & | texture_unit (size_t index) |
Access a specific texture_unit. | |
size_t | active_texture_unit () const |
Get the index of the active texture unit. | |
capabilities_unit & | capabilities () |
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. |
Opengl Context.
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.