Pyrogenesis
13997
|
Go to the source code of this file.
Typedefs | |
typedef i64 | Handle |
`handle' representing a reference to a resource (sound, texture, etc.) More... | |
`handle' representing a reference to a resource (sound, texture, etc.)
0 is the (silently ignored) invalid handle value; < 0 is an error code.
this is 64 bits because we want tags to remain unique. (tags are a counter that disambiguate several subsequent uses of the same resource array slot). 32-bit handles aren't enough because the index field requires at least 12 bits, thus leaving only about 512K possible tag values.