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

glift::DrawAttrib Class Reference

#include <drawAttrib.h>

Inheritance diagram for glift::DrawAttrib:

glift::GliftObject glift::GenDrawAttrib< AT > glift::GenDrawAttrib< UIntV2A > glift::GenDrawAttrib< VAT > glift::IndexAttrib< VAT > glift::NormalAttrib< VAT > glift::TexCoordAttrib< VAT > glift::VertAttrib< VAT > List of all members.

Detailed Description

drawAttrib.h

drawable Attributes, basic classes defining things like: vertex arrays texture coordinate arrays etc... Base Attribute

Definition at line 45 of file drawAttrib.h.

Public Member Functions

 DrawAttrib (bool active=true)
virtual ~DrawAttrib ()
void enable ()
void disable ()
void activate ()
 turn an attribute on and off

void deactivate ()
void setActive (bool onoff)
bool isActive ()
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 enableDef ()
virtual void disableDef ()
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

bool _active
std::ostream * m_err


Constructor & Destructor Documentation

glift::DrawAttrib::DrawAttrib bool  active = true  )  [inline]
 

Definition at line 47 of file drawAttrib.h.

References _active.

virtual glift::DrawAttrib::~DrawAttrib  )  [inline, virtual]
 

Definition at line 48 of file drawAttrib.h.


Member Function Documentation

void glift::DrawAttrib::activate  )  [inline]
 

turn an attribute on and off

Definition at line 55 of file drawAttrib.h.

References _active.

void glift::DrawAttrib::deactivate  )  [inline]
 

Definition at line 56 of file drawAttrib.h.

References _active.

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 glift::DrawAttrib::disable  )  [inline]
 

Definition at line 51 of file drawAttrib.h.

References enableDef().

virtual void glift::DrawAttrib::disableDef  )  [inline, protected, virtual]
 

Reimplemented in glift::GenDrawAttrib< AT >, glift::VertAttrib< VAT >, glift::TexCoordAttrib< VAT >, glift::IndexAttrib< VAT >, glift::NormalAttrib< VAT >, glift::GenDrawAttrib< UIntV2A >, and glift::GenDrawAttrib< VAT >.

Definition at line 62 of file drawAttrib.h.

void glift::DrawAttrib::enable  )  [inline]
 

Definition at line 50 of file drawAttrib.h.

References enableDef().

virtual void glift::DrawAttrib::enableDef  )  [inline, protected, virtual]
 

Reimplemented in glift::GenDrawAttrib< AT >, glift::VertAttrib< VAT >, glift::TexCoordAttrib< VAT >, glift::IndexAttrib< VAT >, glift::NormalAttrib< VAT >, glift::GenDrawAttrib< UIntV2A >, and glift::GenDrawAttrib< VAT >.

Definition at line 61 of file drawAttrib.h.

Referenced by disable(), and enable().

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

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 glift::DrawAttrib::isActive  )  [inline]
 

Definition at line 58 of file drawAttrib.h.

References _active.

void glift::DrawAttrib::setActive bool  onoff  )  [inline]
 

Definition at line 57 of file drawAttrib.h.

References _active.

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


Member Data Documentation

bool glift::DrawAttrib::_active [protected]
 

Definition at line 63 of file drawAttrib.h.

Referenced by activate(), deactivate(), DrawAttrib(), isActive(), and setActive().

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 file:
Send questions, comments, and bug reports to:
jmk