Progress on VEFontCache port, only cache_glyph_to_atlas & shape_text_uncached left

This commit is contained in:
2024-06-04 18:44:12 -04:00
parent 26e53bf327
commit 991e7a81c0
8 changed files with 488 additions and 175 deletions

View File

@ -257,7 +257,7 @@ ui_key_from_string :: #force_inline proc "contextless" ( value : string ) -> UI_
when USE_RAD_DEBUGGERS_METHOD {
hash : u64
for str_byte in transmute([]byte) value {
hash = ((hash << 5) + hash) + u64(str_byte)
hash = ((hash << 8) + hash) + u64(str_byte)
}
key = cast(UI_Key) hash
}