summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2020-01-31 12:43:12 +0100
committerRay <[email protected]>2020-01-31 12:43:12 +0100
commit3c4f5e33fc7624ce47256e100344ec28e222fe47 (patch)
tree54d2ac88c468a82fd12fc5a0248a496b26de3e96
parenta10421b42ab818e1d1d4115e01e2d49fe61374c1 (diff)
downloadraylib.com-3c4f5e33fc7624ce47256e100344ec28e222fe47.tar.gz
raylib.com-3c4f5e33fc7624ce47256e100344ec28e222fe47.zip
Update cheatsheet with latest changes
-rw-r--r--cheatsheet/cheatsheet.html2
-rw-r--r--cheatsheet/raylib_shaders.c5
-rw-r--r--cheatsheet/raylib_shapes.c2
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 @@
<p id="title">A simple and easy-to-use library to enjoy videogames programming</p>
<p id="plinks">[<a href="https://discordapp.com/invite/VkzNHUE">raylib Discord server</a>][<a href="https://github.com/raysan5/raylib">github.com/raysan5/raylib</a>]</p>
<p></p>
- <p id="version">v2.6 quick reference card [<a id="downpdf" href="raylib_cheatsheet.pdf">download as PDF</a>]</p>
+ <p id="version">v3.0 quick reference card [<a id="downpdf" href="raylib_cheatsheet.pdf">download as PDF</a>]</p>
</div>
<br>
<div id="fulldata">
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