diff Renderer/Engine/SceneGraph.cc @ 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.cc	Fri Jul 22 07:49:52 2011 +0900
+++ b/Renderer/Engine/SceneGraph.cc	Fri Jul 22 08:46:29 2011 +0900
@@ -221,7 +221,7 @@
 
 }
 
-SceneGraph::SceneGraph(TaskManager *manager,char *font,int pixels,Uint32 color,char *string_name) {
+SceneGraph::SceneGraph(TaskManager *manager,const char *font,int pixels,Uint32 color,const char *string_name) {
 
     init();
 
@@ -257,7 +257,7 @@
 }
 
 void
-SceneGraph::create_font_data(TaskManager *manager,char *font ,int pixels, Uint32 color, char *string_name)
+SceneGraph::create_font_data(TaskManager *manager,const char *font ,int pixels, Uint32 color, const char *string_name)
 {
             //font_coordinate(pixels/2,pixels);
  	    font_normal();
@@ -268,7 +268,7 @@
 }
 
 void
-SceneGraph::get_font_image(TaskManager *manager,char *font ,int pixels ,Uint32 color, char *string_name)
+SceneGraph::get_font_image(TaskManager *manager,const char *font ,int pixels ,Uint32 color, const char *string_name)
 {
   int tex_id;
   if (texture_hash.hash_regist(string_name, tex_id)) {
@@ -294,7 +294,7 @@
 }
 
 SDL_Surface*
-SceneGraph::load_font_image(char *font ,int pixel,Uint32 color , char *string_name)
+SceneGraph::load_font_image(const char *font ,int pixel,Uint32 color , const char *string_name)
 {
   //printf("laod_font_iamge");
   FT_Library library;
@@ -393,7 +393,7 @@
 }
 
 void
-SceneGraph::conv(char *str, int length, u_int32_t *out) {
+SceneGraph::conv(const char *str, int length, u_int32_t *out) {
   int oindex = 0;
   int i = 0;
   while (i < length) {
@@ -654,7 +654,7 @@
 }
 
 static  int
-is_bmp(char *name) {
+is_bmp(const char *name) {
     int  bmp = 0;
 
     while(*name) {
@@ -696,9 +696,9 @@
 }
 
 SDL_Surface*
-SceneGraph::load_decode_image(char *file_name, char *image_name, xmlNodePtr cur)
+SceneGraph::load_decode_image(const char *file_name, const char *image_name, xmlNodePtr cur)
 {
-    int fd = mkstemp(image_name);
+    int fd = mkstemp((char *)image_name);
     FILE *outfile = fdopen(fd, "wb");
 
     if (NULL == outfile) {