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

#include <renderers.h>

Inheritance diagram for nngn::CubeRenderer:
Collaboration diagram for nngn::CubeRenderer:

Public Member Functions

void load (const nngn::lua::table &t)
 
- Public Member Functions inherited from nngn::Renderer
bool updated () const
 
void set_pos (vec3 p)
 

Public Attributes

vec3 color = {1, 1, 1}
 
float size = 0
 
- Public Attributes inherited from nngn::Renderer
Entityentity = nullptr
 
vec3 pos = {}
 
float z_off = 0
 
Flags< Flagflags = {}
 

Additional Inherited Members

- Public Types inherited from nngn::Renderer
enum  Type : u8 {
  SPRITE = 1 , SCREEN_SPRITE , TRANSLUCENT , CUBE ,
  VOXEL , N_TYPES
}
 
enum  Flag : u8 { UPDATED = 1u << 0 }
 

Member Function Documentation

◆ load()

void nngn::CubeRenderer::load ( const nngn::lua::table & t)

Member Data Documentation

◆ color

vec3 nngn::CubeRenderer::color = {1, 1, 1}

◆ size

float nngn::CubeRenderer::size = 0

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