mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-01 19:59:17 -05:00
Updated raylib coding conventions (markdown)
@ -4,7 +4,7 @@ Code element | Convention | Example
|
|||||||
--- | :---: | ---
|
--- | :---: | ---
|
||||||
Macros | ALL_CAPS | `#define MIN(a,b) (((a)<(b))?(a):(b))`
|
Macros | ALL_CAPS | `#define MIN(a,b) (((a)<(b))?(a):(b))`
|
||||||
Defines | ALL_CAPS | `#define PLATFORM_DESKTOP`
|
Defines | ALL_CAPS | `#define PLATFORM_DESKTOP`
|
||||||
Constants | ALL_CAPS | `const int NUMBER = 8`
|
Constants | lowerCase | `const int maxValue= 8`
|
||||||
Struct | TitleCase | `struct Texture2D`
|
Struct | TitleCase | `struct Texture2D`
|
||||||
Struct members |lowerCase | `texture.id`
|
Struct members |lowerCase | `texture.id`
|
||||||
Enum | TitleCase | `TextureFormat`
|
Enum | TitleCase | `TextureFormat`
|
||||||
|
|||||||
Reference in New Issue
Block a user