Kohi Game Engine
identifier.h File Reference

Contains a system for creating numeric identifiers. More...

#include "defines.h"

Go to the source code of this file.

Functions

KAPI u32 identifier_aquire_new_id (void *owner)
 Acquires a new identifier for the given owner. More...
 
KAPI void identifier_release_id (u32 id)
 Releases the given identifier, which can then be used again. More...
 

Detailed Description

Contains a system for creating numeric identifiers.

Author
Travis Vroman (travi.nosp@m.s@ko.nosp@m.hieng.nosp@m.ine..nosp@m.com)
Version
1.0
Date
2022-09-22

Function Documentation

◆ identifier_aquire_new_id()

KAPI u32 identifier_aquire_new_id ( void *  owner)

Acquires a new identifier for the given owner.

Parameters
ownerThe owner of the identifier.
Returns
The new identifier.

◆ identifier_release_id()

KAPI void identifier_release_id ( u32  id)

Releases the given identifier, which can then be used again.

Parameters
idThe identifier to be released.