altEngine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | Private Attributes | List of all members
mLight2 Class Reference

#include <shader.h>

Inheritance diagram for mLight2:
Inheritance graph
[legend]
Collaboration diagram for mLight2:
Collaboration graph
[legend]

Public Member Functions

int init (Graphics *gfx)
 
void Select ()
 
void Params (matrix4 &mvp, vector< Light * > &light_list, size_t num_lights, vec3 &offset, int u_time)
 
void set_shadow_matrix (int index, matrix4 &mvp)
 
void set_matrix (matrix4 &mvp)
 
virtual void prelink (void)
 
void set_max (int max)
 
void set_brightness (float value)
 
void set_exposure (float value)
 
void set_contrast (float value)
 
void set_ambient (float ambient)
 
void set_lightmap (float lightmap)
 
void set_shadowmap (float value)
 
void set_light (float ambient, float lightmap, int num_light)
 
void set_lightmap_stage (int flag)
 
void set_depth (int flag)
 
void set_normalmap (int value)
 
void set_alpha (float value)
 
void set_tone (int value)
 
void tcmod_stretch_sin (float amplitude, float phase, float freq, int tick_num, int index)
 
void tcmod_stretch_sawtooth (float amplitude, float phase, float freq, int tick_num, int index)
 
void tcmod_stretch_inverse_sawtooth (float amplitude, float phase, float freq, int tick_num, int index)
 
void tcmod_stretch_triangle (float amplitude, float phase, float freq, int tick_num, int index)
 
void tcmod_stretch_square (float amplitude, float phase, float freq, int tick_num, int index)
 
void rgbgen_wave_sin (float amplitude, float phase, float freq, int tick_num, int index)
 
void rgbgen_wave_sawtooth (float amplitude, float phase, float freq, int tick_num, int index)
 
void rgbgen_wave_inverse_sawtooth (float amplitude, float phase, float freq, int tick_num, int index)
 
void rgbgen_wave_triangle (float amplitude, float phase, float freq, int tick_num, int index)
 
void rgbgen_wave_square (float amplitude, float phase, float freq, int tick_num, int index)
 
void set_fog (float fog, float start, float end, vec3 &color)
 
void set_clip (vec4 *plane)
 
void tcmod_scroll (vec2 &scroll, int index)
 
void tcmod_scale (vec2 &scale, int index)
 
void tcmod_rotate (float deg, int index)
 
void alphatest (int stage, int mode)
 
void envmap (int stage, int env)
 
void turb (int stage, int turb)
 
void rgbgen_scale (int stage, float scale)
 
void portal (int portal)
 
void set_num_shadowmap (int value)
 
- Public Member Functions inherited from Shader
 Shader ()
 
int init (Graphics *gfx, char *vertex_file, char *geometry_file, char *fragment_file)
 
void destroy ()
 
virtual ~Shader ()
 

Public Attributes

int m_num_light
 
float m_ambient
 
float m_brightness
 
float m_exposure
 
float m_lightmap
 
float m_shadowmap
 
float m_contrast
 
float m_alpha
 
int m_tone
 

Private Attributes

int matrix
 
int texture [NUM_STAGE]
 
int texture_normalmap
 
int texture_lightmap
 
int u_tcmod_scroll [NUM_STAGE]
 
int u_tcmod_scale [NUM_STAGE]
 
int u_tcmod_sin [NUM_STAGE]
 
int u_tcmod_cos [NUM_STAGE]
 
int u_env [NUM_STAGE]
 
int u_water [NUM_STAGE]
 
int u_rgbgen_scale [NUM_STAGE]
 
int u_alphatest [NUM_STAGE]
 
int u_portal
 
int u_normalmap
 
int u_alpha
 
int shadow_matrix [18]
 
int depth [18]
 
int u_time
 
int u_ambient
 
int u_lightmap
 
int u_brightness
 
int u_exposure
 
int u_contrast
 
int u_shadowmap
 
int u_lightmap_stage
 
int u_depth
 
int u_num_lights
 
int u_num_shadowmap
 
int u_position
 
int u_color
 
int u_tone
 
int u_fog
 
int u_fog_start
 
int u_fog_end
 
int u_fog_color
 
int u_clip0
 
int u_clip1
 
int u_clip2
 
int u_clip3
 
float m_fog
 
vec3 m_color
 
float m_start
 
float m_end
 
float m_normalmap
 
int m_num_shadowmap
 
unsigned int max_light
 

Additional Inherited Members

- Protected Attributes inherited from Shader
const char * vertex_src
 
const char * geometry_src
 
const char * fragment_src
 
int program_handle
 
int vertex_handle
 
int geometry_handle
 
int fragment_handle
 

Member Function Documentation

void mLight2::alphatest ( int  stage,
int  mode 
)

Here is the caller graph for this function:

void mLight2::envmap ( int  stage,
int  env 
)

Here is the caller graph for this function:

int mLight2::init ( Graphics gfx)

Here is the caller graph for this function:

void mLight2::Params ( matrix4 mvp,
vector< Light * > &  light_list,
size_t  num_lights,
vec3 offset,
int  u_time 
)

Here is the caller graph for this function:

void mLight2::portal ( int  portal)

Here is the caller graph for this function:

virtual void mLight2::prelink ( void  )
virtual

Implements Shader.

void mLight2::rgbgen_scale ( int  stage,
float  scale 
)

Here is the caller graph for this function:

void mLight2::rgbgen_wave_inverse_sawtooth ( float  amplitude,
float  phase,
float  freq,
int  tick_num,
int  index 
)
void mLight2::rgbgen_wave_sawtooth ( float  amplitude,
float  phase,
float  freq,
int  tick_num,
int  index 
)
void mLight2::rgbgen_wave_sin ( float  amplitude,
float  phase,
float  freq,
int  tick_num,
int  index 
)

Here is the caller graph for this function:

void mLight2::rgbgen_wave_square ( float  amplitude,
float  phase,
float  freq,
int  tick_num,
int  index 
)

Here is the caller graph for this function:

void mLight2::rgbgen_wave_triangle ( float  amplitude,
float  phase,
float  freq,
int  tick_num,
int  index 
)
void mLight2::Select ( )
virtual

Reimplemented from Shader.

Here is the caller graph for this function:

void mLight2::set_alpha ( float  value)

Here is the caller graph for this function:

void mLight2::set_ambient ( float  ambient)

Here is the caller graph for this function:

void mLight2::set_brightness ( float  value)

Here is the caller graph for this function:

void mLight2::set_clip ( vec4 plane)
void mLight2::set_contrast ( float  value)

Here is the caller graph for this function:

void mLight2::set_depth ( int  flag)
void mLight2::set_exposure ( float  value)

Here is the caller graph for this function:

void mLight2::set_fog ( float  fog,
float  start,
float  end,
vec3 color 
)

Here is the caller graph for this function:

void mLight2::set_light ( float  ambient,
float  lightmap,
int  num_light 
)

Here is the caller graph for this function:

void mLight2::set_lightmap ( float  lightmap)

Here is the caller graph for this function:

void mLight2::set_lightmap_stage ( int  flag)

Here is the caller graph for this function:

void mLight2::set_matrix ( matrix4 mvp)

Here is the caller graph for this function:

void mLight2::set_max ( int  max)

Here is the caller graph for this function:

void mLight2::set_normalmap ( int  value)

Here is the caller graph for this function:

void mLight2::set_num_shadowmap ( int  value)

Here is the caller graph for this function:

void mLight2::set_shadow_matrix ( int  index,
matrix4 mvp 
)

Here is the caller graph for this function:

void mLight2::set_shadowmap ( float  value)

Here is the caller graph for this function:

void mLight2::set_tone ( int  value)

Here is the caller graph for this function:

void mLight2::tcmod_rotate ( float  deg,
int  index 
)

Here is the caller graph for this function:

void mLight2::tcmod_scale ( vec2 scale,
int  index 
)

Here is the caller graph for this function:

void mLight2::tcmod_scroll ( vec2 scroll,
int  index 
)

Here is the caller graph for this function:

void mLight2::tcmod_stretch_inverse_sawtooth ( float  amplitude,
float  phase,
float  freq,
int  tick_num,
int  index 
)
void mLight2::tcmod_stretch_sawtooth ( float  amplitude,
float  phase,
float  freq,
int  tick_num,
int  index 
)
void mLight2::tcmod_stretch_sin ( float  amplitude,
float  phase,
float  freq,
int  tick_num,
int  index 
)

Here is the caller graph for this function:

void mLight2::tcmod_stretch_square ( float  amplitude,
float  phase,
float  freq,
int  tick_num,
int  index 
)

Here is the caller graph for this function:

void mLight2::tcmod_stretch_triangle ( float  amplitude,
float  phase,
float  freq,
int  tick_num,
int  index 
)
void mLight2::turb ( int  stage,
int  turb 
)

Here is the caller graph for this function:

Member Data Documentation

int mLight2::depth[18]
private
float mLight2::m_alpha
float mLight2::m_ambient
float mLight2::m_brightness
vec3 mLight2::m_color
private
float mLight2::m_contrast
float mLight2::m_end
private
float mLight2::m_exposure
float mLight2::m_fog
private
float mLight2::m_lightmap
float mLight2::m_normalmap
private
int mLight2::m_num_light
int mLight2::m_num_shadowmap
private
float mLight2::m_shadowmap
float mLight2::m_start
private
int mLight2::m_tone
int mLight2::matrix
private
unsigned int mLight2::max_light
private
int mLight2::shadow_matrix[18]
private
int mLight2::texture[NUM_STAGE]
private
int mLight2::texture_lightmap
private
int mLight2::texture_normalmap
private
int mLight2::u_alpha
private
int mLight2::u_alphatest[NUM_STAGE]
private
int mLight2::u_ambient
private
int mLight2::u_brightness
private
int mLight2::u_clip0
private
int mLight2::u_clip1
private
int mLight2::u_clip2
private
int mLight2::u_clip3
private
int mLight2::u_color
private
int mLight2::u_contrast
private
int mLight2::u_depth
private
int mLight2::u_env[NUM_STAGE]
private
int mLight2::u_exposure
private
int mLight2::u_fog
private
int mLight2::u_fog_color
private
int mLight2::u_fog_end
private
int mLight2::u_fog_start
private
int mLight2::u_lightmap
private
int mLight2::u_lightmap_stage
private
int mLight2::u_normalmap
private
int mLight2::u_num_lights
private
int mLight2::u_num_shadowmap
private
int mLight2::u_portal
private
int mLight2::u_position
private
int mLight2::u_rgbgen_scale[NUM_STAGE]
private
int mLight2::u_shadowmap
private
int mLight2::u_tcmod_cos[NUM_STAGE]
private
int mLight2::u_tcmod_scale[NUM_STAGE]
private
int mLight2::u_tcmod_scroll[NUM_STAGE]
private
int mLight2::u_tcmod_sin[NUM_STAGE]
private
int mLight2::u_time
private
int mLight2::u_tone
private
int mLight2::u_water[NUM_STAGE]
private

The documentation for this class was generated from the following file: