summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2016-01-25 11:12:31 +0100
committerraysan5 <[email protected]>2016-01-25 11:12:31 +0100
commit3113a20390a1e4d81e9f832e7aa1d022afdb56d1 (patch)
treeadc2f2e480a0278e311fbd95e73cb3c6482657fb /src/raylib.h
parent41959eeae10d7d01fbd2abc19ccae4fc65aae031 (diff)
downloadraylib-3113a20390a1e4d81e9f832e7aa1d022afdb56d1.tar.gz
raylib-3113a20390a1e4d81e9f832e7aa1d022afdb56d1.zip
Added bounding box calculation
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h
index 41fa3f7d..097c8865 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -765,10 +765,12 @@ void DrawModel(Model model, Vector3 position, float scale, Color tint);
void DrawModelEx(Model model, Vector3 position, float rotationAngle, Vector3 rotationAxis, Vector3 scale, Color tint); // Draw a model with extended parameters
void DrawModelWires(Model model, Vector3 position, float scale, Color color); // Draw a model wires (with texture if set)
void DrawModelWiresEx(Model model, Vector3 position, float rotationAngle, Vector3 rotationAxis, Vector3 scale, Color tint); // Draw a model wires (with texture if set) with extended parameters
+void DrawBoundingBox(BoundingBox box); // Draw bounding box (wires)
void DrawBillboard(Camera camera, Texture2D texture, Vector3 center, float size, Color tint); // Draw a billboard texture
void DrawBillboardRec(Camera camera, Texture2D texture, Rectangle sourceRec, Vector3 center, float size, Color tint); // Draw a billboard texture defined by sourceRec
+BoundingBox CalculateBoundingBox(Mesh mesh); // Calculate mesh bounding box limits
bool CheckCollisionSpheres(Vector3 centerA, float radiusA, Vector3 centerB, float radiusB); // Detect collision between two spheres
bool CheckCollisionBoxes(Vector3 minBBox1, Vector3 maxBBox1, Vector3 minBBox2, Vector3 maxBBox2); // Detect collision between two boxes
bool CheckCollisionBoxSphere(Vector3 minBBox, Vector3 maxBBox, Vector3 centerSphere, float radiusSphere); // Detect collision between box and sphere