|
@@ -252,23 +252,14 @@ void Render::initTextures(char *textureDir, unsigned int *numLoaded,
|
252
|
252
|
}
|
253
|
253
|
|
254
|
254
|
extern char *gFontFilename;
|
255
|
|
- if (mTexture.loadFontTTF(gFontFilename,
|
|
255
|
+ if ((font_id = mTexture.loadFontTTF(gFontFilename,
|
256
|
256
|
//0x303f, 0x3093-0x303f)) // Hiragana
|
257
|
|
- 32, 126 - 32) // ASCII
|
|
257
|
+ 32, 126 - 32)) // ASCII
|
258
|
258
|
> -1)
|
259
|
259
|
{
|
260
|
260
|
++numTextures;
|
261
|
261
|
}
|
262
|
262
|
|
263
|
|
- snprintf(filename, 126, "%s%s", textureDir, "font-0.tga");
|
264
|
|
- filename[127] = 0;
|
265
|
|
-
|
266
|
|
- if ((font_id = mTexture.loadTGA(filename)) > -1)
|
267
|
|
- {
|
268
|
|
- ++numTextures;
|
269
|
|
- printf("Loaded TGA Font into %d\n", font_id);
|
270
|
|
- }
|
271
|
|
-
|
272
|
263
|
// Werid that it isn't linear, must be some storage deal in Texture
|
273
|
264
|
// I forgot about Id allocation
|
274
|
265
|
*nextId = font_id;
|