nngn
Loading...
Searching...
No Matches
render.cpp File Reference
#include <algorithm>
#include <cstring>
#include <span>
#include "entity.h"
#include "collision/collision.h"
#include "font/font.h"
#include "font/text.h"
#include "font/textbox.h"
#include "graphics/texture.h"
#include "timing/profile.h"
#include "utils/literals.h"
#include "utils/log.h"
#include "utils/ranges.h"
#include "gen.h"
#include "grid.h"
#include "light.h"
#include "map.h"
#include "render.h"
Include dependency graph for render.cpp:

Namespaces

namespace  anonymous_namespace{render.cpp}
 
namespace  nngn
 

Functions

bool anonymous_namespace{render.cpp}::set_max_sprites (std::size_t n, std::vector< nngn::SpriteRenderer > *v, nngn::Graphics *g, u32 vbo, u32 ebo, u32 debug_vbo, u32 debug_ebo)
 
template<std::size_t per_obj>
void anonymous_namespace{render.cpp}::update_quad_indices (void *, void *p, u64 i, u64 n)
 
template<std::size_t per_obj>
void anonymous_namespace{render.cpp}::update_quad_indices_base (const std::tuple< u64 > *bi, u32 *p, u64 i, u64 n)
 
template void anonymous_namespace{render.cpp}::update_quad_indices_base< 36 > (const std::tuple< u64 > *, u32 *, u64, u64)
 
template<auto gen, typename VT , typename T >
bool anonymous_namespace{render.cpp}::write_to_buffer (nngn::Graphics *g, u32 b, u64 off, u64 n, u64 size, T *data)
 
template<auto vgen, auto egen, typename T >
bool anonymous_namespace{render.cpp}::update_span (nngn::Graphics *g, std::span< T > s, u32 vbo, u32 ebo, std::size_t n_verts, std::size_t n_indcs)
 
template<auto vgen, auto egen, typename T , typename ... Args>
bool anonymous_namespace{render.cpp}::update_span_with_state (nngn::Graphics *g, u32 vbo, u32 ebo, std::size_t n_verts, std::size_t n_indcs, std::span< T > s, Args &&...args)
 
template<auto vgen, auto egen, typename T >
bool anonymous_namespace{render.cpp}::update_with_state (nngn::Graphics *g, u32 vbo, u32 ebo, u64 voff, u64 eoff, u64 vn, u64 vsize, u64 en, u64 esize, T *data)