Mercurial > hg > Game > Cerium
comparison Renderer/Engine/SceneGraphRoot.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 | b8adf4e95e96 |
children | 636dfdc30176 |
comparison
equal
deleted
inserted
replaced
1210:0ee23180d301 | 1211:7763f03a94e1 |
---|---|
140 } | 140 } |
141 | 141 |
142 /*文字列の生成*/ | 142 /*文字列の生成*/ |
143 void | 143 void |
144 SceneGraphRoot::createStringFont(TaskManager *manager, SceneGraphPtr root, | 144 SceneGraphRoot::createStringFont(TaskManager *manager, SceneGraphPtr root, |
145 char *string,int pixels,int screen_w, | 145 const char *string,int pixels,int screen_w, |
146 int screen_h,Uint32 color) | 146 int screen_h,Uint32 color) |
147 { | 147 { |
148 SceneGraphPtr text; | 148 SceneGraphPtr text; |
149 float width_shift = 0; | 149 float width_shift = 0; |
150 int i; | 150 int i; |
176 i += len; | 176 i += len; |
177 } | 177 } |
178 } | 178 } |
179 | 179 |
180 void | 180 void |
181 SceneGraphRoot::createFont(TaskManager *manager,char *font, int pixels, | 181 SceneGraphRoot::createFont(TaskManager *manager,const char *font, int pixels, |
182 Uint32 color,char *string_name, int len, | 182 Uint32 color,const char *string_name, int len, |
183 char **obj_name) | 183 char **obj_name) |
184 { | 184 { |
185 *obj_name = (char *)malloc(sizeof(char) * 12); | 185 *obj_name = (char *)malloc(sizeof(char) * 12); |
186 char sname[] = "char:"; | 186 char sname[] = "char:"; |
187 memcpy(*obj_name, sname, 5); | 187 memcpy(*obj_name, sname, 5); |