![]() |
Mali OpenGL ES SDK v2.4.4
Mali Developer Center
Use of the code snippets present within these pages are subject to these EULA terms
|
#include "app.h"#include "common/shader.h"#include "common/primitives.h"#include "common/noise.h"#include "sort.h"#include <math.h>Functions | |
| bool | load_app () |
| void | free_app () |
| void | init_shadowmap (int width, int height) |
| void | init_particles () |
| void | init_app (int width, int height) |
| void | sort_particles () |
| void | update_particles (float total_time) |
| void | update_shadow_map () |
| void | update_app (float delta_time, float total_time) |
| void | render_geometry () |
| void | render_particles () |
| void | render_app (float delta_time, float total_time) |
| void | on_pointer_down (float x, float y) |
| void | on_pointer_up (float x, float y) |
| void free_app | ( | ) |
| void init_particles | ( | ) |
| bool load_app | ( | ) |
| void render_geometry | ( | ) |
| void render_particles | ( | ) |
| void sort_particles | ( | ) |
| void update_particles | ( | float | total_time | ) |
| void update_shadow_map | ( | ) |
| GLuint buffer_position |
| GLuint buffer_spawn |
| vec2 camera_angle |
| vec2 camera_angle_vel |
| bool dragging |
| vec3 emitter_pos |
| bool front_to_back |
| vec2 last_tap |
| vec3 light_ambient |
| vec3 light_color |
| vec3 light_pos |
| mat4 mat_projection |
| mat4 mat_projection_light |
| mat4 mat_view |
| mat4 mat_view_light |
| const uint32_t NUM_PARTICLES = NUM_KEYS |
| float particle_lifetime |
| int pass = 0 |
| Mesh plane |
| Mesh quad |
| Shader shader_count |
| Shader shader_draw_particle |
| Shader shader_plane |
| Shader shader_shadow_map |
| Shader shader_spawn |
| Shader shader_sphere |
| Shader shader_update |
| GLuint shadow_map_fbo |
| int shadow_map_height |
| GLuint shadow_map_tex |
| int shadow_map_width |
| vec3 smoke_color |
| vec3 smoke_shadow |
| vec3 sort_axis |
| Mesh sphere |
| vec3 sphere_pos |
| vec3 sphere_pos_target |
| const float TIMESTEP = 0.005f |
| int window_height |
| int window_width |