#include <shadedPrim.h>
Inheritance diagram for glift::ShadedPrim:
Definition at line 43 of file shadedPrim.h.
Public Member Functions | |
ShadedPrim (DrawableGLI *prim, Shader *shader) | |
ShadedPrim (const ShadedPrim &rhs) | |
ShadedPrim & | operator= (const ShadedPrim &rhs) |
virtual | ~ShadedPrim () |
void | setPrim (DrawableGLI *prim) |
Set a new 'm_prim' and 'm_rawPrim' if 'prim' is non-NULL - Note: The texture coords are NOT altered...just the primitive. | |
void | setTexCoordPtr (MultiPrimTexCoord *texCoordsPtr) |
Set the texture coords used if 'texCoordsPtr' is non-NULL - Note: No checks are done to ensure compatibility between vertices, texCoords, shaders, etc. | |
void | draw () |
void | compile () |
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 | drawDef () |
virtual bool | isCompiled () const |
Redefine this for specific draw 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 |
|
Initialize the multi- and/or perturbed texture coords if 'prim' is a 'RawPrim' Definition at line 30 of file shadedPrim.cpp. References glift::RawPrim::bindTexCoords(), glift::DrawableGLI::draw(), glift::GliftObject::err(), glift::RawPrim::genTexCoords(), GL_COMPILE, glEndList(), glGenLists(), glNewList(), and glift::RawPrim::releaseTexCoords(). |
|
Definition at line 71 of file shadedPrim.cpp. |
|
Definition at line 84 of file shadedPrim.cpp. References uint. |
|
Implements glift::Compilable. Definition at line 57 of file drawableGLI.cpp. References glift::DispList::compile(), and glift::g_compiling. |
|
debug error
Definition at line 122 of file gliftObject.h. References glift::GliftObject::m_err. |
|
Definition at line 34 of file drawableGLI.cpp. References glift::DrawableGLI::drawDef(), glift::DispList::isCompiled(), and glift::DispList::issue(). Referenced by glift::WrappedPrim::drawDef(), drawDef(), VolRenAlgBase::drawTris(), and ShadedPrim(). |
|
Enables all necessary texture units and shaders Disables all texture units and shaders that were used Implements glift::DrawableGLI. Definition at line 148 of file shadedPrim.cpp. References glift::StateGLI::bind(), glift::RawPrim::bindTexCoords(), glift::DrawableGLI::draw(), glCallList(), glift::GliftObject::glerr(), glift::StateGLI::release(), and glift::RawPrim::releaseTexCoords(). |
|
|
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(). |
|
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(). |
|
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(), drawDef(), glift::NormalAttrib< VAT >::enableDef(), glift::IndexAttrib< VAT >::enableDef(), glift::TexCoordAttrib< VAT >::enableDef(), glift::VertAttrib< VAT >::enableDef(), glift::GenDrawAttrib< VAT >::enableDef(), and RenderState2D::releaseDef(). |
|
Redefine this for specific draw functions.
Implements glift::Compilable. Definition at line 34 of file drawableGLI.h. Referenced by glift::PrimGL::bindIndices(), and glift::PrimGL::bindTexCoords(). |
|
Definition at line 76 of file shadedPrim.cpp. |
|
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(). |
|
Set a new 'm_prim' and 'm_rawPrim' if 'prim' is non-NULL - Note: The texture coords are NOT altered...just the primitive.
Definition at line 127 of file shadedPrim.cpp. |
|
Set the texture coords used if 'texCoordsPtr' is non-NULL - Note: No checks are done to ensure compatibility between vertices, texCoords, shaders, etc.
Definition at line 141 of file shadedPrim.cpp. |
|
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(). |