diff options
| author | raysan5 <raysan5@gmail.com> | 2013-11-30 18:12:40 +0100 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2013-11-30 18:12:40 +0100 |
| commit | 294533ccda115b5e638ab1f9219f86d73c9c4550 (patch) | |
| tree | 79231c1eba341e091dcbcb5c8182c27222af3195 /release | |
| parent | c7220ab1b3692d81c999fcf37afdf9908d728350 (diff) | |
| download | raylib-294533ccda115b5e638ab1f9219f86d73c9c4550.tar.gz raylib-294533ccda115b5e638ab1f9219f86d73c9c4550.zip | |
Updated to version 1.0.2
Some functions added (collision detection)
Check CHANGELOG for details
Diffstat (limited to 'release')
| -rw-r--r-- | release/win32-mingw/include/raylib.h | 9 | ||||
| -rw-r--r-- | release/win32-mingw/lib/libraylib.a | bin | 133040 -> 135180 bytes |
2 files changed, 8 insertions, 1 deletions
diff --git a/release/win32-mingw/include/raylib.h b/release/win32-mingw/include/raylib.h index 14a3300e..7f14113f 100644 --- a/release/win32-mingw/include/raylib.h +++ b/release/win32-mingw/include/raylib.h @@ -1,6 +1,6 @@ /********************************************************************************************* * -* raylib 1.0.1 (www.raylib.com) +* raylib 1.0.2 (www.raylib.com) * * A simple and easy-to-use library to learn C videogames programming * @@ -301,6 +301,11 @@ void DrawTriangleLines(Vector2 v1, Vector2 v2, Vector2 v3, Color color); void DrawPoly(Vector2 *points, int numPoints, Color color); // Draw a closed polygon defined by points void DrawPolyLine(Vector2 *points, int numPoints, Color color); // Draw polygon lines +bool CheckCollisionRecs(Rectangle rec1, Rectangle rec2); // Check collision between two rectangles +bool CheckCollisionCircles(Vector2 center1, float radius1, Vector2 center2, float radius2); // Check collision between two circles +bool CheckCollisionCircleRec(Vector2 center, float radius, Rectangle rec); // Check collision between circle and rectangle +Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2); // Get collision rectangle for two rectangles collision + //------------------------------------------------------------------------------------ // Texture Loading and Drawing Functions (Module: textures) //------------------------------------------------------------------------------------ @@ -313,10 +318,12 @@ void DrawTexture(Texture2D texture, int posX, int posY, Color tint); void DrawTextureEx(Texture2D texture, Vector2 position, float rotation, float scale, Color tint); // Draw a Texture2D with extended parameters void DrawTextureRec(Texture2D texture, Rectangle sourceRec, Vector2 position, Color tint); // Draw a part of a texture defined by a rectangle void DrawTexturePro(Texture2D texture, Rectangle sourceRec, Rectangle destRec, Vector2 origin, float rotation, Color tint); // Draw a part of a texture defined by a rectangle with 'pro' parameters +Texture2D CreateTexture2D(Image image); // Create a Texture2D from Image data //------------------------------------------------------------------------------------ // Font Loading and Text Drawing Functions (Module: text) //------------------------------------------------------------------------------------ +SpriteFont GetDefaultFont(); // Get the default SpriteFont SpriteFont LoadSpriteFont(const char *fileName); // Load a SpriteFont image into GPU memory void UnloadSpriteFont(SpriteFont spriteFont); // Unload SpriteFont from GPU memory void DrawText(const char *text, int posX, int posY, int fontSize, Color color); // Draw text (using default font) diff --git a/release/win32-mingw/lib/libraylib.a b/release/win32-mingw/lib/libraylib.a Binary files differindex 028e7870..f07e2f65 100644 --- a/release/win32-mingw/lib/libraylib.a +++ b/release/win32-mingw/lib/libraylib.a |
