diff --git a/examples/physics/physics_demo.cpp b/examples/physics/physics_demo.cpp index 39dbdb8..04bdde7 100644 --- a/examples/physics/physics_demo.cpp +++ b/examples/physics/physics_demo.cpp @@ -56,7 +56,7 @@ int main(void) // Update //---------------------------------------------------------------------------------- // Delay initialization of variables due to physics reset async - physics.RunStep(); + physics.UpdateStep(); if (needsReset) { diff --git a/include/Image.hpp b/include/Image.hpp index d527fd0..259c268 100644 --- a/include/Image.hpp +++ b/include/Image.hpp @@ -532,6 +532,20 @@ class Image : public ::Image { return ::LoadImagePalette(*this, maxPaletteSize, colorsCount); } + /** + * Unload color data loaded with LoadImageColors() + */ + inline void UnloadColors(::Color* colors) { + ::UnloadImageColors(colors); + } + + /** + * Unload colors palette loaded with LoadImagePalette() + */ + inline void UnloadPalette(::Color* colors) { + ::UnloadImagePalette(colors); + } + /** * Load texture from image data */ diff --git a/include/Mesh.hpp b/include/Mesh.hpp index 7ee8a19..0e3b699 100644 --- a/include/Mesh.hpp +++ b/include/Mesh.hpp @@ -149,6 +149,13 @@ class Mesh : public ::Mesh { Unload(); } + /** + * Upload mesh vertex data to GPU (VRAM) + */ + inline void Upload() { + ::UploadMesh(this); + } + /** * Export mesh data to file */ @@ -194,14 +201,6 @@ class Mesh : public ::Mesh { return *this; } - /** - * Smooth (average) vertex normals - */ - inline Mesh& NormalsSmooth() { - ::MeshNormalsSmooth(this); - return *this; - } - /** * Load model from generated mesh */ diff --git a/include/Physics.hpp b/include/Physics.hpp index 4731217..16f046a 100644 --- a/include/Physics.hpp +++ b/include/Physics.hpp @@ -68,8 +68,8 @@ class Physics { return *this; } - inline Physics& RunStep() { - ::RunPhysicsStep(); + inline Physics& UpdateStep() { + ::UpdatePhysicsStep(); return *this; } @@ -78,10 +78,6 @@ class Physics { return *this; } - inline bool IsEnabled() const { - return ::IsPhysicsEnabled(); - } - inline Physics& SetGravity(float x, float y) { ::SetPhysicsGravity(x, y); return *this; diff --git a/include/Vector2.hpp b/include/Vector2.hpp index 28edaf6..bdd7b0b 100644 --- a/include/Vector2.hpp +++ b/include/Vector2.hpp @@ -264,18 +264,16 @@ class Vector2 : public ::Vector2 { } /** - * Draw line using quadratic bezier curves with a control point - * - * TODO(RobLoach): Add this one this commit makes it in: https://github.com/raysan5/raylib/commit/521ed1cef0c0dbc752cb79f70c21bb4fc3bf70d4 + * Draw line using quadratic bezier curves with a control point. */ - // inline Vector2& DrawLineBezierQuad( - // ::Vector2 endPos, - // ::Vector2 controlPos, - // float thick, - // ::Color color) { - // ::DrawLineBezierQuad(*this, endPos, controlPos, thick, color); - // return *this; - //} + inline Vector2& DrawLineBezierQuad( + ::Vector2 endPos, + ::Vector2 controlPos, + float thick, + ::Color color) { + ::DrawLineBezierQuad(*this, endPos, controlPos, thick, color); + return *this; + } /** * Draw a color-filled circle (Vector version)