#include <texConst.h>
Inheritance diagram for glift::TexConst:
example: /// Place 3.14516 on the 's' texture coordinate / Place 2.71828 on the 'r' texture coordinate gutz::vec2f twoVec( 3.14516, 2.71828 ); TexConst const1( twoVec, 2, GLIFT_R | GLIFT_S );
Definition at line 64 of file texConst.h.
Public Member Functions | |
TexConst () | |
Mapping from [0, 3] to [GLIFT_S, GLIFT_Q]. | |
TexConst (float val, uint texUnit, uint coords) | |
TexConst (const gutz::vec2f &val, uint texUnit, uint coords) | |
TexConst (const gutz::vec3f &val, uint texUnit, uint coords) | |
virtual gutz::arrayo2f | operator() (const gutz::arrayw2f &rawTexCoord, const gutz::vec3f &primScale) |
Usage 1: Generate tex-coords from scratch based on vertices and dimensions of primitive Usage 2: Perturb existing texture coordinates. | |
gutz::arrayo1f | value () const |
uint | texUnit () const |
int | size () const |
uint | coords () const |
gutz::vec4< bool > | usedTexCoords () const |
gutz::arrayo2f | genTexCoords () |
Alternate interface. | |
gutz::arrayo2f | genTexCoords (const gutz::arrayw2f coords, const gutz::vec3f &dimen) |
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 |
|
Mapping from [0, 3] to [GLIFT_S, GLIFT_Q].
Definition at line 34 of file texConst.cpp. References gutz::arrayo1f, and GLIFT_NONE. |
|
Definition at line 37 of file texConst.cpp. References gutz::arrayo1f, glift::GliftObject::err(), and gutz::numOnesInWord(). |
|
Definition at line 51 of file texConst.cpp. References gutz::arrayo1f, glift::GliftObject::err(), gutz::numOnesInWord(), and v. |
|
Definition at line 64 of file texConst.cpp. References gutz::arrayo1f, glift::GliftObject::err(), gutz::numOnesInWord(), and v. |
|
Definition at line 77 of file texConst.h. References uint. |
|
debug error
Definition at line 122 of file gliftObject.h. References glift::GliftObject::m_err. |
|
|
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(). |
|
Definition at line 51 of file texCoordGen/texCoordGen.h. |
|
Alternate interface.
Definition at line 50 of file texCoordGen/texCoordGen.h. |
|
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(). |
|
Usage 1: Generate tex-coords from scratch based on vertices and dimensions of primitive Usage 2: Perturb existing texture coordinates. Default implementation returns empty gutz::arrayo2f Reimplemented from glift::TexCoordGen. Definition at line 122 of file texConst.cpp. References gutz::arrayo2f, GLIFT_NONE, index, and v. |
|
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 76 of file texConst.h. |
|
Definition at line 75 of file texConst.h. References uint. |
|
Definition at line 78 of file texConst.cpp. |
|
Definition at line 74 of file texConst.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(). |