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) renderCommands: clay.ClayArray(clay.RenderCommand) = clay.EndLayout(windowWidth, windowHeight)
for i: u32 = 0; i < renderCommands.length; i += 1 { 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 { 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
} }
} }
``` ```