mirror of
				https://github.com/raysan5/raylib.git
				synced 2025-10-26 12:27:01 +00:00 
			
		
		
		
	fix: small things in CONVENTIONS.md (#2536)
This commit is contained in:
		| @@ -19,7 +19,7 @@ Operators | value1 - value2 | `int res = value - 5;` | |||||||
| Enum | TitleCase | `enum TextureFormat` | Enum | TitleCase | `enum TextureFormat` | ||||||
| Enum members | ALL_CAPS | `PIXELFORMAT_UNCOMPRESSED_R8G8B8` | Enum members | ALL_CAPS | `PIXELFORMAT_UNCOMPRESSED_R8G8B8` | ||||||
| Struct | TitleCase | `struct Texture2D`, `struct Material` | Struct | TitleCase | `struct Texture2D`, `struct Material` | ||||||
| Struct members |lowerCase | `texture.width`, `color.r` | Struct members | lowerCase | `texture.width`, `color.r` | ||||||
| Functions | TitleCase | `InitWindow()`, `LoadImageFromMemory()` | Functions | TitleCase | `InitWindow()`, `LoadImageFromMemory()` | ||||||
| Functions params | lowerCase | `width`, `height` | Functions params | lowerCase | `width`, `height` | ||||||
| Ternary Operator | (condition)? result1 : result2 | `printf("Value is 0: %s", (value == 0)? "yes" : "no");` | Ternary Operator | (condition)? result1 : result2 | `printf("Value is 0: %s", (value == 0)? "yes" : "no");` | ||||||
| @@ -52,7 +52,7 @@ switch (value) | |||||||
| ``` | ``` | ||||||
|  - All conditions checks are **always between parenthesis** but not boolean values: |  - All conditions checks are **always between parenthesis** but not boolean values: | ||||||
| ```c | ```c | ||||||
| if ((value > 1) && (value < 50) && valueActive)) | if ((value > 1) && (value < 50) && valueActive) | ||||||
| { | { | ||||||
|  |  | ||||||
| } | } | ||||||
| @@ -92,4 +92,3 @@ resources/characters/enemy_slime.png | |||||||
| resources/common/font_arial.ttf | resources/common/font_arial.ttf | ||||||
| resources/common/gui.png | resources/common/gui.png | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 veclavtalica
					veclavtalica