fns.h (860B)
1 #ifndef FNS_H 2 #define FNS_H 3 4 void window_init(); 5 6 void process_input(float dt); 7 8 void render_init(); 9 void render_frame(); 10 void render_end(); 11 12 void shader_init(); 13 void shader_end(); 14 15 vec3 vec3_make(float x, float y, float z); 16 vec3 vec3_sub(vec3 a, vec3 b); 17 vec3 vec3_scale(vec3 a, float s); 18 float vec3_dot(vec3 a, vec3 b); 19 vec3 vec3_cross(vec3 a, vec3 b); 20 vec3 vec3_norm(vec3 a); 21 22 mat4 mat4_identity(void); 23 mat4 mat4_perspective(float fovy, float aspect, float znear, float zfar); 24 mat4 mat4_translate(float x, float y, float z); 25 26 void camera_init(vec3 position); 27 void camera_update_vectors(void); 28 mat4 camera_get_view(void); 29 30 void camera_process_keyboard(float dt); 31 void camera_process_mouse(float dx, float dy); 32 33 void blocks_init(void); 34 void blocks_end(void); 35 unsigned int block_texture(unsigned int id, int face); 36 37 void world_generate(); 38 39 #endif /* FNS_H */