fix hot-reload, starting to setup proper rendering again.
* Added hot_reload, measure_text_size to VEFontCache
This commit is contained in:
@ -2,17 +2,17 @@ package grime
|
||||
|
||||
import "base:runtime"
|
||||
|
||||
reload_array :: proc( self : [dynamic]$Type, allocator : Allocator ) {
|
||||
reload_array :: proc( self : ^[dynamic]$Type, allocator : Allocator ) {
|
||||
raw := transmute(runtime.Raw_Dynamic_Array) self
|
||||
raw.allocator = allocator
|
||||
}
|
||||
|
||||
reload_queue :: proc( self : Queue($Type), allocator : Allocator ) {
|
||||
reload_queue :: proc( self : ^Queue($Type), allocator : Allocator ) {
|
||||
raw_array := transmute(runtime.Raw_Dynamic_Array) self.data
|
||||
raw_array.allocator = allocator
|
||||
}
|
||||
|
||||
reload_map :: proc( self : map [$KeyType] $EntryType, allocator : Allocator ) {
|
||||
reload_map :: proc( self : ^map [$KeyType] $EntryType, allocator : Allocator ) {
|
||||
raw := transmute(runtime.Raw_Map) self
|
||||
raw.allocator = allocator
|
||||
}
|
||||
|
Reference in New Issue
Block a user