zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Zeni::Fog Struct Reference

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...
 

Detailed Description

An Abstraction of Fog.

The Fog struct simply provides Fog data to both Direct3D9 and OpenGL.

Author
bazald

Contact: bazal.nosp@m.d@ze.nosp@m.nipex.nosp@m..com

Definition at line 47 of file Fog.h.

Constructor & Destructor Documentation

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 
)

Definition at line 34 of file Fog.cpp.

Member Function Documentation

void Zeni::Fog::set ( Video_GL_Shader screen) const

DEPRECATED

Definition at line 68 of file Fog.cpp.

References set().

Member Data Documentation

Color Zeni::Fog::color

Color muxed with the rendering.

Definition at line 67 of file Fog.h.

float Zeni::Fog::density

used when (FOGTYPE == FOG_EXP || FOGTYPE == FOG_EXP2)

Definition at line 68 of file Fog.h.

Referenced by set().

float Zeni::Fog::end

used when FOGTYPE == FOG_LINEAR

Definition at line 70 of file Fog.h.

float Zeni::Fog::start

used when FOGTYPE == FOG_LINEAR

Definition at line 69 of file Fog.h.

FOG_TYPE Zeni::Fog::type

The type of the Fog.

Definition at line 66 of file Fog.h.


The documentation for this struct was generated from the following files: