Wraps the OpenGL function glFog(), see also http://www.opengl.org/sdk/docs/man/xhtml/glFog.xml for more information.
More...
#include <Shader.hpp>
List of all members.
Public Member Functions |
| | Fog (EFogMode mode=FM_LINEAR, fvec4 color=fvec4(0, 0, 0, 0), float density=1, float start=0, float end=1) |
| virtual const char * | className () |
| | Returns the name of the class.
|
| virtual ERenderState | type () const |
| virtual void | apply (const Camera *, OpenGLContext *ctx) const |
| | The parameter cameara is NULL if we are disabling the state, non-NULL if we are enabling it.
|
| void | set (EFogMode mode, fvec4 color, float density, float start, float end) |
| void | setColor (fvec4 color) |
| void | setMode (EFogMode mode) |
| void | setDensity (float density) |
| void | setStart (float start) |
| void | setEnd (float end) |
| fvec4 | color () const |
| EFogMode | mode () const |
| float | density () const |
| float | start () const |
| float | end () const |
Protected Attributes |
| fvec4 | mColor |
| EFogMode | mMode |
| float | mDensity |
| float | mStart |
| float | mEnd |
Detailed Description
Wraps the OpenGL function glFog(), see also http://www.opengl.org/sdk/docs/man/xhtml/glFog.xml for more information.
- See also:
- Shader, Effect, Actor, vl::EN_FOG
Constructor & Destructor Documentation
| vl::Fog::Fog |
( |
EFogMode |
mode = FM_LINEAR, |
|
|
fvec4 |
color = fvec4(0,0,0,0), |
|
|
float |
density = 1, |
|
|
float |
start = 0, |
|
|
float |
end = 1 |
|
) |
| [inline] |
Member Function Documentation
| virtual const char* vl::Fog::className |
( |
) |
[inline, virtual] |
| virtual ERenderState vl::Fog::type |
( |
) |
const [inline, virtual] |
The parameter cameara is NULL if we are disabling the state, non-NULL if we are enabling it.
Implements vl::RenderState.
| void vl::Fog::set |
( |
EFogMode |
mode, |
|
|
fvec4 |
color, |
|
|
float |
density, |
|
|
float |
start, |
|
|
float |
end |
|
) |
| [inline] |
| void vl::Fog::setColor |
( |
fvec4 |
color ) |
[inline] |
| void vl::Fog::setMode |
( |
EFogMode |
mode ) |
[inline] |
| void vl::Fog::setDensity |
( |
float |
density ) |
[inline] |
| void vl::Fog::setStart |
( |
float |
start ) |
[inline] |
| void vl::Fog::setEnd |
( |
float |
end ) |
[inline] |
| fvec4 vl::Fog::color |
( |
) |
const [inline] |
| EFogMode vl::Fog::mode |
( |
) |
const [inline] |
| float vl::Fog::density |
( |
) |
const [inline] |
| float vl::Fog::start |
( |
) |
const [inline] |
| float vl::Fog::end |
( |
) |
const [inline] |
Member Data Documentation
The documentation for this class was generated from the following files:
- C:/VL/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vl/Shader.hpp
- C:/VL/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vl/Shader.cpp