Small code tweaks
This commit is contained in:
parent
46ea556593
commit
b804f38150
3 changed files with 7 additions and 3 deletions
|
@ -48,11 +48,11 @@ int main()
|
||||||
ClearBackground(RAYWHITE);
|
ClearBackground(RAYWHITE);
|
||||||
|
|
||||||
Begin3dMode(camera);
|
Begin3dMode(camera);
|
||||||
|
|
||||||
|
DrawGrid(10.0, 1.0); // Draw a grid
|
||||||
|
|
||||||
DrawBillboard(camera, bill, billPosition, 2.0f, WHITE);
|
DrawBillboard(camera, bill, billPosition, 2.0f, WHITE);
|
||||||
|
|
||||||
DrawGrid(10.0, 1.0); // Draw a grid
|
|
||||||
|
|
||||||
End3dMode();
|
End3dMode();
|
||||||
|
|
||||||
DrawFPS(10, 10);
|
DrawFPS(10, 10);
|
||||||
|
|
|
@ -1749,6 +1749,7 @@ static Image LoadPVR(const char *fileName)
|
||||||
// GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG 0x8C00
|
// GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG 0x8C00
|
||||||
// GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG 0x8C02
|
// GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG 0x8C02
|
||||||
|
|
||||||
|
#if 0 // Not used...
|
||||||
// PVR file v2 Header (52 bytes)
|
// PVR file v2 Header (52 bytes)
|
||||||
typedef struct {
|
typedef struct {
|
||||||
unsigned int headerLength;
|
unsigned int headerLength;
|
||||||
|
@ -1765,6 +1766,7 @@ static Image LoadPVR(const char *fileName)
|
||||||
unsigned int pvrTag;
|
unsigned int pvrTag;
|
||||||
unsigned int numSurfs;
|
unsigned int numSurfs;
|
||||||
} pvrHeaderV2;
|
} pvrHeaderV2;
|
||||||
|
#endif
|
||||||
|
|
||||||
// PVR file v3 Header (52 bytes)
|
// PVR file v3 Header (52 bytes)
|
||||||
// NOTE: After it could be metadata (15 bytes?)
|
// NOTE: After it could be metadata (15 bytes?)
|
||||||
|
@ -1784,6 +1786,7 @@ static Image LoadPVR(const char *fileName)
|
||||||
unsigned int metaDataSize;
|
unsigned int metaDataSize;
|
||||||
} pvrHeaderV3;
|
} pvrHeaderV3;
|
||||||
|
|
||||||
|
#if 0 // Not used...
|
||||||
// Metadata (usually 15 bytes)
|
// Metadata (usually 15 bytes)
|
||||||
typedef struct {
|
typedef struct {
|
||||||
unsigned int devFOURCC;
|
unsigned int devFOURCC;
|
||||||
|
@ -1791,6 +1794,7 @@ static Image LoadPVR(const char *fileName)
|
||||||
unsigned int dataSize; // Not used?
|
unsigned int dataSize; // Not used?
|
||||||
unsigned char *data; // Not used?
|
unsigned char *data; // Not used?
|
||||||
} pvrMetadata;
|
} pvrMetadata;
|
||||||
|
#endif
|
||||||
|
|
||||||
Image image;
|
Image image;
|
||||||
|
|
||||||
|
|
|
@ -267,7 +267,7 @@ void RecordMalloc(int mallocType, int mallocSize, const char *msg)
|
||||||
const char *GetExtension(const char *fileName)
|
const char *GetExtension(const char *fileName)
|
||||||
{
|
{
|
||||||
const char *dot = strrchr(fileName, '.');
|
const char *dot = strrchr(fileName, '.');
|
||||||
if(!dot || dot == fileName) return "";
|
if (!dot || dot == fileName) return "";
|
||||||
return (dot + 1);
|
return (dot + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue