Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Typedefs
handle.h File Reference

Go to the source code of this file.

Typedefs

typedef i64 Handle
 `handle' representing a reference to a resource (sound, texture, etc.) More...
 

Typedef Documentation

typedef i64 Handle

`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.

Definition at line 41 of file handle.h.