Open source remastering of the Freespace 2 engine
opengl_state Class Reference

#include <gropenglstate.h>

Public Member Functions

 opengl_state ()
 ~opengl_state ()
void init ()
void SetTextureSource (gr_texture_source ts)
void SetAlphaBlendMode (gr_alpha_blend ab)
void SetZbufferType (gr_zbuffer_type zt)
void SetStencilType (gr_stencil_type st)
void SetPolygonOffset (GLfloat factor, GLfloat units)
void SetPolygonMode (GLenum face, GLenum mode)
GLboolean Lighting (GLint state=-1)
GLboolean Fog (GLint state=-1)
GLboolean Blend (GLint state=-1)
GLboolean AlphaTest (GLint state=-1)
GLboolean DepthTest (GLint state=-1)
GLboolean ScissorTest (GLint state=-1)
GLboolean StencilTest (GLint state=-1)
GLboolean CullFace (GLint state=-1)
GLboolean PolygonOffsetFill (GLint state=-1)
GLboolean Normalize (GLint state=-1)
GLboolean Light (GLint num, GLint state=-1)
GLboolean ClipPlane (GLint num, GLint state=-1)
GLboolean ClipDistance (GLint num, GLint state=-1)
GLboolean DepthMask (GLint state=-1)
GLboolean ColorMask (GLint state=-1)
GLenum FrontFaceValue (GLenum new_val=GL_INVALID_ENUM)
GLenum CullFaceValue (GLenum new_val=GL_INVALID_ENUM)
void BlendFunc (GLenum s_val, GLenum d_val)
GLenum BlendFuncSource ()
GLenum BlendFuncDest ()
GLenum DepthFunc (GLenum new_val=GL_INVALID_ENUM)
void AlphaFunc (GLenum f_val, GLclampf r_val)
void Color (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha=255)
void InvalidateColor ()

Public Attributes

opengl_texture_state Texture
opengl_array_state Array
opengl_uniform_state Uniform


class opengl_texture_state

Detailed Description

Definition at line 338 of file gropenglstate.h.

Constructor & Destructor Documentation

opengl_state::opengl_state ( )

Definition at line 379 of file gropenglstate.h.

opengl_state::~opengl_state ( )

Definition at line 332 of file gropenglstate.cpp.

Member Function Documentation

void opengl_state::AlphaFunc ( GLenum  f_val,
GLclampf  r_val 

Definition at line 483 of file gropenglstate.h.

GLboolean opengl_state::AlphaTest ( GLint  state = -1)

Definition at line 475 of file gropenglstate.cpp.

GLboolean opengl_state::Blend ( GLint  state = -1)

Definition at line 455 of file gropenglstate.cpp.

void opengl_state::BlendFunc ( GLenum  s_val,
GLenum  d_val 

Definition at line 448 of file gropenglstate.h.

GLenum opengl_state::BlendFuncDest ( )

Definition at line 464 of file gropenglstate.h.

GLenum opengl_state::BlendFuncSource ( )

Definition at line 459 of file gropenglstate.h.

GLboolean opengl_state::ClipDistance ( GLint  num,
GLint  state = -1 

Definition at line 661 of file gropenglstate.cpp.

GLboolean opengl_state::ClipPlane ( GLint  num,
GLint  state = -1 

Definition at line 641 of file gropenglstate.cpp.

void opengl_state::Color ( GLubyte  red,
GLubyte  green,
GLubyte  blue,
GLubyte  alpha = 255 

Definition at line 488 of file gropenglstate.h.

GLboolean opengl_state::ColorMask ( GLint  state = -1)

Definition at line 701 of file gropenglstate.cpp.

GLboolean opengl_state::CullFace ( GLint  state = -1)

Definition at line 547 of file gropenglstate.cpp.

GLenum opengl_state::CullFaceValue ( GLenum  new_val = GL_INVALID_ENUM)

Definition at line 436 of file gropenglstate.h.

GLenum opengl_state::DepthFunc ( GLenum  new_val = GL_INVALID_ENUM)

Definition at line 469 of file gropenglstate.h.

GLboolean opengl_state::DepthMask ( GLint  state = -1)

Definition at line 681 of file gropenglstate.cpp.

GLboolean opengl_state::DepthTest ( GLint  state = -1)

Definition at line 493 of file gropenglstate.cpp.

GLboolean opengl_state::Fog ( GLint  state = -1)

Definition at line 437 of file gropenglstate.cpp.

GLenum opengl_state::FrontFaceValue ( GLenum  new_val = GL_INVALID_ENUM)

Definition at line 424 of file gropenglstate.h.

void opengl_state::init ( )

Definition at line 339 of file gropenglstate.cpp.

void opengl_state::InvalidateColor ( )

Definition at line 500 of file gropenglstate.h.

GLboolean opengl_state::Light ( GLint  num,
GLint  state = -1 

Definition at line 621 of file gropenglstate.cpp.

GLboolean opengl_state::Lighting ( GLint  state = -1)

Definition at line 419 of file gropenglstate.cpp.

GLboolean opengl_state::Normalize ( GLint  state = -1)

Definition at line 603 of file gropenglstate.cpp.

GLboolean opengl_state::PolygonOffsetFill ( GLint  state = -1)

Definition at line 585 of file gropenglstate.cpp.

GLboolean opengl_state::ScissorTest ( GLint  state = -1)

Definition at line 511 of file gropenglstate.cpp.

void opengl_state::SetAlphaBlendMode ( gr_alpha_blend  ab)

Definition at line 748 of file gropenglstate.cpp.

void opengl_state::SetPolygonMode ( GLenum  face,
GLenum  mode 

Definition at line 565 of file gropenglstate.cpp.

void opengl_state::SetPolygonOffset ( GLfloat  factor,
GLfloat  units 

Definition at line 575 of file gropenglstate.cpp.

void opengl_state::SetStencilType ( gr_stencil_type  st)

Definition at line 824 of file gropenglstate.cpp.

void opengl_state::SetTextureSource ( gr_texture_source  ts)

Definition at line 719 of file gropenglstate.cpp.

void opengl_state::SetZbufferType ( gr_zbuffer_type  zt)

Definition at line 788 of file gropenglstate.cpp.

GLboolean opengl_state::StencilTest ( GLint  state = -1)

Definition at line 529 of file gropenglstate.cpp.

Friends And Related Function Documentation

friend class opengl_texture_state

Definition at line 340 of file gropenglstate.h.

Member Data Documentation

opengl_array_state opengl_state::Array

Definition at line 385 of file gropenglstate.h.

opengl_texture_state opengl_state::Texture

Definition at line 384 of file gropenglstate.h.

opengl_uniform_state opengl_state::Uniform

Definition at line 386 of file gropenglstate.h.

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