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

#include <renderers.h>

Inheritance diagram for nngn::VoxelRenderer:
Collaboration diagram for nngn::VoxelRenderer:

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

std::array< vec4, 6 > uv = {}
 
vec3 size = {}
 
u32 tex = 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::VoxelRenderer::load ( const nngn::lua::table & t)
Here is the call graph for this function:

Member Data Documentation

◆ size

vec3 nngn::VoxelRenderer::size = {}

◆ tex

u32 nngn::VoxelRenderer::tex = 0

◆ uv

std::array<vec4, 6> nngn::VoxelRenderer::uv = {}

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