Kohi Game Engine
resource Struct Reference

A generic structure for a resource. All resource loaders load data into these. More...

#include <resource_types.h>

Data Fields

u32 loader_id
 The identifier of the loader which handles this resource. More...
 
const char * name
 The name of the resource. More...
 
char * full_path
 The full file path of the resource. More...
 
u64 data_size
 The size of the resource data in bytes. More...
 
void * data
 The resource data. More...
 

Detailed Description

A generic structure for a resource. All resource loaders load data into these.

Field Documentation

◆ data

void* data

The resource data.

◆ data_size

u64 data_size

The size of the resource data in bytes.

◆ full_path

char* full_path

The full file path of the resource.

◆ loader_id

u32 loader_id

The identifier of the loader which handles this resource.

◆ name

const char* name

The name of the resource.


The documentation for this struct was generated from the following file: