Inheritance diagram for osg::Fog:
Public Types | |
enum | Mode { LINEAR = GL_LINEAR, EXP = GL_EXP, EXP2 = GL_EXP2 } |
enum | FogCoordinateSource { FOG_COORDINATE = GL_FOG_COORDINATE, FRAGMENT_DEPTH = GL_FRAGMENT_DEPTH } |
Public Methods | |
Fog () | |
Fog (const Fog &fog, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
Copy constructor using CopyOp to manage deep vs shallow copy. | |
META_StateAttribute (osg, Fog, FOG) | |
virtual int | compare (const StateAttribute &sa) const |
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. | |
virtual void | getAssociatedModes (std::vector< GLMode > &modes) const |
return the modes associated with this StateSet | |
void | setMode (const Mode mode) |
Mode | getMode () const |
void | setDensity (const float density) |
const float | getDensity () const |
void | setStart (const float start) |
const float | getStart () const |
void | setEnd (const float end) |
const float | getEnd () const |
void | setColor (const Vec4 &color) |
const Vec4 & | getColor () const |
void | setFogCoordinateSource (GLint source) |
GLint | getFogCoordinateSource () const |
virtual void | apply (State &state) const |
apply the OpenGL state attributes. | |
Protected Methods | |
virtual | ~Fog () |
Protected Attributes | |
Mode | _mode |
float | _density |
float | _start |
float | _end |
Vec4 | _color |
GLint | _fogCoordinateSource |
|
|
|
|
|
|
|
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 the modes associated with this StateSet
Reimplemented from osg::StateAttribute. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|