Kohi Game Engine
k_system Struct Reference

Represents a registered system. Function pointers for init, shutdown and (optionally) update are held here, as well as state for the system. More...

#include <systems_manager.h>

Data Fields

u64 state_size
 The size of the state for the system. More...
 
void * state
 The state for the system. More...
 
PFN_system_initialize initialize
 A function pointer for the initialization routine. Required. More...
 
PFN_system_shutdown shutdown
 A function pointer for the shutdown routine. Required. More...
 
PFN_system_update update
 A function pointer for the system's update routine, called every frame. Optional. More...
 

Detailed Description

Represents a registered system. Function pointers for init, shutdown and (optionally) update are held here, as well as state for the system.

Field Documentation

◆ initialize

A function pointer for the initialization routine. Required.

◆ shutdown

A function pointer for the shutdown routine. Required.

◆ state

void* state

The state for the system.

◆ state_size

u64 state_size

The size of the state for the system.

◆ update

A function pointer for the system's update routine, called every frame. Optional.


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