mirror of
				https://github.com/nicbarker/clay.git
				synced 2025-11-04 00:26:17 +00:00 
			
		
		
		
	[Bindings/Odin] fix CreateArenaWithCapacityAndMemory capacity type
Wrong since 5571c00
			
			
This commit is contained in:
		
							parent
							
								
									02bce89d17
								
							
						
					
					
						commit
						a509cccc19
					
				| 
						 | 
				
			
			@ -36,7 +36,7 @@ Dimensions :: struct {
 | 
			
		|||
 | 
			
		||||
Arena :: struct {
 | 
			
		||||
	nextAllocation: uintptr,
 | 
			
		||||
	capacity:       uintptr,
 | 
			
		||||
	capacity:       c.size_t,
 | 
			
		||||
	memory:         [^]c.char,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -367,7 +367,7 @@ Context :: struct {} // opaque structure, only use as a pointer
 | 
			
		|||
@(link_prefix = "Clay_", default_calling_convention = "c")
 | 
			
		||||
foreign Clay {
 | 
			
		||||
	MinMemorySize :: proc() -> u32 ---
 | 
			
		||||
	CreateArenaWithCapacityAndMemory :: proc(capacity: u32, offset: [^]u8) -> Arena ---
 | 
			
		||||
	CreateArenaWithCapacityAndMemory :: proc(capacity: c.size_t, offset: [^]u8) -> Arena ---
 | 
			
		||||
	SetPointerState :: proc(position: Vector2, pointerDown: bool) ---
 | 
			
		||||
	Initialize :: proc(arena: Arena, layoutDimensions: Dimensions, errorHandler: ErrorHandler) -> ^Context ---
 | 
			
		||||
	GetCurrentContext :: proc() -> ^Context ---
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue