forked from raduprv/Eternal-Lands
-
Notifications
You must be signed in to change notification settings - Fork 0
/
actor_init.h
39 lines (30 loc) · 952 Bytes
/
actor_init.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef _ACTOR_INIT_H_
#define _ACTOR_INIT_H_
#include "platform.h"
#include "load_gl_extensions.h"
#include "actors.h"
#include <SDL.h>
#ifdef __cplusplus
extern "C"
{
#endif
extern Uint32 use_animation_program;
int load_vertex_programs();
void unload_vertex_programs();
void build_buffers(actor_types* a);
void clear_buffers(actor_types* a);
void build_actor_bounding_box(actor* a);
void set_transformation_buffers(actor* act);
struct CalModel *model_new(struct CalCoreModel* pCoreModel);
void model_delete(struct CalModel *self);
void model_attach_mesh(actor *act, int mesh_id);
void model_detach_mesh(actor *act, int mesh_id);
void enable_render_actor();
void set_actor_animation_program(Uint32 pass, Uint32 ghost);
void disable_actor_animation_program();
void disable_render_actor();
void cal_render_actor_shader(actor *act, Uint32 use_lightning, Uint32 use_textures, Uint32 use_glow);
#ifdef __cplusplus
}
#endif
#endif //_ACTOR_INIT_H_