zenilib
0.5.3.0
|
An Abstraction of Fog. More...
#include <Fog.h>
Public Member Functions | |
Fog (const Color &color_=ZENI_DEFAULT_FOG_COLOR, const float &density_=ZENI_DEFAULT_FOG_DENSITY, const FOG_TYPE &type_=ZENI_DEFAULT_FOG_TYPE, const float &start_=ZENI_DEFAULT_FOG_START, const float &end_=ZENI_DEFAULT_FOG_END) | |
void | set (Video_GL_Fixed &screen) const |
void | set (Video_GL_Shader &screen) const |
void | set (Video_DX9 &screen) const |
Public Attributes | |
Color | color |
Color muxed with the rendering. More... | |
float | density |
used when (FOGTYPE == FOG_EXP || FOGTYPE == FOG_EXP2) More... | |
float | end |
used when FOGTYPE == FOG_LINEAR More... | |
float | start |
used when FOGTYPE == FOG_LINEAR More... | |
FOG_TYPE | type |
The type of the Fog. More... | |
An Abstraction of Fog.
The Fog struct simply provides Fog data to both Direct3D9 and OpenGL.
Contact: bazal d@ze nipex .com
Zeni::Fog::Fog | ( | const Color & | color_ = ZENI_DEFAULT_FOG_COLOR , |
const float & | density_ = ZENI_DEFAULT_FOG_DENSITY , |
||
const FOG_TYPE & | type_ = ZENI_DEFAULT_FOG_TYPE , |
||
const float & | start_ = ZENI_DEFAULT_FOG_START , |
||
const float & | end_ = ZENI_DEFAULT_FOG_END |
||
) |
void Zeni::Fog::set | ( | Video_GL_Fixed & | screen | ) | const |
Definition at line 48 of file Fog.cpp.
References density, Zeni::FOG_EXP, Zeni::FOG_EXP2, Zeni::FOG_LINEAR, GL_EXP, GL_EXP2, GL_FOG_COLOR, GL_FOG_DENSITY, GL_FOG_END, GL_FOG_HINT, GL_FOG_MODE, GL_FOG_START, GL_LINEAR, GL_NICEST, glFogf, glFogfv, glFogi, and glHint.
Referenced by set(), Zeni::Video_GL_Shader::set_Fog(), Zeni::Video_GL_Fixed::set_Fog(), and Zeni::Video_DX9::set_Fog().
void Zeni::Fog::set | ( | Video_GL_Shader & | screen | ) | const |
Definition at line 75 of file Fog.cpp.
References D3DFOG_EXP, D3DFOG_EXP2, D3DFOG_LINEAR, D3DRS_FOGCOLOR, D3DRS_FOGDENSITY, D3DRS_FOGEND, D3DRS_FOGSTART, D3DRS_FOGTABLEMODE, density, DWORD(), Zeni::FOG_EXP, Zeni::FOG_EXP2, Zeni::FOG_LINEAR, and Zeni::Video_DX9::get_d3d_device().
float Zeni::Fog::density |