diff options
| author | raysan5 <raysan5@gmail.com> | 2014-12-15 01:08:30 +0100 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2014-12-15 01:08:30 +0100 |
| commit | cfa60ab7e6313f85594f63d2830fdc2ce19e180e (patch) | |
| tree | 2d962e95278204622a4b259ea95c9adf41857156 /src/text.c | |
| parent | d3cf316e40b531542b6f55b965f3369d4aca28d6 (diff) | |
| download | raylib-cfa60ab7e6313f85594f63d2830fdc2ce19e180e.tar.gz raylib-cfa60ab7e6313f85594f63d2830fdc2ce19e180e.zip | |
Added support for emscripten and more
Added PLATFORM_WEB support (emscripten-webgl)
[audio] Added LoadSoundFromWave()
[textures] Added LoadTextureFromImage() to replace CreateTexture()
Some TraceLogs edited...
Diffstat (limited to 'src/text.c')
| -rw-r--r-- | src/text.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -135,7 +135,7 @@ extern void LoadDefaultFont(void) if (counter > 256) counter = 0; // Security check... } - defaultFont.texture = CreateTexture(image, false); // Convert loaded image to OpenGL texture + defaultFont.texture = LoadTextureFromImage(image, false); // Convert loaded image to OpenGL texture UnloadImage(image); // Reconstruct charSet using charsWidth[], charsHeight, charsDivisor, numChars @@ -168,7 +168,7 @@ extern void LoadDefaultFont(void) else currentPosX = testPosX; } - TraceLog(INFO, "Default font loaded successfully"); + TraceLog(INFO, "[TEX ID %i] Default font loaded successfully", defaultFont.texture.id); } extern void UnloadDefaultFont(void) @@ -240,7 +240,7 @@ SpriteFont LoadSpriteFont(const char *fileName) image.height = potHeight; } */ - spriteFont.texture = CreateTexture(image, false); // Convert loaded image to OpenGL texture + spriteFont.texture = LoadTextureFromImage(image, false); // Convert loaded image to OpenGL texture UnloadImage(image); } @@ -566,7 +566,7 @@ static SpriteFont LoadRBMF(const char *fileName) TraceLog(INFO, "[%s] Image reconstructed correctly, now converting it to texture", fileName); - spriteFont.texture = CreateTexture(image, false); + spriteFont.texture = LoadTextureFromImage(image, false); UnloadImage(image); // Unload image data TraceLog(INFO, "[%s] Starting charSet reconstruction", fileName); |
