summaryrefslogtreecommitdiffhomepage
path: root/src/config.h
diff options
context:
space:
mode:
authorRay <[email protected]>2023-07-18 17:57:10 +0200
committerRay <[email protected]>2023-07-18 17:57:10 +0200
commit52541b4a1fb04d66de30c2a1e5f44358b2c1aee7 (patch)
tree2865c21e8f38e4d9671bb6283ef4e6b919f8e42c /src/config.h
parente0c80f5ddd9543a6f086f3871f886e275c331a53 (diff)
downloadraylib-52541b4a1fb04d66de30c2a1e5f44358b2c1aee7.tar.gz
raylib-52541b4a1fb04d66de30c2a1e5f44358b2c1aee7.zip
ADDED: `SUPPORT_FONT_ATLAS_WHITE_REC`
Support creating a 3x3 pixels white rectangle at the bottom-right corner of the generated font atlas image, useful for shapes+text drawing in a single draw call!
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h
index fbc7a5b4..67c6060b 100644
--- a/src/config.h
+++ b/src/config.h
@@ -181,6 +181,11 @@
// If not defined, still some functions are supported: TextLength(), TextFormat()
#define SUPPORT_TEXT_MANIPULATION 1
+// On font atlas image generation [GenImageFontAtlas()], add a 3x3 pixels white rectangle
+// at the bottom-right corner of the atlas. It can be useful to for shapes drawing, to allow
+// drawing text and shapes with a single draw call [SetShapesTexture()].
+#define SUPPORT_FONT_ATLAS_WHITE_REC 1
+
// rtext: Configuration values
//------------------------------------------------------------------------------------
#define MAX_TEXT_BUFFER_LENGTH 1024 // Size of internal static buffers used on some functions: