nngn
|
#include <renderers.h>
Public Member Functions | |
void | load (nngn::lua::table_view t) |
Public Member Functions inherited from nngn::Renderer | |
bool | updated () const |
void | set_pos (vec3 p) |
Static Public Member Functions | |
static void | uv_coords (uvec2 uv0, uvec2 uv1, uvec2 scale, std::span< float > s) |
template<typename T , std::size_t N> | |
static std::span< float > | uv_span (std::array< T, N > *a) |
Public Attributes | |
vec2 | size = {} |
std::array< vec2, 2 > | uv = {{{0, 1}, {1, 0}}} |
u32 | tex = 0 |
Public Attributes inherited from nngn::Renderer | |
Entity * | entity = nullptr |
vec3 | pos = {} |
float | z_off = 0 |
Flags< Flag > | flags = {} |
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 } |
void nngn::SpriteRenderer::load | ( | nngn::lua::table_view | t | ) |
|
inlinestatic |
|
static |
vec2 nngn::SpriteRenderer::size = {} |
u32 nngn::SpriteRenderer::tex = 0 |
std::array<vec2, 2> nngn::SpriteRenderer::uv = {{{0, 1}, {1, 0}}} |