#include <subdivPlanarQuadS.h>
Inheritance diagram for glift::SubdivPlanarQuadS:

Definition at line 56 of file subdivPlanarQuadS.h.
Public Member Functions | |
| SubdivPlanarQuadS (GLenum primType, const gutz::vec2i &subDiv, const gutz::vec2f &lowerLeft, const gutz::vec2f &upperRight, bool genTexCoords=false, bool genNorms=false, bool sharedVerts=true, TexCoordGen *altTexGen=NULL) | |
| SubdivPlanarQuadS (GLenum primType, const gutz::vec2i &subDiv, const gutz::vec2f &lowerLeft, const gutz::vec2f &upperRight, float z=0.0f, bool genTexCoords=false, bool genNorms=false, bool sharedVerts=true, TexCoordGen *altTexGen=NULL) | |
| virtual | ~SubdivPlanarQuadS () |
| virtual gutz::vec2f | lowerLeft () const |
| virtual gutz::vec2f | upperRight () const |
| virtual gutz::vec2i | subDiv () const |
| gutz::vec2i | lgSubDiv () const |
| virtual float | z () const |
| virtual int | numActivePatches () const |
| PrimGL * | prim () const |
| void | bindQuads (const gutz::arrayw1ui &patchIndices) |
| void | bindQuads (const Vecvec2i &patches) |
| Specify which patches are to be drawn by their patch indices. | |
| void | releaseQuads () |
| Specify which patches are to be drawn by their subdiv coords. | |
| gutz::vec2f | dimen () const |
| virtual const gutz::arrayo2f & | vert () const |
| virtual const gutz::arrayo2f & | texCoord () const |
| Acessors. | |
| virtual const gutz::arrayo2f & | texCoord (int t) const |
| virtual int | numVerts () const |
| virtual bool | hasTexCoords () const |
| Texture coordinate interface. | |
| virtual void | bindTexCoords (const MultiPrimTexCoord *texCoords) |
| virtual void | bindTexCoords (const MultiTexCoord *texCoords) |
| virtual void | bindIndices (const MultiPrimIndices *indices) |
| Vertex indices interface. | |
| virtual void | bindIndices (const gutz::arrayw1ui *indices) |
| virtual void | releaseIndices () |
| virtual void | releaseTexCoords () |
| virtual MultiPrimTexCoord * | genTexCoords (const Shader *shader) |
| The handler function. Redefine if primitive should generate texture coordinates. | |
| 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 () |
| DrawableGLI interface. | |
| virtual const gutz::vec3f & | scale () const |
| void | init (PrimGL *prim) |
| 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 |
|
||||||||||||||||||||||||||||||||||||
|
Definition at line 35 of file subdivPlanarQuadS.cpp. References glift::WrappedPrim::init(). |
|
||||||||||||||||||||||||||||||||||||||||
|
Definition at line 45 of file subdivPlanarQuadS.cpp. References glift::WrappedPrim::init(), and z. |
|
|
Definition at line 55 of file subdivPlanarQuadS.cpp. |
|
|
Implements glift::RawPrim. Definition at line 55 of file wrappedPrim.h. References indices. |
|
|
Vertex indices interface.
Implements glift::RawPrim. Definition at line 54 of file wrappedPrim.h. References indices. Referenced by bindQuads(). |
|
|
Specify which patches are to be drawn by their patch indices. Redundant vertices Definition at line 328 of file subdivPlanarQuadS.cpp. References glift::WrappedPrim::bindIndices(), glift::GliftObject::err(), glift::WrappedPrim::numVerts(), start, v, and gutz::vec2i. |
|
|
Optimization Note: The Conditionals in the loop are loop-invariant Loop over all enabled indices Get (row, col) coords for this index Definition at line 275 of file subdivPlanarQuadS.cpp. References glift::WrappedPrim::bindIndices(), index, gutz::isPowOfTwo(), gutz::mod_fast(), glift::WrappedPrim::numVerts(), r, start, v, and gutz::vec2i. |
|
|
Implements glift::RawPrim. Definition at line 53 of file wrappedPrim.h. |
|
|
Implements glift::RawPrim. Definition at line 52 of file wrappedPrim.h. |
|
|
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 46 of file planarQuadZ.h. References glift::PlanarQuadZ::upperRight(). |
|
|
Definition at line 34 of file drawableGLI.cpp. References glift::DrawableGLI::drawDef(), glift::DispList::isCompiled(), and glift::DispList::issue(). Referenced by glift::WrappedPrim::drawDef(), glift::ShadedPrim::drawDef(), VolRenAlgBase::drawTris(), and glift::ShadedPrim::ShadedPrim(). |
|
|
DrawableGLI interface.
Implements glift::SinglePrim. Definition at line 65 of file wrappedPrim.h. References glift::DrawableGLI::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(). |
|
|
The handler function. Redefine if primitive should generate texture coordinates.
Reimplemented from glift::RawPrim. Definition at line 42 of file rawPrim.cpp. References glift::Shader::genTexCoords(), glift::MultiPrimTexCoord, glift::MultiTexCoord, and glift::SinglePrim::scale(). |
|
|
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(), 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(). |
|
|
Texture coordinate interface.
Implements glift::RawPrim. Definition at line 50 of file wrappedPrim.h. |
|
|
Definition at line 68 of file wrappedPrim.h. Referenced by glift::PlanarQuad::PlanarQuad(), and SubdivPlanarQuadS(). |
|
|
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 74 of file subdivPlanarQuadS.h. |
|
|
Implements glift::PlanarQuadZ. Definition at line 71 of file subdivPlanarQuadS.h. |
|
|
Implements glift::PlanarQuadZ. Definition at line 76 of file subdivPlanarQuadS.h. |
|
|
Implements glift::SinglePrim. Definition at line 49 of file wrappedPrim.h. Referenced by bindQuads(). |
|
|
Definition at line 77 of file subdivPlanarQuadS.h. |
|
|
Implements glift::RawPrim. Definition at line 56 of file wrappedPrim.h. |
|
|
Specify which patches are to be drawn by their subdiv coords.
Definition at line 81 of file subdivPlanarQuadS.h. |
|
|
Implements glift::RawPrim. Definition at line 57 of file wrappedPrim.h. |
|
|
Implements glift::SinglePrim. Definition at line 67 of file wrappedPrim.h. |
|
|
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(). |
|
|
Implements glift::PlanarQuadZ. Definition at line 73 of file subdivPlanarQuadS.h. |
|
|
Implements glift::SinglePrim. Definition at line 48 of file wrappedPrim.h. References t. |
|
|
Acessors.
Implements glift::SinglePrim. Definition at line 47 of file wrappedPrim.h. |
|
|
Implements glift::PlanarQuadZ. Definition at line 72 of file subdivPlanarQuadS.h. |
|
|
Definition at line 46 of file wrappedPrim.h. |
|
|
Implements glift::PlanarQuadZ. Definition at line 75 of file subdivPlanarQuadS.h. |
|
|
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(). |