From 4e15e9623fe5e6837f0c01175d0ce71b86d6554d Mon Sep 17 00:00:00 2001 From: Ray Date: Tue, 11 Jan 2022 16:46:19 +0100 Subject: [PATCH] Update CONVENTIONS.md --- CONVENTIONS.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CONVENTIONS.md b/CONVENTIONS.md index 3428dee..17b290c 100644 --- a/CONVENTIONS.md +++ b/CONVENTIONS.md @@ -17,7 +17,8 @@ Operators | value1 - value2 | `int res = value - 5;` Enum | TitleCase | `enum TextureFormat` Enum members | ALL_CAPS | `PIXELFORMAT_UNCOMPRESSED_R8G8B8` Struct | TitleCase | `struct Texture2D`, `struct Material` -Struct members |lowerCase | `texture.width`, `color.r` +Struct typedef | TitleCase | `typedef struct Texture { ... } Texture;` +Struct members | lowerCase | `texture.width`, `color.r` Functions | TitleCase | `InitWindow()`, `LoadImageFromMemory()` Functions params | lowerCase | `width`, `height` Ternary Operator | (condition)? result1 : result2 | `printf("Value is 0: %s", (value == 0)? "yes" : "no");`