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

Unit that controls scissor testing. More...

#include <scissor_test_unit.hpp>

Inheritance diagram for glpp::scissor_test_unit:
glpp::noncopyable

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 &)
noncopyableoperator= (noncopyable &)

Protected Member Functions

 scissor_test_unit (context &ctx)
 Construction is permitted only by glpp::context.

Protected Attributes

contextm_ctx
 Reference to context that this is unit is part of.

Friends

class context
 All units are friend of context.

Detailed Description

Unit that controls scissor testing.

Remarks
non-copyable, non-inheritable

Member Function Documentation

void glpp::scissor_test_unit::disable ( )
void glpp::scissor_test_unit::enable ( )
void glpp::scissor_test_unit::get_box ( int &  x,
int &  y,
size_t &  width,
size_t &  height 
)

Get currently selected scissor box.

http://www.opengl.org/sdk/docs/man4/xhtml/glScissor.xml

bool glpp::scissor_test_unit::is_enabled ( )

Check if scissor testing is enabled.

http://www.opengl.org/sdk/docs/man4/xhtml/glScissor.xml

void glpp::scissor_test_unit::set_box ( int  x,
int  y,
size_t  width,
size_t  height 
)

Set scissor box for all viewports.

http://www.opengl.org/sdk/docs/man4/xhtml/glScissor.xml

void glpp::scissor_test_unit::set_viewport_box ( GLuint  vp_id,
int  x,
int  y,
size_t  width,
size_t  height 
)

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