Kohi Game Engine
loader_utils.h File Reference

This file contains resource loader utility functions. More...

#include "core/kmemory.h"
#include "defines.h"
#include "resources/resource_types.h"

Go to the source code of this file.

Functions

KAPI b8 resource_unload (struct resource_loader *self, resource *resource, memory_tag tag)
 Unloads a resource using the appropriate registered loader. More...
 

Detailed Description

This file contains resource loader utility functions.

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

Function Documentation

◆ resource_unload()

KAPI b8 resource_unload ( struct resource_loader self,
resource resource,
memory_tag  tag 
)

Unloads a resource using the appropriate registered loader.

Parameters
selfA pointer to the resource loader to be used.
resourceA pointer to the resource to be unloaded.
tagThe memory tag that was used by the resource loader, and should be used to unload the resource.
Returns
True on success; otherwise false.