Make clay.ID() take an index param with default 0, remove IDI()

This commit is contained in:
FourteenBrush 2024-08-31 17:22:12 +02:00
parent 39c2aa5305
commit ee14b067b7
No known key found for this signature in database
GPG Key ID: DF8312C105596025

View File

@ -406,10 +406,6 @@ MakeString :: proc(label: string) -> String {
return String{chars = raw_data(label), length = cast(c.int)len(label)}
}
ID :: proc(label: string) -> c.uint32_t {
return _HashString(MakeString(label), 0)
}
IDI :: proc(label: string, index: u32) -> c.uint32_t {
ID :: proc(label: string, index: u32 = 0) -> u32 {
return _HashString(MakeString(label), index)
}