diff options
| author | raysan5 <[email protected]> | 2021-04-04 14:59:17 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-04-04 14:59:17 +0200 |
| commit | 66f3434571af00d945a2dcc4f0ed734afe6973d8 (patch) | |
| tree | 2eadde0c14d9922a811f807971906b6a0cd4ca4a /src/raylib.h | |
| parent | c21baf0d92c9a3ad44d46b698fb87d739dd64dc6 (diff) | |
| download | raylib-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.h | 5 |
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 |
