#include <subTex.h>
Inheritance diagram for glift::SubTex:
Definition at line 37 of file subTex.h.
Public Member Functions | |
SubTex (SingleTex *tex, GLenum channel=GL_RGBA) | |
SubTex (const MultiTexOState &texState, SubPBuff *subPBuff, GLenum channel=GL_RGBA) | |
SubTex (SingleTex *tex, int origin, int dimen, GLenum channel=GL_RGBA) | |
SubTex (SingleTex *tex, const gutz::vec2i &origin, const gutz::vec2i &dimen, GLenum channel=GL_RGBA) | |
SubTex (SingleTex *tex, const gutz::vec3i &origin, const gutz::vec3i &dimen, GLenum channel=GL_RGBA) | |
~SubTex () | |
Default copy constructor and assignment operator. | |
SingleTex * | tex () const |
Accessors. | |
const gutz::vec3i & | origin () const |
virtual gutz::vec3i | dimen () const |
Dimen of the current data. | |
GLenum | channel () const |
virtual PBuffGlift * | pbuff () const |
Ptr to the pbuffer. | |
virtual GLenum | texType () const |
Ptr to the pbuffer. | |
virtual GLuint | texNum () const |
The OpenGL texture number (name). | |
virtual bool | tryToBindPbuff () const |
will it try to use a pbuffer | |
virtual void | copyToTex (int mipLevel, const gutz::vec3i &texOrig, const gutz::vec2i &screenOrig, const gutz::vec2i ©Size) |
Call correct copyToTex. "texOrig" will ignore unused components depending on dimension of texture. | |
virtual void | getDataub (GLenum format, int mipLevel, gutz::arraybub &data) |
virtual void | getDataf (GLenum format, int mipLevel, gutz::arraybf &data) |
virtual void | setTexData (TexData *texData, int mipLevel=0, bool setTexSize=true) |
Set Funcs. | |
virtual void | setTexState (TexObjState *texState) |
Add texture object state. | |
virtual void | setTexState (const MultiTexOState &texState) |
Bind new texState vector and set the state therein. | |
virtual void | tryToBindPbuff (bool tryToUsePbuff) |
Should the pbuffer be bound with the texture? | |
void | adjustTexCoord (gutz::arrayw2f &texCoord) |
Texture-Coordinate Utilities. | |
virtual int | numTexUnits () const |
The 'Texture' interface. | |
virtual void | setTexCoordNum (int texCNum)=0 |
set/get the texture coordinate number this texture should use | |
virtual int | getTexCoordNum ()=0 |
std::string | getName () |
void | setName (std::string name) |
void | bind () |
void | release () |
bool | isBound () |
virtual void | compile () |
virtual bool | hasNonCompilable () |
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 | |
virtual void | bindDef () |
The StateGLI interface. | |
virtual void | releaseDef () |
virtual bool | isCompiled () const |
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 | |
virtual void | _incCount () |
gutz::Counted interface, increment reference count by one. | |
virtual void | _decCount () |
gutz::Counted interface, decrement reference count by one. | |
virtual int | _getCount () const |
gutz::Counted interface, get the current reference count. | |
Protected Attributes | |
std::string | _name |
Friends | |
class | SmartPtr |
class | SmartPtrRef |
|
Definition at line 34 of file subTex.cpp. References channel(), glift::SingleTex::dimen(), dimen(), glift::SubPBuff::origin(), origin(), glift::SingleTex::pbuff(), glift::SubPBuff::subDimen(), and gutz::vec3i. |
|
Definition at line 46 of file subTex.cpp. References channel(), dimen(), glift::SubPBuff::origin(), origin(), glift::SubPBuff::subDimen(), tex(), texState, and gutz::vec3i. |
|
Definition at line 56 of file subTex.cpp. References channel(), and gutz::vec3i. |
|
Definition at line 62 of file subTex.cpp. References channel(), and gutz::vec3i. |
|
Definition at line 69 of file subTex.cpp. References channel(), and gutz::vec3i. |
|
Default copy constructor and assignment operator.
Definition at line 112 of file subTex.cpp. |
|
gutz::Counted interface, decrement reference count by one. Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr. Sometimes you need to call this though, see the documentation for gutz::SmartPtr Definition at line 54 of file smartptr.h. Referenced by TFImage::clear(), NrroImage::fBlendOverRGBA(), and Nrro::updateMinMax(). |
|
gutz::Counted interface, get the current reference count. Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr. Definition at line 58 of file smartptr.h. |
|
gutz::Counted interface, increment reference count by one. Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr. Sometimes you need to call this though, see the documentation for gutz::SmartPtr Definition at line 48 of file smartptr.h. Referenced by TFImage::clear(), NrroImage::fBlendOverRGBA(), and Nrro::updateMinMax(). |
|
Texture-Coordinate Utilities.
Definition at line 73 of file subTex.h. Referenced by glift::Shader::genTexCoords(). |
|
Definition at line 34 of file stateGLI.cpp. References glift::StateGLI::bindDef(), glift::DispList::isCompiled(), and glift::DispList::issue(). Referenced by bindDef(), glift::CoreTex::bindDef(), glift::Shader::bindDef(), glift::ProgShader::bindDef(), glift::ShadedPrim::drawDef(), and VolRenAlgBase::drawTris(). |
|
The StateGLI interface.
Implements glift::SingleTex. Definition at line 163 of file subTex.cpp. References glift::StateGLI::bind(), glift::GliftObject::err(), GL_MODELVIEW, GL_TEXTURE, glMatrixMode(), glPushMatrix(), glScalef(), and glTranslatef(). |
|
Definition at line 52 of file subTex.h. References GLenum. Referenced by SubTex(). |
|
Compile new disply lists Force deletion/construction of new objects in case a display list already exists for this object. Implements glift::Compilable. Definition at line 81 of file stateGLI.cpp. References glift::DispList::compile(), and glift::g_compiling. Referenced by glift::VertexProgARB::reset(), glift::PixelShaderATI8K::reset(), and glift::FragProgARB::reset(). |
|
Call correct copyToTex. "texOrig" will ignore unused components depending on dimension of texture.
Implements glift::SingleTex. Definition at line 94 of file subTex.h. References glift::SingleTex::copyToTex(). |
|
debug error
Definition at line 122 of file gliftObject.h. References glift::GliftObject::m_err. |
|
Dimen of the current data.
Implements glift::SingleTex. Definition at line 51 of file subTex.h. Referenced by SubTex(). |
|
|
error
Definition at line 101 of file gliftObject.h. References glift::GliftObject::m_err. Referenced by glift::SubPBuff::enable(). |
|
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(). |
|
Implements glift::SingleTex. Definition at line 124 of file subTex.cpp. References data, format, and glift::SingleTex::getDataf(). |
|
Implements glift::SingleTex. Definition at line 119 of file subTex.cpp. References data, format, and glift::SingleTex::getDataub(). |
|
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(). |
|
|
|
Implemented in glift::CoreTex. |
|
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(). |
|
Definition at line 72 of file stateGLI.h. |
|
Definition at line 70 of file stateGLI.h. Referenced by glift::GenPrimGL< VERTA, TEXCA, IDXA, RANGEA >::drawDef(), VolShader::setBlend(), VolRenAlgBase::setGeom(), VolShader::setPixelShader(), VolRenAlgBase::setShader(), VolShader::setVertexShader(), and VolRenAlgBase::setVolytope(). |
|
Implements glift::Compilable. Definition at line 81 of file stateGLI.h. Referenced by glift::VertexProgARB::reset(), glift::PixelShaderATI8K::reset(), and glift::FragProgARB::reset(). |
|
The 'Texture' interface.
Implements glift::Texture. Definition at line 56 of file singleTex.h. |
|
Definition at line 50 of file subTex.h. Referenced by SubTex(). |
|
Ptr to the pbuffer.
Implements glift::SingleTex. |
|
Definition at line 57 of file stateGLI.cpp. References glift::DispList::isCompiled(), glift::DispList::issue(), and glift::StateGLI::releaseDef(). Referenced by glift::ShadedPrim::drawDef(), VolRenAlgBase::drawTris(), glift::CoreTex::getDataub(), releaseDef(), glift::CoreTex::releaseDef(), glift::Shader::releaseDef(), and glift::ProgShader::releaseDef(). |
|
Implements glift::SingleTex. Definition at line 185 of file subTex.cpp. References GL_MODELVIEW, GL_TEXTURE, glMatrixMode(), glPopMatrix(), and glift::StateGLI::release(). |
|
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(). |
|
Definition at line 40 of file texture.h. References name. |
|
set/get the texture coordinate number this texture should use
Implemented in glift::CoreTex. |
|
Set Funcs.
Implements glift::SingleTex. Definition at line 67 of file subTex.h. References texData. |
|
Bind new texState vector and set the state therein.
Implements glift::SingleTex. Definition at line 69 of file subTex.h. References texState. |
|
Add texture object state.
Implements glift::SingleTex. Definition at line 68 of file subTex.h. References texState. |
|
Accessors.
Definition at line 49 of file subTex.h. Referenced by SubTex(). |
|
The OpenGL texture number (name).
Implements glift::SingleTex. Definition at line 56 of file subTex.h. References GLuint. |
|
Ptr to the pbuffer.
Implements glift::SingleTex. Definition at line 55 of file subTex.h. References GLenum. |
|
Should the pbuffer be bound with the texture?
Implements glift::SingleTex. |
|
will it try to use a pbuffer
Implements glift::SingleTex. |
|
Definition at line 40 of file smartptr.h. Referenced by Nrro::NrroIter< T >::NrroIter(). |
|
Definition at line 41 of file smartptr.h. |
|
|