Some odin README cleanup

This commit is contained in:
FourteenBrush 2024-08-31 21:19:34 +02:00
parent e6fca614fa
commit b91856a017
No known key found for this signature in database
GPG Key ID: DF8312C105596025

View File

@ -110,7 +110,7 @@ CreateLayout :: proc() -> clay.ClayArray(clay.RenderCommand) {
} }
// Standard Odin code like loops etc work inside components // Standard Odin code like loops etc work inside components
for i: u32 = 0; i < 10; i += 1 { for i in 0..<10 {
SidebarItemComponent(i) SidebarItemComponent(i)
} }
} }
@ -135,9 +135,7 @@ for i: u32 = 0; i < renderCommands.length; i += 1 {
switch renderCommand.commandType { switch renderCommand.commandType {
case .Rectangle: case .Rectangle:
{
DrawRectangle(renderCommand.boundingBox, renderCommand.config.rectangleElementConfig.color) DrawRectangle(renderCommand.boundingBox, renderCommand.config.rectangleElementConfig.color)
}
// ... Implement handling of other command types // ... Implement handling of other command types
} }
} }