Subastra
Loading...
Searching...
No Matches
Data Structures | Macros | Enumerations | Functions
require.h File Reference
#include "../engine/entity.h"
#include "../engine/input.h"
#include "../engine/world.h"
#include "../names.h"
#include "../rendering/context.h"
Include dependency graph for require.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  system_req_t
 

Macros

#define SYSTEM_REQ_PTR_REQUIRED   ((void *)1)
 Sentinel value. Marks the system resourc as required. The scheduler must guarantee exclusive access.
 
#define SYSTEM_REQ_PTR_UNUSED   ((void *)0)
 Sentinel value. Marks the system resource as unused. The scheduler must provide a NULL pointer.
 
#define SYSTEM_REQ_NO_DEPS   0, 0
 

Enumerations

enum  system_phase_t {
  SYSTEM_PHASE_PRE_UPDATE , SYSTEM_PHASE_UPDATE , SYSTEM_PHASE_FIXED_UPDATE , SYSTEM_PHASE_POST_UPDATE ,
  SYSTEM_PHASE_PRE_RENDER , SYSTEM_PHASE_RENDER , SYSTEM_PHASE_POST_RENDER , SYSTEM_PHASE_count
}
 

Functions

static const char * system_phase_to_str (system_phase_t phase)
 
static system_req_t system_req_new ()
 
static void system_req_fill_in (system_req_t *target, const system_req_t parent)
 
static void system_req_entity_kinds_const (system_req_t *req, entity_kind_mask_t entity_kind_mask)
 
static void system_req_entity_kinds_mut (system_req_t *req, entity_kind_mask_t entity_kind_mask)
 
static entity_iter_t system_req_entity_iter (system_req_t *req)
 

Macro Definition Documentation

◆ SYSTEM_REQ_NO_DEPS

#define SYSTEM_REQ_NO_DEPS   0, 0

◆ SYSTEM_REQ_PTR_REQUIRED

#define SYSTEM_REQ_PTR_REQUIRED   ((void *)1)

Sentinel value. Marks the system resourc as required. The scheduler must guarantee exclusive access.

◆ SYSTEM_REQ_PTR_UNUSED

#define SYSTEM_REQ_PTR_UNUSED   ((void *)0)

Sentinel value. Marks the system resource as unused. The scheduler must provide a NULL pointer.

Enumeration Type Documentation

◆ system_phase_t

Enumerator
SYSTEM_PHASE_PRE_UPDATE 
SYSTEM_PHASE_UPDATE 
SYSTEM_PHASE_FIXED_UPDATE 
SYSTEM_PHASE_POST_UPDATE 
SYSTEM_PHASE_PRE_RENDER 
SYSTEM_PHASE_RENDER 
SYSTEM_PHASE_POST_RENDER 
SYSTEM_PHASE_count 

Function Documentation

◆ system_phase_to_str()

static const char * system_phase_to_str ( system_phase_t  phase)
static

◆ system_req_entity_iter()

static entity_iter_t system_req_entity_iter ( system_req_t req)
static

◆ system_req_entity_kinds_const()

static void system_req_entity_kinds_const ( system_req_t req,
entity_kind_mask_t  entity_kind_mask 
)
static

◆ system_req_entity_kinds_mut()

static void system_req_entity_kinds_mut ( system_req_t req,
entity_kind_mask_t  entity_kind_mask 
)
static

◆ system_req_fill_in()

static void system_req_fill_in ( system_req_t target,
const system_req_t  parent 
)
static

◆ system_req_new()

static system_req_t system_req_new ( )
static