arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

glift::MipMapTex Class Reference

#include <texState.h>

Inheritance diagram for glift::MipMapTex:

glift::TexObjState glift::TexState glift::GliftObject List of all members.

Detailed Description

MipMapTex - 'minFilter' is minification filter: GL_NEAREST_MIPMAP_NEAREST, GL_LINEAR_MIPMAP_NEAREST, GL_NEAREST_MIPMAP_LINEAR, GL_LINEAR_MIPMAP_LINEAR - 'magFilter' is magnification filter: GL_NEAREST or GL_LINEAR - 'autoMipGen' enables/diables GL_GENERATE_MIPMAP_SGIS - 'minLevel' is minimum mipmap level - 'maxLevel' is maximum mipmap level - 'minLOD' is minimum mipmap lambda value - 'maxLOD' is maximum mipmap lambda value Note: lambda = lg( rho ) base2 rho = scale factor between texture size and polygon.

Definition at line 181 of file texState.h.

Public Member Functions

 MipMapTex (GLenum minFilter, GLenum magFilter, bool autoMipGen=false)
 MipMapTex.

 MipMapTex (GLenum minFilter, GLenum magFilter, bool autoMipGen, int minLevel, int maxLevel, float minLOD, float maxLOD)
 Calls FilterTex constructor.

virtual void bind (GLenum texType) const
virtual void release () const
 Calls FilterTex::bind(...).

bool autoMipGen () const
 Disable autoMipGen, set level and LOD back to default (false, 0, 1000, -1000, +1000) Get/Set Functions.

int minLevel () const
int maxLevel () const
float minLOD () const
float maxLOD () const
void minFilter (GLenum filt)
void magFilter (GLenum filt)
void autoMipGen (bool val)
void minLevel (int val)
void maxLevel (int val)
void minLOD (float val)
void maxLOD (float val)
virtual void setErrStream (std::ostream *os)
 Where do you want gl errors to go? they must go somewhere, so don't set it to zero please.

virtual std::ostream * getErrStream () const
 Where are gl errors going?


Protected Member Functions

void err (const char *where, const char *when=0) const
 error

std::ostream & err () const
 a simpler way, just use the stream! only for always print, this one automatically adds the objects name

void derr (const char *where, const char *when=0) const
 debug error

bool glerr (const char *where, const char *when=0) const
 gl error report only in debug mode, only if there is an error, if so return true

std::ostream & estr () const
 this one just gives you the stream


Protected Attributes

std::ostream * m_err


Constructor & Destructor Documentation

MipMapTex::MipMapTex GLenum  minFilter,
GLenum  magFilter,
bool  autoMipGen = false
 

MipMapTex.

Definition at line 135 of file texState.cpp.

MipMapTex::MipMapTex GLenum  minFilter,
GLenum  magFilter,
bool  autoMipGen,
int  minLevel,
int  maxLevel,
float  minLOD,
float  maxLOD
 

Calls FilterTex constructor.

Parameters:
minLevel  Calls FilterTex constructor

Definition at line 151 of file texState.cpp.


Member Function Documentation

void glift::MipMapTex::autoMipGen bool  val  )  [inline]
 

Definition at line 200 of file texState.h.

bool glift::MipMapTex::autoMipGen  )  const [inline]
 

Disable autoMipGen, set level and LOD back to default (false, 0, 1000, -1000, +1000) Get/Set Functions.

Definition at line 192 of file texState.h.

void MipMapTex::bind GLenum  texType  )  const [virtual]
 

Implements glift::TexObjState.

Definition at line 168 of file texState.cpp.

References GL_GENERATE_MIPMAP_SGIS, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_MAX_LOD, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TRUE, glTexParameterf(), and glTexParameteri().

void glift::GliftObject::derr const char *  where,
const char *  when = 0
const [inline, protected, inherited]
 

debug error

Definition at line 122 of file gliftObject.h.

References glift::GliftObject::m_err.

std::ostream & glift::GliftObject::err  )  const [inline, protected, inherited]
 

a simpler way, just use the stream! only for always print, this one automatically adds the objects name

Definition at line 111 of file gliftObject.h.

References glift::GliftObject::m_err.

Referenced by glift::CoordTrans::apply(), glift::SubTex::bindDef(), glift::PrimGL::bindIndices(), glift::SubdivPlanarQuadS::bindQuads(), glift::PrimGL::bindTexCoords(), glift::CoreTex::checkTexType(), glift::EmptyTex::copyToTex(), glift::CoreTex::CoreTex(), glift::FuncTex::FuncTex(), glift::Shader::genTexCoords(), glift::CoreTex::getDataf(), glift::CoreTex::getDataub(), glift::VertexProgARB::init(), glift::FragProgARB::init(), glift::PriorityTex::PriorityTex(), glift::VertexProgARB::reload(), glift::FragProgARB::reload(), glift::RenderableGLI::render(), glift::RenderPass::renderDef(), glift::EmptyTex::resetTexState(), glift::PixelShaderATI8K::setLocalConstf(), glift::TexCube::setTexData(), glift::EmptyTex::setTexData(), glift::ShadedPrim::ShadedPrim(), glift::TexConst::TexConst(), glift::TexCube::TexCube(), and glift::EmptyTex::tryToBindPbuff().

void glift::GliftObject::err const char *  where,
const char *  when = 0
const [inline, protected, inherited]
 

error

Definition at line 101 of file gliftObject.h.

References glift::GliftObject::m_err.

Referenced by glift::SubPBuff::enable().

std::ostream& glift::GliftObject::estr  )  const [inline, protected, inherited]
 

this one just gives you the stream

Definition at line 84 of file gliftObject.h.

References glift::GliftObject::m_err.

Referenced by glift::CoreTex::bindDef(), glift::Shader::bindDef(), glift::MultiTex::bindDef(), glift::EmptyTex::bindDef(), glift::DispList::compile(), glift::CoreTex::CoreTex(), glift::VertexProgARB::init(), glift::FragProgARB::init(), glift::MultiTex::releaseDef(), and glift::EmptyTex::releaseDef().

virtual std::ostream* glift::GliftObject::getErrStream  )  const [inline, virtual, inherited]
 

Where are gl errors going?

Definition at line 49 of file gliftObject.h.

References glift::GliftObject::m_err.

Referenced by glift::getProgShaderFromFile(), and glift::getProgShaderFromText().

bool GliftObject::glerr const char *  where,
const char *  when = 0
const [protected, inherited]
 

gl error report only in debug mode, only if there is an error, if so return true

Definition at line 31 of file gliftObject.cpp.

References glGetError(), and GLuint.

Referenced by RenderState2D::bindDef(), glift::NormalAttrib< VAT >::disableDef(), glift::IndexAttrib< VAT >::disableDef(), glift::TexCoordAttrib< VAT >::disableDef(), glift::VertAttrib< VAT >::disableDef(), glift::GenDrawAttrib< VAT >::disableDef(), glift::DrawAlgImm::draw(), glift::DrawAlgArr::draw(), glift::ShadedPrim::drawDef(), glift::NormalAttrib< VAT >::enableDef(), glift::IndexAttrib< VAT >::enableDef(), glift::TexCoordAttrib< VAT >::enableDef(), glift::VertAttrib< VAT >::enableDef(), glift::GenDrawAttrib< VAT >::enableDef(), and RenderState2D::releaseDef().

void glift::MipMapTex::magFilter GLenum  filt  )  [inline]
 

Definition at line 199 of file texState.h.

void glift::MipMapTex::maxLevel int  val  )  [inline]
 

Definition at line 202 of file texState.h.

int glift::MipMapTex::maxLevel  )  const [inline]
 

Definition at line 194 of file texState.h.

void glift::MipMapTex::maxLOD float  val  )  [inline]
 

Definition at line 204 of file texState.h.

float glift::MipMapTex::maxLOD  )  const [inline]
 

Definition at line 196 of file texState.h.

void glift::MipMapTex::minFilter GLenum  filt  )  [inline]
 

Definition at line 198 of file texState.h.

void glift::MipMapTex::minLevel int  val  )  [inline]
 

Definition at line 201 of file texState.h.

int glift::MipMapTex::minLevel  )  const [inline]
 

Definition at line 193 of file texState.h.

void glift::MipMapTex::minLOD float  val  )  [inline]
 

Definition at line 203 of file texState.h.

float glift::MipMapTex::minLOD  )  const [inline]
 

Definition at line 195 of file texState.h.

void MipMapTex::release  )  const [virtual]
 

Calls FilterTex::bind(...).

Reimplemented from glift::TexObjState.

Definition at line 194 of file texState.cpp.

virtual void glift::GliftObject::setErrStream std::ostream *  os  )  [inline, virtual, inherited]
 

Where do you want gl errors to go? they must go somewhere, so don't set it to zero please.

Definition at line 44 of file gliftObject.h.

References glift::GliftObject::m_err.

Referenced by glift::getProgShaderFromFile(), and glift::getProgShaderFromText().


Member Data Documentation

std::ostream* glift::GliftObject::m_err [mutable, protected, inherited]
 

Definition at line 87 of file gliftObject.h.

Referenced by glift::GliftObject::derr(), glift::GliftObject::err(), glift::GliftObject::estr(), glift::GliftObject::getErrStream(), glift::GliftObject::GliftObject(), and glift::GliftObject::setErrStream().


The documentation for this class was generated from the following files:
Send questions, comments, and bug reports to:
jmk