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/utils.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/utils.c')
| -rw-r--r-- | src/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c index b5112111..27b72870 100644 --- a/src/utils.c +++ b/src/utils.c @@ -157,7 +157,9 @@ void WritePNG(const char *fileName, unsigned char *imgData, int width, int heigh { stbi_write_png(fileName, width, height, 4, imgData, width*4); // It WORKS!!! } +#endif +#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_RPI) || defined(PLATFORM_WEB) // Outputs a trace log message (INFO, ERROR, WARNING) // NOTE: If a file has been init, output log is written there void TraceLog(int msgType, const char *text, ...) |
