|
Space Sim
|
Go to the source code of this file.
Functions | |
| char * | read_file (const char *filename) |
| GLuint | create_compute_shader (const char *filename) |
| GLuint | compile_shader (GLenum type, const char *filename) |
| GLuint | create_shader_program (const char *vertexPath, const char *fragmentPath) |
| void | init_main_shader () |
| void | init_mesh_shader () |
| void | init_atmosphere_shader () |
| void | init_clouds_shader () |
| void | init_atmosphere_from_space_shader () |
| void | init_sky_shader () |
| void | init_water_shader () |
| void | init_shadow_map_shader () |
| void | init_shadow_water_shader () |
| void | init_postprocess_shader () |
| void | init_density_compute_shader () |
| void | init_marching_cubes_compute_shader () |
| void | init_indirect_compute_shader () |
| void | init_shaders () |
| char * read_file | ( | const char * | filename | ) |
Definition at line 7 of file shaders.c.
References read_file(), and size.
Referenced by compile_shader(), create_compute_shader(), and read_file().
| GLuint create_compute_shader | ( | const char * | filename | ) |
Definition at line 20 of file shaders.c.
References create_compute_shader(), and read_file().
Referenced by create_compute_shader(), init(), init_density_compute_shader(), init_indirect_compute_shader(), and init_marching_cubes_compute_shader().
| GLuint compile_shader | ( | GLenum | type, |
| const char * | filename ) |
Definition at line 61 of file shaders.c.
References compile_shader(), and read_file().
Referenced by compile_shader(), and create_shader_program().
| GLuint create_shader_program | ( | const char * | vertexPath, |
| const char * | fragmentPath ) |
Definition at line 91 of file shaders.c.
References compile_shader(), and create_shader_program().
Referenced by create_shader_program(), init_atmosphere_from_space_shader(), init_atmosphere_shader(), init_clouds_shader(), init_main_shader(), init_mesh_shader(), init_postprocess_shader(), init_shadow_map_shader(), init_shadow_water_shader(), init_sky_shader(), and init_water_shader().
| void init_main_shader | ( | ) |
Definition at line 128 of file shaders.c.
References create_shader_program(), ShaderProgram::frag_path, init_main_shader(), Uniform::location, MAIN_SHADER, Uniform::name, ShaderProgram::program, ShaderProgram::uniforms, and ShaderProgram::vert_path.
Referenced by init_main_shader(), and init_shaders().
| void init_mesh_shader | ( | ) |
Definition at line 149 of file shaders.c.
References create_shader_program(), ShaderProgram::frag_path, init_mesh_shader(), Uniform::location, MESH_SHADER, Uniform::name, ShaderProgram::program, ShaderProgram::uniforms, and ShaderProgram::vert_path.
Referenced by init_mesh_shader(), and init_shaders().
| void init_atmosphere_shader | ( | ) |
Definition at line 186 of file shaders.c.
References ATMOSPHERE_SHADER, create_shader_program(), ShaderProgram::frag_path, init_atmosphere_shader(), Uniform::location, Uniform::name, ShaderProgram::program, ShaderProgram::uniforms, and ShaderProgram::vert_path.
Referenced by init_atmosphere_shader(), and init_shaders().
| void init_clouds_shader | ( | ) |
Definition at line 240 of file shaders.c.
References CLOUDS_SHADER, create_shader_program(), ShaderProgram::frag_path, init_clouds_shader(), Uniform::location, Uniform::name, ShaderProgram::program, ShaderProgram::uniforms, and ShaderProgram::vert_path.
Referenced by init_clouds_shader(), and init_shaders().
| void init_atmosphere_from_space_shader | ( | ) |
Definition at line 261 of file shaders.c.
References ATMOSPHERE_FROM_SPACE_SHADER, create_shader_program(), ShaderProgram::frag_path, init_atmosphere_from_space_shader(), Uniform::location, Uniform::name, ShaderProgram::program, ShaderProgram::uniforms, and ShaderProgram::vert_path.
Referenced by init_atmosphere_from_space_shader(), and init_shaders().
| void init_sky_shader | ( | ) |
Definition at line 315 of file shaders.c.
References create_shader_program(), ShaderProgram::frag_path, init_sky_shader(), Uniform::location, Uniform::name, ShaderProgram::program, SKY_SHADER, ShaderProgram::uniforms, and ShaderProgram::vert_path.
Referenced by init_shaders(), and init_sky_shader().
| void init_water_shader | ( | ) |
Definition at line 329 of file shaders.c.
References create_shader_program(), ShaderProgram::frag_path, init_water_shader(), Uniform::location, Uniform::name, ShaderProgram::program, ShaderProgram::uniforms, ShaderProgram::vert_path, and WATER_SHADER.
Referenced by init_shaders(), and init_water_shader().
| void init_shadow_map_shader | ( | ) |
Definition at line 360 of file shaders.c.
References create_shader_program(), ShaderProgram::frag_path, init_shadow_map_shader(), Uniform::location, Uniform::name, ShaderProgram::program, SHADOW_MAP_SHADER, ShaderProgram::uniforms, and ShaderProgram::vert_path.
Referenced by init_shaders(), and init_shadow_map_shader().
| void init_shadow_water_shader | ( | ) |
Definition at line 374 of file shaders.c.
References create_shader_program(), ShaderProgram::frag_path, init_shadow_water_shader(), Uniform::location, Uniform::name, ShaderProgram::program, SHADOW_WATER_SHADER, ShaderProgram::uniforms, and ShaderProgram::vert_path.
Referenced by init_shaders(), and init_shadow_water_shader().
| void init_postprocess_shader | ( | ) |
Definition at line 399 of file shaders.c.
References create_shader_program(), ShaderProgram::frag_path, init_postprocess_shader(), Uniform::location, Uniform::name, POSTPROCESS_SHADER, ShaderProgram::program, ShaderProgram::uniforms, and ShaderProgram::vert_path.
Referenced by init_postprocess_shader(), and init_shaders().
| void init_density_compute_shader | ( | ) |
Definition at line 435 of file shaders.c.
References create_compute_shader(), DENSITY_COMPUTE_SHADER, init_density_compute_shader(), Uniform::location, Uniform::name, ComputeShaderProgram::program, and ComputeShaderProgram::uniforms.
Referenced by init_density_compute_shader(), and init_shaders().
| void init_marching_cubes_compute_shader | ( | ) |
Definition at line 459 of file shaders.c.
References create_compute_shader(), init_marching_cubes_compute_shader(), Uniform::location, MARCHING_CUBES_COMPUTE_SHADER, Uniform::name, ComputeShaderProgram::program, and ComputeShaderProgram::uniforms.
Referenced by init_marching_cubes_compute_shader(), and init_shaders().
| void init_indirect_compute_shader | ( | ) |
Definition at line 478 of file shaders.c.
References create_compute_shader(), INDIRECT_COMPUTE_SHADER, init_indirect_compute_shader(), Uniform::location, Uniform::name, ComputeShaderProgram::program, and ComputeShaderProgram::uniforms.
Referenced by init_indirect_compute_shader(), and init_shaders().
| void init_shaders | ( | ) |
Definition at line 498 of file shaders.c.
References init_atmosphere_from_space_shader(), init_atmosphere_shader(), init_clouds_shader(), init_density_compute_shader(), init_indirect_compute_shader(), init_main_shader(), init_marching_cubes_compute_shader(), init_mesh_shader(), init_postprocess_shader(), init_shaders(), init_shadow_map_shader(), init_shadow_water_shader(), init_sky_shader(), and init_water_shader().
Referenced by init(), init_shaders(), and process_input().