From 3c4f5e33fc7624ce47256e100344ec28e222fe47 Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 31 Jan 2020 12:43:12 +0100 Subject: Update cheatsheet with latest changes --- cheatsheet/cheatsheet.html | 2 +- cheatsheet/raylib_shaders.c | 5 ++++- cheatsheet/raylib_shapes.c | 2 -- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cheatsheet/cheatsheet.html b/cheatsheet/cheatsheet.html index 1fb0966..92f17ad 100644 --- a/cheatsheet/cheatsheet.html +++ b/cheatsheet/cheatsheet.html @@ -135,7 +135,7 @@

A simple and easy-to-use library to enjoy videogames programming

-

v2.6 quick reference card [download as PDF]

+

v3.0 quick reference card [download as PDF]


diff --git a/cheatsheet/raylib_shaders.c b/cheatsheet/raylib_shaders.c index d7dccf0..772ff3f 100644 --- a/cheatsheet/raylib_shaders.c +++ b/cheatsheet/raylib_shaders.c @@ -7,7 +7,10 @@ Shader GetShaderDefault(void); // Get default shader Texture2D GetTextureDefault(void); // Get default texture - + Texture2D GetShapesTexture(void); // Get texture to draw shapes + Rectangle GetShapesTextureRec(void); // Get texture rectangle to draw shapes + void SetShapesTexture(Texture2D texture, Rectangle source); // Define default texture used to draw shapes + // Shader configuration functions int GetShaderLocation(Shader shader, const char *uniformName); // Get shader uniform location void SetShaderValue(Shader shader, int uniformLoc, const void *value, int uniformType); // Set shader uniform value diff --git a/cheatsheet/raylib_shapes.c b/cheatsheet/raylib_shapes.c index 170a8a4..ef4c1da 100644 --- a/cheatsheet/raylib_shapes.c +++ b/cheatsheet/raylib_shapes.c @@ -35,8 +35,6 @@ void DrawPoly(Vector2 center, int sides, float radius, float rotation, Color color); // Draw a regular polygon (Vector version) void DrawPolyLines(Vector2 center, int sides, float radius, float rotation, Color color); // Draw a polygon outline of n sides - void SetShapesTexture(Texture2D texture, Rectangle source); // Define default texture used to draw shapes - // Basic shapes collision detection functions 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 -- cgit v1.2.3