GL++
0.1
OpenGL API C++ Wrapper
|
Unit that controls scissor testing. More...
#include <scissor_test_unit.hpp>
Public Member Functions | |
void | enable () |
Enable scissor testing. | |
void | disable () |
Disable scissor testing. | |
bool | is_enabled () |
Check if scissor testing is enabled. | |
void | set_box (int x, int y, size_t width, size_t height) |
Set scissor box for all viewports. | |
void | set_viewport_box (GLuint vp_id, int x, int y, size_t width, size_t height) |
Set scissor box for a viewport. | |
void | get_box (int &x, int &y, size_t &width, size_t &height) |
Get currently selected scissor box. | |
Public Member Functions inherited from glpp::noncopyable | |
noncopyable (noncopyable &) | |
noncopyable & | operator= (noncopyable &) |
Protected Member Functions | |
scissor_test_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 scissor testing.
void glpp::scissor_test_unit::disable | ( | ) |
Disable scissor testing.
void glpp::scissor_test_unit::enable | ( | ) |
Enable scissor testing.
void glpp::scissor_test_unit::get_box | ( | int & | x, |
int & | y, | ||
size_t & | width, | ||
size_t & | height | ||
) |
Get currently selected scissor box.
bool glpp::scissor_test_unit::is_enabled | ( | ) |
Check if scissor testing is enabled.
void glpp::scissor_test_unit::set_box | ( | int | x, |
int | y, | ||
size_t | width, | ||
size_t | height | ||
) |
Set scissor box for all viewports.
void glpp::scissor_test_unit::set_viewport_box | ( | GLuint | vp_id, |
int | x, | ||
int | y, | ||
size_t | width, | ||
size_t | height | ||
) |
Set scissor box for a viewport.
http://www.opengl.org/sdk/docs/man4/xhtml/glScissorIndexed.xml