src/renderer/states.cpp File Reference

#include <sge/renderer/states.hpp>
#include <sge/text.hpp>
#include <sge/iostream.hpp>
#include <ostream>

Defines

#define STATE(STATE_, NAME_)
#define SGE_RS_NAMESPACE_cull_mode   state_cull_mode_type
#define SGE_RS_NAMESPACE_depth_func   state_depth_func_type
#define SGE_RS_NAMESPACE_stencil_func   state_stencil_func_type
#define SGE_RS_NAMESPACE_fog_mode   state_fog_mode_type
#define SGE_RS_NAMESPACE_draw_mode   state_draw_mode_type
#define SGE_RS_NAMESPACE_source_blend_func   state_source_blend_func_type
#define SGE_RS_NAMESPACE_dest_blend_func   state_dest_blend_func_type
#define SSTATE(STATE_, NAME_)

Functions

sge::renderer::float_state::type STATE (float_state, zbuffer_clear_val)
sge::renderer::float_state::type STATE (float_state, fog_start)
sge::renderer::float_state::type STATE (float_state, fog_end)
sge::renderer::float_state::type STATE (float_state, fog_density)
sge::renderer::bool_state::type STATE (bool_state, clear_zbuffer)
sge::renderer::bool_state::type STATE (bool_state, clear_backbuffer)
sge::renderer::bool_state::type STATE (bool_state, clear_stencil)
sge::renderer::bool_state::type STATE (bool_state, enable_alpha_blending)
sge::renderer::bool_state::type STATE (bool_state, enable_lighting)
sge::renderer::color_state::type STATE (color_state, clear_color)
sge::renderer::color_state::type STATE (color_state, ambient_light_color)
sge::renderer::color_state::type STATE (color_state, fog_color)
const
sge::renderer::cull_mode::type 
SSTATE (cull_mode, back)
const
sge::renderer::cull_mode::type 
SSTATE (cull_mode, front)
const
sge::renderer::depth_func::type 
SSTATE (depth_func, off)
const
sge::renderer::depth_func::type 
SSTATE (depth_func, never)
const
sge::renderer::depth_func::type 
SSTATE (depth_func, less)
const
sge::renderer::depth_func::type 
SSTATE (depth_func, equal)
const
sge::renderer::depth_func::type 
SSTATE (depth_func, less_equal)
const
sge::renderer::depth_func::type 
SSTATE (depth_func, greater)
const
sge::renderer::depth_func::type 
SSTATE (depth_func, not_equal)
const
sge::renderer::depth_func::type 
SSTATE (depth_func, greater_equal)
const
sge::renderer::depth_func::type 
SSTATE (depth_func, always)
const
sge::renderer::stencil_func::type 
SSTATE (stencil_func, off)
const
sge::renderer::stencil_func::type 
SSTATE (stencil_func, never)
const
sge::renderer::stencil_func::type 
SSTATE (stencil_func, less)
const
sge::renderer::stencil_func::type 
SSTATE (stencil_func, equal)
const
sge::renderer::stencil_func::type 
SSTATE (stencil_func, less_equal)
const
sge::renderer::stencil_func::type 
SSTATE (stencil_func, greater)
const
sge::renderer::stencil_func::type 
SSTATE (stencil_func, not_equal)
const
sge::renderer::stencil_func::type 
SSTATE (stencil_func, greater_equal)
const
sge::renderer::stencil_func::type 
SSTATE (stencil_func, always)
const sge::renderer::fog_mode::type SSTATE (fog_mode, off)
const sge::renderer::fog_mode::type SSTATE (fog_mode, linear)
const sge::renderer::fog_mode::type SSTATE (fog_mode, exp)
const sge::renderer::fog_mode::type SSTATE (fog_mode, exp2)
const
sge::renderer::draw_mode::type 
SSTATE (draw_mode, point)
const
sge::renderer::draw_mode::type 
SSTATE (draw_mode, line)
const
sge::renderer::draw_mode::type 
SSTATE (draw_mode, fill)
const
sge::renderer::source_blend_func::type 
SSTATE (source_blend_func, zero)
const
sge::renderer::source_blend_func::type 
SSTATE (source_blend_func, one)
const
sge::renderer::source_blend_func::type 
SSTATE (source_blend_func, dest_color)
const
sge::renderer::source_blend_func::type 
SSTATE (source_blend_func, inv_dest_color)
const
sge::renderer::source_blend_func::type 
SSTATE (source_blend_func, src_alpha)
const
sge::renderer::source_blend_func::type 
SSTATE (source_blend_func, inv_src_alpha)
const
sge::renderer::source_blend_func::type 
SSTATE (source_blend_func, dest_alpha)
const
sge::renderer::source_blend_func::type 
SSTATE (source_blend_func, inv_dest_alpha)
const
sge::renderer::source_blend_func::type 
SSTATE (source_blend_func, src_alpha_sat)
const
sge::renderer::dest_blend_func::type 
SSTATE (dest_blend_func, zero)
const
sge::renderer::dest_blend_func::type 
SSTATE (dest_blend_func, one)
const
sge::renderer::dest_blend_func::type 
SSTATE (dest_blend_func, src_color)
const
sge::renderer::dest_blend_func::type 
SSTATE (dest_blend_func, inv_src_color)
const
sge::renderer::dest_blend_func::type 
SSTATE (dest_blend_func, src_alpha)
const
sge::renderer::dest_blend_func::type 
SSTATE (dest_blend_func, inv_src_alpha)
const
sge::renderer::dest_blend_func::type 
SSTATE (dest_blend_func, dest_alpha)
const
sge::renderer::dest_blend_func::type 
SSTATE (dest_blend_func, inv_dest_alpha)

Variables

sge::renderer::int_state::type STATE (int_state, stencil_clear_val)
const
sge::renderer::cull_mode::type 
SSTATE (cull_mode, off)

Define Documentation

#define SGE_RS_NAMESPACE_cull_mode   state_cull_mode_type

#define SGE_RS_NAMESPACE_depth_func   state_depth_func_type

#define SGE_RS_NAMESPACE_dest_blend_func   state_dest_blend_func_type

#define SGE_RS_NAMESPACE_draw_mode   state_draw_mode_type

#define SGE_RS_NAMESPACE_fog_mode   state_fog_mode_type

#define SGE_RS_NAMESPACE_source_blend_func   state_source_blend_func_type

#define SGE_RS_NAMESPACE_stencil_func   state_stencil_func_type

#define SSTATE ( STATE_,
NAME_   ) 

Value:

sge::renderer::STATE_::NAME_( \
        sge::renderer::state_var_traits<sge::renderer::STATE_::type::value_type>::singular, \
        sge::renderer::SGE_RS_NAMESPACE_##STATE_::NAME_ \
    )

#define STATE ( STATE_,
NAME_   ) 

Value:

sge::renderer::STATE_::NAME_( \
        sge::renderer::state_var_traits<sge::renderer::STATE_::type::value_type>::NAME_\
    )


Function Documentation

const sge::renderer::dest_blend_func::type SSTATE ( dest_blend_func  ,
inv_dest_alpha   
)

const sge::renderer::dest_blend_func::type SSTATE ( dest_blend_func  ,
dest_alpha   
)

const sge::renderer::dest_blend_func::type SSTATE ( dest_blend_func  ,
inv_src_alpha   
)

const sge::renderer::dest_blend_func::type SSTATE ( dest_blend_func  ,
src_alpha   
)

const sge::renderer::dest_blend_func::type SSTATE ( dest_blend_func  ,
inv_src_color   
)

const sge::renderer::dest_blend_func::type SSTATE ( dest_blend_func  ,
src_color   
)

const sge::renderer::dest_blend_func::type SSTATE ( dest_blend_func  ,
one   
)

const sge::renderer::dest_blend_func::type SSTATE ( dest_blend_func  ,
zero   
)

const sge::renderer::source_blend_func::type SSTATE ( source_blend_func  ,
src_alpha_sat   
)

const sge::renderer::source_blend_func::type SSTATE ( source_blend_func  ,
inv_dest_alpha   
)

const sge::renderer::source_blend_func::type SSTATE ( source_blend_func  ,
dest_alpha   
)

const sge::renderer::source_blend_func::type SSTATE ( source_blend_func  ,
inv_src_alpha   
)

const sge::renderer::source_blend_func::type SSTATE ( source_blend_func  ,
src_alpha   
)

const sge::renderer::source_blend_func::type SSTATE ( source_blend_func  ,
inv_dest_color   
)

const sge::renderer::source_blend_func::type SSTATE ( source_blend_func  ,
dest_color   
)

const sge::renderer::source_blend_func::type SSTATE ( source_blend_func  ,
one   
)

const sge::renderer::source_blend_func::type SSTATE ( source_blend_func  ,
zero   
)

const sge::renderer::draw_mode::type SSTATE ( draw_mode  ,
fill   
)

const sge::renderer::draw_mode::type SSTATE ( draw_mode  ,
line   
)

const sge::renderer::draw_mode::type SSTATE ( draw_mode  ,
point   
)

const sge::renderer::fog_mode::type SSTATE ( fog_mode  ,
exp2   
)

const sge::renderer::fog_mode::type SSTATE ( fog_mode  ,
exp   
)

const sge::renderer::fog_mode::type SSTATE ( fog_mode  ,
linear   
)

const sge::renderer::fog_mode::type SSTATE ( fog_mode  ,
off   
)

const sge::renderer::stencil_func::type SSTATE ( stencil_func  ,
always   
)

const sge::renderer::stencil_func::type SSTATE ( stencil_func  ,
greater_equal   
)

const sge::renderer::stencil_func::type SSTATE ( stencil_func  ,
not_equal   
)

const sge::renderer::stencil_func::type SSTATE ( stencil_func  ,
greater   
)

const sge::renderer::stencil_func::type SSTATE ( stencil_func  ,
less_equal   
)

const sge::renderer::stencil_func::type SSTATE ( stencil_func  ,
equal   
)

const sge::renderer::stencil_func::type SSTATE ( stencil_func  ,
less   
)

const sge::renderer::stencil_func::type SSTATE ( stencil_func  ,
never   
)

const sge::renderer::stencil_func::type SSTATE ( stencil_func  ,
off   
)

const sge::renderer::depth_func::type SSTATE ( depth_func  ,
always   
)

const sge::renderer::depth_func::type SSTATE ( depth_func  ,
greater_equal   
)

const sge::renderer::depth_func::type SSTATE ( depth_func  ,
not_equal   
)

const sge::renderer::depth_func::type SSTATE ( depth_func  ,
greater   
)

const sge::renderer::depth_func::type SSTATE ( depth_func  ,
less_equal   
)

const sge::renderer::depth_func::type SSTATE ( depth_func  ,
equal   
)

const sge::renderer::depth_func::type SSTATE ( depth_func  ,
less   
)

const sge::renderer::depth_func::type SSTATE ( depth_func  ,
never   
)

const sge::renderer::depth_func::type SSTATE ( depth_func  ,
off   
)

const sge::renderer::cull_mode::type SSTATE ( cull_mode  ,
front   
)

const sge::renderer::cull_mode::type SSTATE ( cull_mode  ,
back   
)

sge::renderer::color_state::type STATE ( color_state  ,
fog_color   
)

sge::renderer::color_state::type STATE ( color_state  ,
ambient_light_color   
)

sge::renderer::color_state::type STATE ( color_state  ,
clear_color   
)

sge::renderer::bool_state::type STATE ( bool_state  ,
enable_lighting   
)

sge::renderer::bool_state::type STATE ( bool_state  ,
enable_alpha_blending   
)

sge::renderer::bool_state::type STATE ( bool_state  ,
clear_stencil   
)

sge::renderer::bool_state::type STATE ( bool_state  ,
clear_backbuffer   
)

sge::renderer::bool_state::type STATE ( bool_state  ,
clear_zbuffer   
)

sge::renderer::float_state::type STATE ( float_state  ,
fog_density   
)

sge::renderer::float_state::type STATE ( float_state  ,
fog_end   
)

sge::renderer::float_state::type STATE ( float_state  ,
fog_start   
)

sge::renderer::float_state::type STATE ( float_state  ,
zbuffer_clear_val   
)


Variable Documentation

const sge::renderer::dest_blend_func::type SSTATE(dest_blend_func, inv_dest_alpha) ( cull_mode  ,
off   
)

sge::renderer::color_state::type STATE(color_state, fog_color) ( int_state  ,
stencil_clear_val   
)


Generated on Wed Sep 10 22:17:46 2008 for sge by  doxygen 1.5.5