aboutsummaryrefslogtreecommitdiff
path: root/src/raylib.h
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2015-04-13 20:15:28 +0200
committerraysan5 <raysan5@gmail.com>2015-04-13 20:15:28 +0200
commit7d2318c1677fd6e81b8cc63b040289148ca8adfc (patch)
treea8782a2ecfa48440e8bad02ed3be112dbacac441 /src/raylib.h
parenta632a04a300a60232f6b9a941e73af08d74c6e6a (diff)
downloadraylib-7d2318c1677fd6e81b8cc63b040289148ca8adfc.tar.gz
raylib-7d2318c1677fd6e81b8cc63b040289148ca8adfc.zip
WIP on shaders and textures
Moved functions: LoadShader(), UnloadShader() Add support for PVR textures compressed/uncompressed WIP: Detect available extensions for compressed textures
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h
index 0e532ebe..603cc47d 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -338,6 +338,8 @@ typedef enum {
COMPRESSED_ETC1_RGB, // 4 bpp
COMPRESSED_ETC2_RGB, // 4 bpp
COMPRESSED_ETC2_EAC_RGBA, // 8 bpp
+ COMPRESSED_PVRT_RGB, // 4 bpp
+ COMPRESSED_PVRT_RGBA, // 4 bpp
/*COMPRESSED_ASTC_RGBA_4x4*/ // 8 bpp
} TextureFormat;
@@ -543,6 +545,7 @@ void DrawBillboard(Camera camera, Texture2D texture, Vector3 center, float size,
void DrawBillboardRec(Camera camera, Texture2D texture, Rectangle sourceRec, Vector3 center, float size, Color tint); // Draw a billboard texture defined by sourceRec
Shader LoadShader(char *vsFileName, char *fsFileName); // Load a custom shader (vertex shader + fragment shader)
+void UnloadShader(Shader shader); // Unload a custom shader from memory
bool CheckCollisionSpheres(Vector3 centerA, float radiusA, Vector3 centerB, float radiusB);
bool CheckCollisionBoxes(Vector3 minBBox1, Vector3 maxBBox1, Vector3 minBBox2, Vector3 maxBBox2);