AssetManager with a hashing function, a linked list structure to store the hashes as well as a reference counter to support multiple users sharing the same asset.
20 lines
302 B
C
20 lines
302 B
C
#ifndef CONSTANTS_H
|
|
#define CONSTANTS_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif // !__cplusplus
|
|
|
|
#define INTERNAL static
|
|
|
|
#define MAX_OBJ_COUNT 10000
|
|
#define MAX_ASSET_COUNT 1000
|
|
#define HASH_PRIME_01 1987
|
|
#define HASH_PRIME_02 7919
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif // !__cplusplus
|
|
|
|
#endif // !CONSTANTS_H
|