mirror of
				https://github.com/nicbarker/clay.git
				synced 2025-11-04 00:26:17 +00:00 
			
		
		
		
	z index to i32 and update odin bindings
This commit is contained in:
		
							parent
							
								
									e41a8eea88
								
							
						
					
					
						commit
						a2c1b860a6
					
				| 
						 | 
				
			
			@ -185,7 +185,7 @@ RenderCommand :: struct {
 | 
			
		|||
    boundingBox: BoundingBox,
 | 
			
		||||
    config:      ElementConfigUnion,
 | 
			
		||||
    text:        StringSlice,
 | 
			
		||||
    zIndex:      u32,
 | 
			
		||||
    zIndex:      i32,
 | 
			
		||||
    id:          u32,
 | 
			
		||||
    commandType: RenderCommandType,
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										4
									
								
								clay.h
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								clay.h
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -472,7 +472,7 @@ CLAY__TYPEDEF(Clay_RenderCommand, struct {
 | 
			
		|||
    Clay_BoundingBox boundingBox;
 | 
			
		||||
    Clay_ElementConfigUnion config;
 | 
			
		||||
    Clay_StringSlice text; // TODO I wish there was a way to avoid having to have this on every render command
 | 
			
		||||
    uint32_t zIndex;
 | 
			
		||||
    int32_t zIndex;
 | 
			
		||||
    uint32_t id;
 | 
			
		||||
    Clay_RenderCommandType commandType;
 | 
			
		||||
});
 | 
			
		||||
| 
						 | 
				
			
			@ -2601,8 +2601,8 @@ void Clay__CalculateFinalLayout() {
 | 
			
		|||
                Clay__AddRenderCommand(CLAY__INIT(Clay_RenderCommand) {
 | 
			
		||||
                    .boundingBox = clipHashMapItem->boundingBox,
 | 
			
		||||
                    .config = { .scrollElementConfig = Clay__StoreScrollElementConfig(CLAY__INIT(Clay_ScrollElementConfig)CLAY__DEFAULT_STRUCT) },
 | 
			
		||||
                    .id = Clay__RehashWithNumber(rootElement->id, 10), // TODO need a better strategy for managing derived ids
 | 
			
		||||
                    .zIndex = root->zIndex,
 | 
			
		||||
                    .id = Clay__RehashWithNumber(rootElement->id, 10), // TODO need a better strategy for managing derived ids
 | 
			
		||||
                    .commandType = CLAY_RENDER_COMMAND_TYPE_SCISSOR_START,
 | 
			
		||||
                });
 | 
			
		||||
            }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue