Files
punchie-engine/include/reusable_ids.h
T
abdelrahman dfee36ffe9 Enabled SDL_image's support for PNG and TIFF files and improved the
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.
2022-09-24 04:17:16 +01:00

23 lines
337 B
C

#ifndef REUSABLE_IDS_H
#define REUSABLE_IDS_H
#include <stddef.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif // !__cplusplus
#define INVALID_ID -1
typedef int32_t ObjectID;
typedef int32_t AssetID;
int32_t reuse_id(int32_t *ids, size_t count);
#ifdef __cplusplus
}
#endif // !__cplusplus
#endif // !REUSABLE_IDS_H