Xrb::GL Namespace Reference

Provides convenience functions for interacting with the OpenGL API. More...


Functions

GLTexture const & GLTexture_OpaqueWhite ()
void Initialize ()
 Sets up a bunch of rendering parameters and so forth.
bool Boolean (GLenum name)
 Convenience frontend to glGetBooleanv for getting a single value.
GLint Integer (GLenum name)
 Convenience frontend to glGetIntegerv for getting a single value.
void SetClipRect (ScreenCoordRect const &clip_rect)
 Used by Widget when setting the clipping planes and viewport.


Detailed Description

Provides convenience functions for interacting with the OpenGL API.


Function Documentation

void Xrb::GL::Initialize (  ) 

Sets up a bunch of rendering parameters and so forth.

Screen calls this in Xrb::Screen::Create -- you shouldn't need to call it directly.

Definition at line 44 of file xrb_gl.cpp.

References Xrb::GLTexture::Create(), and Xrb::Texture::Data().

bool Xrb::GL::Boolean ( GLenum  name  ) 

Convenience frontend to glGetBooleanv for getting a single value.

Only the first boolean value of a multi-valued property will be returned. Also, I lied about it being a frontend to glGetBooleanv. It's actually a frontend to GL::Integer.

Definition at line 181 of file xrb_gl.cpp.

References Integer().

GLint Xrb::GL::Integer ( GLenum  name  ) 

Convenience frontend to glGetIntegerv for getting a single value.

Only the first integer value of a multi-valued property will be returned.

Definition at line 186 of file xrb_gl.cpp.

Referenced by Boolean().

void Xrb::GL::SetClipRect ( ScreenCoordRect const &  clip_rect  ) 

Used by Widget when setting the clipping planes and viewport.

Widget calls during Xrb::Widget::Draw -- you shouldn't need to call it directly.

Definition at line 210 of file xrb_gl.cpp.

References Xrb::Rect< T >::Bottom(), Xrb::Rect< T >::Height(), Xrb::Rect< T >::IsValid(), Xrb::Rect< T >::Left(), Xrb::Rect< T >::Right(), Xrb::Rect< T >::Top(), and Xrb::Rect< T >::Width().


Hosted by SourceForge.net Logo -- Generated on Fri Aug 21 21:46:39 2009 for XuqRijBuh by doxygen 1.5.8