Inheritance diagram for osg::TexGen:
Public Types | |
enum | Mode { OBJECT_LINEAR = GL_OBJECT_LINEAR, EYE_LINEAR = GL_EYE_LINEAR, SPHERE_MAP = GL_SPHERE_MAP, NORMAL_MAP = GL_NORMAL_MAP_ARB, REFLECTION_MAP = GL_REFLECTION_MAP_ARB } |
enum | Coord { S, T, R, Q } |
Public Member Functions | |
TexGen () | |
TexGen (const TexGen &texgen, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
META_StateAttribute (osg, TexGen, TEXGEN) | |
virtual bool | isTextureAttribute () const |
virtual int | compare (const StateAttribute &sa) const |
virtual bool | getModeUsage (ModeUsage &usage) const |
virtual void | apply (State &state) const |
void | setMode (Mode mode) |
Mode | getMode () const |
void | setPlane (Coord which, const Plane &plane) |
Plane & | getPlane (Coord which) |
const Plane & | getPlane (Coord which) const |
void | setPlanesFromMatrix (const Matrixd &matrix) |
Protected Member Functions | |
virtual | ~TexGen (void) |
Protected Attributes | |
Mode | _mode |
Plane | _plane_s |
Plane | _plane_t |
Plane | _plane_r |
Plane | _plane_q |
|
|
|
|
|
|
|
Copy constructor using CopyOp to manage deep vs shallow copy. |
|
|
|
apply the OpenGL state attributes. The global state for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state. Implements osg::StateAttribute. |
|
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. Implements osg::StateAttribute. |
|
|
|
|
|
|
|
|
|
Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit. Reimplemented from osg::StateAttribute. |
|
|
|
|
|
|
|
Set the tex gen planes from specified matrix. Typical usage would be to pass in a projection matrix to set up projective texturing. |
|
|
|
|
|
|
|
Additional texgen coefficents for GL_OBJECT_PLANE or GL_EYE_PLANE, |
|
|