diff options
| author | raysan5 <raysan5@gmail.com> | 2016-01-02 10:41:37 +0100 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2016-01-02 10:41:37 +0100 |
| commit | b804f381504ce8dcc6e67f0b272f7dc2a81ffb2d (patch) | |
| tree | dbbb1209e412eb124d5da00c09e4ad82b65bcaa0 | |
| parent | 46ea55659393447c33c412cf19a42deecebaa98e (diff) | |
| download | raylib-b804f381504ce8dcc6e67f0b272f7dc2a81ffb2d.tar.gz raylib-b804f381504ce8dcc6e67f0b272f7dc2a81ffb2d.zip | |
Small code tweaks
| -rw-r--r-- | examples/models_billboard.c | 4 | ||||
| -rw-r--r-- | src/textures.c | 4 | ||||
| -rw-r--r-- | src/utils.c | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/examples/models_billboard.c b/examples/models_billboard.c index 05d836ca..e5f6489f 100644 --- a/examples/models_billboard.c +++ b/examples/models_billboard.c @@ -48,11 +48,11 @@ int main() ClearBackground(RAYWHITE); Begin3dMode(camera); + + DrawGrid(10.0, 1.0); // Draw a grid DrawBillboard(camera, bill, billPosition, 2.0f, WHITE); - DrawGrid(10.0, 1.0); // Draw a grid - End3dMode(); DrawFPS(10, 10); diff --git a/src/textures.c b/src/textures.c index 54cf2cc9..30ffb945 100644 --- a/src/textures.c +++ b/src/textures.c @@ -1749,6 +1749,7 @@ static Image LoadPVR(const char *fileName) // GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG 0x8C00 // GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG 0x8C02 +#if 0 // Not used... // PVR file v2 Header (52 bytes) typedef struct { unsigned int headerLength; @@ -1765,6 +1766,7 @@ static Image LoadPVR(const char *fileName) unsigned int pvrTag; unsigned int numSurfs; } pvrHeaderV2; +#endif // PVR file v3 Header (52 bytes) // NOTE: After it could be metadata (15 bytes?) @@ -1784,6 +1786,7 @@ static Image LoadPVR(const char *fileName) unsigned int metaDataSize; } pvrHeaderV3; +#if 0 // Not used... // Metadata (usually 15 bytes) typedef struct { unsigned int devFOURCC; @@ -1791,6 +1794,7 @@ static Image LoadPVR(const char *fileName) unsigned int dataSize; // Not used? unsigned char *data; // Not used? } pvrMetadata; +#endif Image image; diff --git a/src/utils.c b/src/utils.c index aac461cd..974088f3 100644 --- a/src/utils.c +++ b/src/utils.c @@ -267,7 +267,7 @@ void RecordMalloc(int mallocType, int mallocSize, const char *msg) const char *GetExtension(const char *fileName) { const char *dot = strrchr(fileName, '.'); - if(!dot || dot == fileName) return ""; + if (!dot || dot == fileName) return ""; return (dot + 1); } |
