mirror of
				https://github.com/nicbarker/clay.git
				synced 2025-11-04 00:26:17 +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)
 | 
			
		||||
 | 
			
		||||
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
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue