diff options
| author | Ray <[email protected]> | 2023-05-01 14:04:22 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-05-01 14:04:22 +0200 |
| commit | 7d68aa686974347cefe0ef481c835e3d60bdc4b9 (patch) | |
| tree | 2542aba007b5d41956932ce47c1cb56e5a34ce42 /src/rshapes.c | |
| parent | a4a5a798bdb546646b607b3348a8f2d43b161a09 (diff) | |
| download | raylib-7d68aa686974347cefe0ef481c835e3d60bdc4b9.tar.gz raylib-7d68aa686974347cefe0ef481c835e3d60bdc4b9.zip | |
REVIEWED: Modules description layout
Diffstat (limited to 'src/rshapes.c')
| -rw-r--r-- | src/rshapes.c | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/src/rshapes.c b/src/rshapes.c index 5d7eae0a..45cf6ac6 100644 --- a/src/rshapes.c +++ b/src/rshapes.c @@ -2,26 +2,25 @@ * * rshapes - Basic functions to draw 2d shapes and check collisions * -* NOTES: -* Shapes can be draw using 3 types of primitives: LINES, TRIANGLES and QUADS. -* Some functions implement two drawing options: TRIANGLES and QUADS, by default TRIANGLES -* are used but QUADS implementation can be selected with SUPPORT_QUADS_DRAW_MODE define +* ADDITIONAL NOTES: +* Shapes can be draw using 3 types of primitives: LINES, TRIANGLES and QUADS. +* Some functions implement two drawing options: TRIANGLES and QUADS, by default TRIANGLES +* are used but QUADS implementation can be selected with SUPPORT_QUADS_DRAW_MODE define * -* Some functions define texture coordinates (rlTexCoord2f()) for the shapes and use a -* user-provided texture with SetShapesTexture(), the pourpouse of this implementation -* is allowing to reduce draw calls when combined with a texture-atlas. +* Some functions define texture coordinates (rlTexCoord2f()) for the shapes and use a +* user-provided texture with SetShapesTexture(), the pourpouse of this implementation +* is allowing to reduce draw calls when combined with a texture-atlas. * -* By default, raylib sets the default texture and rectangle at InitWindow()[rcore] to one -* white character of default font [rtext], this way, raylib text and shapes can be draw with -* a single draw call and it also allows users to configure it the same way with their own fonts. +* By default, raylib sets the default texture and rectangle at InitWindow()[rcore] to one +* white character of default font [rtext], this way, raylib text and shapes can be draw with +* a single draw call and it also allows users to configure it the same way with their own fonts. * * CONFIGURATION: +* #define SUPPORT_MODULE_RSHAPES +* rshapes module is included in the build * -* #define SUPPORT_MODULE_RSHAPES -* rshapes module is included in the build -* -* #define SUPPORT_QUADS_DRAW_MODE -* Use QUADS instead of TRIANGLES for drawing when possible. Lines-based shapes still use LINES +* #define SUPPORT_QUADS_DRAW_MODE +* Use QUADS instead of TRIANGLES for drawing when possible. Lines-based shapes still use LINES * * * LICENSE: zlib/libpng |
