comparison Renderer/Engine/SceneGraph.h @ 1211:7763f03a94e1 draft before-dma-manager

const char fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 22 Jul 2011 08:46:29 +0900
parents 0ee23180d301
children 636dfdc30176
comparison
equal deleted inserted replaced
1210:0ee23180d301 1211:7763f03a94e1
19 class SceneGraph : public Polygon { 19 class SceneGraph : public Polygon {
20 public: 20 public:
21 SceneGraph(TaskManager *manager); 21 SceneGraph(TaskManager *manager);
22 SceneGraph(TaskManager *manager, xmlNodePtr surface); 22 SceneGraph(TaskManager *manager, xmlNodePtr surface);
23 SceneGraph(TaskManager *manager, SceneGraphPtr orig); 23 SceneGraph(TaskManager *manager, SceneGraphPtr orig);
24 SceneGraph(TaskManager *manager, char* string_name, int pixels, Uint32 len , char* obj_name); 24 SceneGraph(TaskManager *manager, const char* string_name, int pixels, Uint32 len , const char* obj_name);
25 25
26 ~SceneGraph(void); 26 ~SceneGraph(void);
27 27
28 // add 28 // add
29 void *sgroot; 29 void *sgroot;
76 move_func move; 76 move_func move;
77 collision_func collision; 77 collision_func collision;
78 create_sg_func create_sg; 78 create_sg_func create_sg;
79 79
80 // フォントデータ 80 // フォントデータ
81 void create_font_data(TaskManager *manager,char *font, int pixels,Uint32 color, char *filename); 81 void create_font_data(TaskManager *manager,const char *font, int pixels,Uint32 color, const char *filename);
82 void get_font_image(TaskManager *manager,char *font, int pixels,Uint32 color, char *name); 82 void get_font_image(TaskManager *manager,const char *font, int pixels,Uint32 color, const char *name);
83 void createFont(TaskManager *manager); 83 void createFont(TaskManager *manager);
84 void conv(char *str, int length, u_int32_t *out); 84 void conv(const char *str, int length, u_int32_t *out);
85 SDL_Surface* load_font_image(char *font, int pixels,Uint32 color, char *string_name); 85 SDL_Surface* load_font_image(const char *font, int pixels,Uint32 color, const char *string_name);
86
87 // フォントデータ
88 void create_font_data(TaskManager *manager,char *font, int pixels,Uint32 color, char *filename);
89 void get_font_image(TaskManager *manager,char *font, int pixels,Uint32 color, char *name);
90 void createFont(TaskManager *manager);
91 void conv(char *str, int length, u_int32_t *out);
92 SDL_Surface* load_font_image(char *font, int pixels,Uint32 color, char *string_name);
93 86
94 // desutroctor で呼ばれる 87 // desutroctor で呼ばれる
95 void (SceneGraph::*finalize)(void); 88 void (SceneGraph::*finalize)(void);
96 89
97 void init(void); 90 void init(void);
129 void tree_check(void); 122 void tree_check(void);
130 void print_member(void); 123 void print_member(void);
131 void get_data(TaskManager *manager, xmlNodePtr cur); 124 void get_data(TaskManager *manager, xmlNodePtr cur);
132 void delete_data(void); 125 void delete_data(void);
133 126
134 SDL_Surface* load_decode_image(char *filename, char *image_name, xmlNodePtr cur); 127 SDL_Surface* load_decode_image(const char *filename, const char *image_name, xmlNodePtr cur);
135 int makeTapestries(TaskManager *manager, SDL_Surface *texture_image, int id); 128 int makeTapestries(TaskManager *manager, SDL_Surface *texture_image, int id);
136 void get_image(TaskManager *manager, xmlNodePtr cur); 129 void get_image(TaskManager *manager, xmlNodePtr cur);
137 }; 130 };
138 131
139 #endif 132 #endif