Mercurial > hg > Game > Cerium
diff 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 |
line wrap: on
line diff
--- a/Renderer/Engine/SceneGraph.h Fri Jul 22 07:49:52 2011 +0900 +++ b/Renderer/Engine/SceneGraph.h Fri Jul 22 08:46:29 2011 +0900 @@ -21,7 +21,7 @@ SceneGraph(TaskManager *manager); SceneGraph(TaskManager *manager, xmlNodePtr surface); SceneGraph(TaskManager *manager, SceneGraphPtr orig); - SceneGraph(TaskManager *manager, char* string_name, int pixels, Uint32 len , char* obj_name); + SceneGraph(TaskManager *manager, const char* string_name, int pixels, Uint32 len , const char* obj_name); ~SceneGraph(void); @@ -78,18 +78,11 @@ create_sg_func create_sg; // フォントデータ - void create_font_data(TaskManager *manager,char *font, int pixels,Uint32 color, char *filename); - void get_font_image(TaskManager *manager,char *font, int pixels,Uint32 color, char *name); + void create_font_data(TaskManager *manager,const char *font, int pixels,Uint32 color, const char *filename); + void get_font_image(TaskManager *manager,const char *font, int pixels,Uint32 color, const char *name); void createFont(TaskManager *manager); - void conv(char *str, int length, u_int32_t *out); - SDL_Surface* load_font_image(char *font, int pixels,Uint32 color, char *string_name); - - // フォントデータ - void create_font_data(TaskManager *manager,char *font, int pixels,Uint32 color, char *filename); - void get_font_image(TaskManager *manager,char *font, int pixels,Uint32 color, char *name); - void createFont(TaskManager *manager); - void conv(char *str, int length, u_int32_t *out); - SDL_Surface* load_font_image(char *font, int pixels,Uint32 color, char *string_name); + void conv(const char *str, int length, u_int32_t *out); + SDL_Surface* load_font_image(const char *font, int pixels,Uint32 color, const char *string_name); // desutroctor で呼ばれる void (SceneGraph::*finalize)(void); @@ -131,7 +124,7 @@ void get_data(TaskManager *manager, xmlNodePtr cur); void delete_data(void); - SDL_Surface* load_decode_image(char *filename, char *image_name, xmlNodePtr cur); + SDL_Surface* load_decode_image(const char *filename, const char *image_name, xmlNodePtr cur); int makeTapestries(TaskManager *manager, SDL_Surface *texture_image, int id); void get_image(TaskManager *manager, xmlNodePtr cur); };