GL++
0.1
OpenGL API C++ Wrapper
|
Unit that controls face culling. More...
#include <face_cull_unit.hpp>
Public Member Functions | |
void | enable () |
Enable face culling. | |
void | disable () |
Disable face culling. | |
bool | is_enabled () |
Check if face culling is enabled. | |
void | set_culled_face (face_type face) |
Set which faces will be culled. | |
face_type | get_culled_face () |
Get which faces will be culled. | |
void | set_frontface_orientation (face_orientation orientation) |
Define the orientation of front faces. | |
face_orientation | get_frontface_orientation (face_orientation) |
Get the orientation of front faces. | |
Public Member Functions inherited from glpp::noncopyable | |
noncopyable (noncopyable &) | |
noncopyable & | operator= (noncopyable &) |
Protected Member Functions | |
face_cull_unit (context &ctx) | |
Construction is permitted only by glpp::context. |
Protected Attributes | |
context & | m_ctx |
Reference to context that this is unit is part of. |
Friends | |
class | context |
All units are friend of context. |
Unit that controls face culling.
void glpp::face_cull_unit::disable | ( | ) |
Disable face culling.
void glpp::face_cull_unit::enable | ( | ) |
Enable face culling.
face_type glpp::face_cull_unit::get_culled_face | ( | ) |
Get which faces will be culled.
http://www.opengl.org/sdk/docs/man4/xhtml/glCullFace.xml
face_orientation glpp::face_cull_unit::get_frontface_orientation | ( | face_orientation | ) |
Get the orientation of front faces.
http://www.opengl.org/sdk/docs/man4/xhtml/glFrontFace.xml
bool glpp::face_cull_unit::is_enabled | ( | ) |
Check if face culling is enabled.
void glpp::face_cull_unit::set_culled_face | ( | face_type | face | ) |
Set which faces will be culled.
void glpp::face_cull_unit::set_frontface_orientation | ( | face_orientation | orientation | ) |
Define the orientation of front faces.