Update README.md

This commit is contained in:
Nic Barker 2024-08-30 22:06:33 +12:00 committed by GitHub
parent b14d757363
commit b4ab3a93c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -131,15 +131,15 @@ CreateLayout :: proc() -> clay.ClayArray(clay.RenderCommand) {
renderCommands: clay.ClayArray(clay.RenderCommand) = clay.EndLayout(windowWidth, windowHeight)
for i: u32 = 0; i < renderCommands.length; i += 1 {
renderCommand := clay.RenderCommandArray_Get(&renderCommands, cast(i32)i)
renderCommand := clay.RenderCommandArray_Get(&renderCommands, cast(i32)i)
switch renderCommand.commandType {
case .Rectangle:
{
DrawRectangle(renderCommand.boundingBox, renderCommand.config.rectangleElementConfig.color)
}
// ... Implement handling of other command types
}
switch renderCommand.commandType {
case .Rectangle:
{
DrawRectangle(renderCommand.boundingBox, renderCommand.config.rectangleElementConfig.color)
}
// ... Implement handling of other command types
}
}
```