mirror of
https://github.com/nicbarker/clay.git
synced 2025-04-20 05:08:04 +00:00
Some odin README cleanup
This commit is contained in:
parent
e6fca614fa
commit
b91856a017
@ -110,7 +110,7 @@ CreateLayout :: proc() -> clay.ClayArray(clay.RenderCommand) {
|
||||
}
|
||||
|
||||
// Standard Odin code like loops etc work inside components
|
||||
for i: u32 = 0; i < 10; i += 1 {
|
||||
for i in 0..<10 {
|
||||
SidebarItemComponent(i)
|
||||
}
|
||||
}
|
||||
@ -135,9 +135,7 @@ for i: u32 = 0; i < renderCommands.length; i += 1 {
|
||||
|
||||
switch renderCommand.commandType {
|
||||
case .Rectangle:
|
||||
{
|
||||
DrawRectangle(renderCommand.boundingBox, renderCommand.config.rectangleElementConfig.color)
|
||||
}
|
||||
DrawRectangle(renderCommand.boundingBox, renderCommand.config.rectangleElementConfig.color)
|
||||
// ... Implement handling of other command types
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user