mirror of
https://github.com/nicbarker/clay.git
synced 2025-01-23 18:06:04 +00:00
Update README.md
This commit is contained in:
parent
b14d757363
commit
b4ab3a93c0
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user