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

glift::SubdivPlanarQuadM Class Reference

#include <subdivPlanarQuadM.h>

Inheritance diagram for glift::SubdivPlanarQuadM:

glift::MultiPrim glift::RawPrim glift::DrawableGLI glift::Compilable glift::GliftObject List of all members.

Detailed Description

SubdivPlanarQuadM.h: interface for the SubdivPlanarQuadM class.

Definition at line 44 of file subdivPlanarQuadM.h.

Public Member Functions

 SubdivPlanarQuadM (GLenum primType, const gutz::vec2i &subDiv, const gutz::vec2f &lowerLeft, const gutz::vec2f &upperRight, bool genTexCoords=false, bool genNorms=false, TexCoordGen *altTexGen=NULL)
 SubdivPlanarQuadM (GLenum primType, const gutz::vec2i &subDiv, const gutz::vec2f &lowerLeft, const gutz::vec2f &upperRight, float z=0.0f, bool genTexCoords=false, bool genNorms=false, TexCoordGen *altTexGen=NULL)
gutz::vec2f lowerLeft () const
gutz::vec2f upperRight () const
float z () const
gutz::vec2i subDiv () const
virtual MultiPrimTexCoordgenTexCoords (const Shader *shader)
 The handler function. Redefine if primitive should generate texture coordinates.

virtual void bindTexCoords (const MultiPrimTexCoord *texCoords)
virtual void bindTexCoords (const MultiTexCoord *texCoords)
virtual void releaseTexCoords ()
virtual void bindIndices (const MultiPrimIndices *indices)
 Vertex indices interface.

virtual void bindIndices (const gutz::arrayw1ui *indices)
virtual void releaseIndices ()
virtual bool hasTexCoords () const
 Accessors.

int numPrims () const
 Return true if ALL of the primitives have texture coordinates.

const SinglePrimoperator[] (int i)
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 ()
void init (const VecSinglePrimP &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


Constructor & Destructor Documentation

SubdivPlanarQuadM::SubdivPlanarQuadM GLenum  primType,
const gutz::vec2i subDiv,
const gutz::vec2f lowerLeft,
const gutz::vec2f upperRight,
bool  genTexCoords = false,
bool  genNorms = false,
TexCoordGen altTexGen = NULL
 

Parameters:
genTexCoords  z=0.0

Definition at line 35 of file subdivPlanarQuadM.cpp.

References init(), and glift::VecSinglePrimP.

SubdivPlanarQuadM::SubdivPlanarQuadM GLenum  primType,
const gutz::vec2i subDiv,
const gutz::vec2f lowerLeft,
const gutz::vec2f upperRight,
float  z = 0.0f,
bool  genTexCoords = false,
bool  genNorms = false,
TexCoordGen altTexGen = NULL
 

Definition at line 49 of file subdivPlanarQuadM.cpp.

References init(), glift::VecSinglePrimP, and z.


Member Function Documentation

void MultiPrim::bindIndices const gutz::arrayw1ui indices  )  [virtual, inherited]
 

Implements glift::RawPrim.

Definition at line 94 of file multiPrim.cpp.

References indices, and uint.

void MultiPrim::bindIndices const MultiPrimIndices indices  )  [virtual, inherited]
 

Vertex indices interface.

Implements glift::RawPrim.

Definition at line 87 of file multiPrim.cpp.

References indices, and uint.

void MultiPrim::bindTexCoords const MultiTexCoord texCoords  )  [virtual, inherited]
 

Implements glift::RawPrim.

Definition at line 73 of file multiPrim.cpp.

References uint.

void MultiPrim::bindTexCoords const MultiPrimTexCoord texCoords  )  [virtual, inherited]
 

Implements glift::RawPrim.

Definition at line 66 of file multiPrim.cpp.

References uint.

void DrawableGLI::compile  )  [virtual, inherited]
 

Implements glift::Compilable.

Definition at line 57 of file drawableGLI.cpp.

References glift::DispList::compile(), and glift::g_compiling.

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.

void DrawableGLI::draw  )  [inherited]
 

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().

void MultiPrim::drawDef  )  [protected, virtual, inherited]
 

Implements glift::RawPrim.

Definition at line 108 of file multiPrim.cpp.

References uint.

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().

MultiPrimTexCoord * MultiPrim::genTexCoords const Shader shader  )  [virtual, inherited]
 

The handler function. Redefine if primitive should generate texture coordinates.

Reimplemented from glift::RawPrim.

Definition at line 45 of file multiPrim.cpp.

References glift::Shader::genTexCoords(), glift::MultiPrimTexCoord, glift::MultiTexCoord, scale, and uint.

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().

bool MultiPrim::hasTexCoords  )  const [virtual, inherited]
 

Accessors.

Implements glift::RawPrim.

Definition at line 57 of file multiPrim.cpp.

References uint.

void MultiPrim::init const VecSinglePrimP prim  )  [protected, inherited]
 

Definition at line 40 of file multiPrim.cpp.

virtual bool glift::DrawableGLI::isCompiled  )  const [inline, protected, virtual, inherited]
 

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().

gutz::vec2f glift::SubdivPlanarQuadM::lowerLeft  )  const [inline]
 

Definition at line 57 of file subdivPlanarQuadM.h.

int glift::MultiPrim::numPrims  )  const [inline, inherited]
 

Return true if ALL of the primitives have texture coordinates.

Definition at line 54 of file multiPrim.h.

const SinglePrim* glift::MultiPrim::operator[] int  i  )  [inline, inherited]
 

Definition at line 55 of file multiPrim.h.

void MultiPrim::releaseIndices  )  [virtual, inherited]
 

Implements glift::RawPrim.

Definition at line 101 of file multiPrim.cpp.

References uint.

void MultiPrim::releaseTexCoords  )  [virtual, inherited]
 

Implements glift::RawPrim.

Definition at line 80 of file multiPrim.cpp.

References uint.

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().

gutz::vec2i glift::SubdivPlanarQuadM::subDiv  )  const [inline]
 

Definition at line 60 of file subdivPlanarQuadM.h.

gutz::vec2f glift::SubdivPlanarQuadM::upperRight  )  const [inline]
 

Definition at line 58 of file subdivPlanarQuadM.h.

float glift::SubdivPlanarQuadM::z  )  const [inline]
 

Definition at line 59 of file subdivPlanarQuadM.h.


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