Open source remastering of the Freespace 2 engine
opengl_texture_state Class Reference

#include <gropenglstate.h>

Public Member Functions

 opengl_texture_state ()
 ~opengl_texture_state ()
void init (GLuint n_units)
GLboolean TexgenS (GLint state=-1)
GLboolean TexgenT (GLint state=-1)
GLboolean TexgenR (GLint state=-1)
GLboolean TexgenQ (GLint state=-1)
void SetTarget (GLenum tex_target)
void SetActiveUnit (GLuint id=0)
void Enable (GLuint tex_id=0)
void Disable ()
void DisableUnused ()
void DisableAll ()
void ResetUsed ()
void Delete (GLuint tex_id)
GLfloat AnisoFilter (GLfloat aniso=0.0f)
void SetRGBScale (GLfloat scale)
void SetAlphaScale (GLfloat scale)
void SetEnvMode (GLenum mode)
void SetEnvCombineMode (GLenum cmode, GLenum cfunc)
void SetWrapS (GLenum mode)
void SetWrapT (GLenum mode)
void SetWrapR (GLenum mode)
void SetTexgenModeS (GLenum mode)
void SetTexgenModeT (GLenum mode)
void SetTexgenModeR (GLenum mode)
void SetTexgenModeQ (GLenum mode)
GLenum GetTarget ()
void SetShaderMode (GLboolean mode)

Public Attributes

gr_texture_source Current_texture_source

Detailed Description

Definition at line 48 of file gropenglstate.h.

Constructor & Destructor Documentation

opengl_texture_state::opengl_texture_state ( )

Definition at line 61 of file gropenglstate.h.

opengl_texture_state::~opengl_texture_state ( )

Definition at line 22 of file gropenglstate.cpp.

Member Function Documentation

GLfloat opengl_texture_state::AnisoFilter ( GLfloat  aniso = 0.0f)

Definition at line 304 of file gropenglstate.cpp.

void opengl_texture_state::Delete ( GLuint  tex_id)

Definition at line 276 of file gropenglstate.cpp.

void opengl_texture_state::Disable ( )

Definition at line 229 of file gropenglstate.cpp.

void opengl_texture_state::DisableAll ( )

Definition at line 262 of file gropenglstate.cpp.

void opengl_texture_state::DisableUnused ( )

Definition at line 252 of file gropenglstate.cpp.

void opengl_texture_state::Enable ( GLuint  tex_id = 0)

Definition at line 207 of file gropenglstate.cpp.

GLenum opengl_texture_state::GetTarget ( )

Definition at line 163 of file gropenglstate.h.

void opengl_texture_state::init ( GLuint  n_units)

Definition at line 29 of file gropenglstate.cpp.

void opengl_texture_state::ResetUsed ( )

Definition at line 245 of file gropenglstate.cpp.

void opengl_texture_state::SetActiveUnit ( GLuint  id = 0)

Definition at line 195 of file gropenglstate.cpp.

void opengl_texture_state::SetAlphaScale ( GLfloat  scale)

Definition at line 103 of file gropenglstate.h.

void opengl_texture_state::SetEnvCombineMode ( GLenum  cmode,
GLenum  cfunc 

Definition at line 117 of file gropenglstate.h.

void opengl_texture_state::SetEnvMode ( GLenum  mode)

Definition at line 109 of file gropenglstate.h.

void opengl_texture_state::SetRGBScale ( GLfloat  scale)

Definition at line 97 of file gropenglstate.h.

void opengl_texture_state::SetShaderMode ( GLboolean  mode)

Definition at line 168 of file gropenglstate.h.

void opengl_texture_state::SetTarget ( GLenum  tex_target)

Definition at line 179 of file gropenglstate.cpp.

void opengl_texture_state::SetTexgenModeQ ( GLenum  mode)

Definition at line 158 of file gropenglstate.h.

void opengl_texture_state::SetTexgenModeR ( GLenum  mode)

Definition at line 153 of file gropenglstate.h.

void opengl_texture_state::SetTexgenModeS ( GLenum  mode)

Definition at line 143 of file gropenglstate.h.

void opengl_texture_state::SetTexgenModeT ( GLenum  mode)

Definition at line 148 of file gropenglstate.h.

void opengl_texture_state::SetWrapR ( GLenum  mode)

Definition at line 138 of file gropenglstate.h.

void opengl_texture_state::SetWrapS ( GLenum  mode)

Definition at line 128 of file gropenglstate.h.

void opengl_texture_state::SetWrapT ( GLenum  mode)

Definition at line 133 of file gropenglstate.h.

GLboolean opengl_texture_state::TexgenQ ( GLint  state = -1)

Definition at line 161 of file gropenglstate.cpp.

GLboolean opengl_texture_state::TexgenR ( GLint  state = -1)

Definition at line 143 of file gropenglstate.cpp.

GLboolean opengl_texture_state::TexgenS ( GLint  state = -1)

Definition at line 107 of file gropenglstate.cpp.

GLboolean opengl_texture_state::TexgenT ( GLint  state = -1)

Definition at line 125 of file gropenglstate.cpp.

Member Data Documentation

gr_texture_source opengl_texture_state::Current_texture_source

Definition at line 64 of file gropenglstate.h.

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