nngn
Loading...
Searching...
No Matches
nngn::Renderer Struct Reference

#include <renderers.h>

Inheritance diagram for nngn::Renderer:
Collaboration diagram for nngn::Renderer:

Public Types

enum  Type : u8 {
  SPRITE = 1 , SCREEN_SPRITE , TRANSLUCENT , CUBE ,
  VOXEL , N_TYPES
}
 
enum  Flag : u8 { UPDATED = 1u << 0 }
 

Public Member Functions

bool updated () const
 
void set_pos (vec3 p)
 

Public Attributes

Entityentity = nullptr
 
vec3 pos = {}
 
float z_off = 0
 
Flags< Flagflags = {}
 

Member Enumeration Documentation

◆ Flag

Enumerator
UPDATED 

◆ Type

Enumerator
SPRITE 
SCREEN_SPRITE 
TRANSLUCENT 
CUBE 
VOXEL 
N_TYPES 

Member Function Documentation

◆ set_pos()

void nngn::Renderer::set_pos ( vec3 p)
inline

◆ updated()

bool nngn::Renderer::updated ( ) const
inline
Here is the call graph for this function:

Member Data Documentation

◆ entity

Entity* nngn::Renderer::entity = nullptr

◆ flags

Flags<Flag> nngn::Renderer::flags = {}

◆ pos

vec3 nngn::Renderer::pos = {}

◆ z_off

float nngn::Renderer::z_off = 0

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