#include <drawAlgorithm.h>
Inheritance diagram for glift::DrawAlgArr:
NOTE: Assumes that all necessary arrays have been enabled!!!
Definition at line 80 of file drawAlgorithm.h.
Public Member Functions | |
virtual void | draw (GLenum primType, const gutz::arrayw2f &vert, const MultiTexCoord *curTexCoords, const gutz::arrayw2f &norm, const gutz::arrayw2f &color, const gutz::arrayw1ub &edgeFlag, const gutz::arrayw1ui *curIndices) |
WARNING: This assumes that all necessary arrays have been enabled. It sets pointers, but does. | |
void | enable (const gutz::arrayw2f &vert, const MultiTexCoord *curTexCoords, const gutz::arrayw2f &norm, const gutz::arrayw2f &color, const gutz::arrayw1ub &edgeFlag) |
void | disable (const gutz::arrayw2f &vert, const MultiTexCoord *curTexCoords, const gutz::arrayw2f &norm, const gutz::arrayw2f &color, const gutz::arrayw1ub &edgeFlag) |
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 |
|
debug error
Definition at line 122 of file gliftObject.h. References glift::GliftObject::m_err. |
|
Definition at line 114 of file drawAlgArr.cpp. References g_texUnitName, GL_COLOR_ARRAY, GL_EDGE_FLAG_ARRAY, GL_NORMAL_ARRAY, GL_TEXTURE_COORD_ARRAY, GL_VERTEX_ARRAY, glClientActiveTexture, glDisableClientState(), t, and uint. Referenced by draw(). |
|
WARNING: This assumes that all necessary arrays have been enabled. It sets pointers, but does. Draw it!! TODO: Can/Should this be glRangeElements? Would have to pass in begin/end of indices TODO: Should not disable here, but still need to set glActiveTexture to 0. Enable client state and set pointers TODO: Should only set pointers here. Enable client state in 'init()' and leave enabled Implements glift::DrawAlgorithm. Definition at line 38 of file drawAlgArr.cpp. References gutz::arrayw1ui, disable(), enable(), GL_UNSIGNED_INT, glDrawArrays(), glDrawElements(), glift::GliftObject::glerr(), and indices. |
|
Setup vertices Setup texture coords Setup normals Setup colors Setup edgeFlags Definition at line 71 of file drawAlgArr.cpp. References g_texUnitName, GL_COLOR_ARRAY, GL_EDGE_FLAG, GL_FLOAT, GL_NORMAL_ARRAY, GL_TEXTURE_COORD_ARRAY, GL_VERTEX_ARRAY, glClientActiveTexture, glColorPointer(), glEdgeFlagPointer(), glEnableClientState(), GLfloat, glNormalPointer(), glTexCoordPointer(), glVertexPointer(), t, and uint. Referenced by draw(). |
|
|
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(), 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(). |
|
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 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(). |