summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2021-04-04 14:59:17 +0200
committerraysan5 <[email protected]>2021-04-04 14:59:17 +0200
commit66f3434571af00d945a2dcc4f0ed734afe6973d8 (patch)
tree2eadde0c14d9922a811f807971906b6a0cd4ca4a /src/raylib.h
parentc21baf0d92c9a3ad44d46b698fb87d739dd64dc6 (diff)
downloadraylib-66f3434571af00d945a2dcc4f0ed734afe6973d8.tar.gz
raylib-66f3434571af00d945a2dcc4f0ed734afe6973d8.zip
REDESIGNED: Shapes texture/rec moved to shapes module
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/raylib.h b/src/raylib.h
index 3ad0bd82..7c655a8f 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -1111,6 +1111,10 @@ RLAPI VrStereoConfig GetVrConfig(VrDeviceInfo device); // Get stereo rendering
//------------------------------------------------------------------------------------
// Basic Shapes Drawing Functions (Module: shapes)
//------------------------------------------------------------------------------------
+// Set texture and rectangle to be used on shapes drawing
+// NOTE: It can be useful when using basic shapes and one single font,
+// defining a font char white rectangle would allow drawing everything in a single draw call
+RLAPI void SetShapesTexture(Texture2D texture, Rectangle source);
// Basic shapes drawing functions
RLAPI void DrawPixel(int posX, int posY, Color color); // Draw a pixel
@@ -1245,7 +1249,6 @@ RLAPI void UpdateTexture(Texture2D texture, const void *pixels);
RLAPI void UpdateTextureRec(Texture2D texture, Rectangle rec, const void *pixels); // Update GPU texture rectangle with new data
RLAPI Image GetTextureData(Texture2D texture); // Get pixel data from GPU texture and return an Image
RLAPI Image GetScreenData(void); // Get pixel data from screen buffer and return an Image (screenshot)
-RLAPI void SetShapesTexture(Texture2D texture, Rectangle source); // Define default texture used to draw shapes
// Texture configuration functions
RLAPI void GenTextureMipmaps(Texture2D *texture); // Generate GPU mipmaps for a texture