Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
#include <Shader.hpp>

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 *) const |
| 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 |
| vl::Fog::Fog | ( | EFogMode | mode = FM_LINEAR, |
|
| fvec4 | color = fvec4(0,0,0,0), |
|||
| float | density = 1, |
|||
| float | start = 0, |
|||
| float | end = 1 | |||
| ) | [inline] |
| virtual const char* vl::Fog::className | ( | ) | [inline, virtual] |
| virtual ERenderState vl::Fog::type | ( | ) | const [inline, virtual] |
Reimplemented from vl::RenderState.
| void Fog::apply | ( | const Camera * | ) | const [virtual] |
Implements vl::RenderState.
| 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] |
fvec4 vl::Fog::mColor [protected] |
EFogMode vl::Fog::mMode [protected] |
float vl::Fog::mDensity [protected] |
float vl::Fog::mStart [protected] |
float vl::Fog::mEnd [protected] |