nngn
Loading...
Searching...
No Matches
texture.cpp File Reference
#include <algorithm>
#include <cassert>
#include <cstring>
#include <fstream>
#include <vector>
#include "os/platform.h"
#include <png.h>
#include "math/math.h"
#include "utils/log.h"
#include "graphics.h"
#include "texture.h"
Include dependency graph for texture.cpp:

Namespaces

namespace  anonymous_namespace{texture.cpp}
 
namespace  nngn
 

Functions

u32 anonymous_namespace{texture.cpp}::find (const std::vector< nngn::Hash > &v, std::string_view name)
 
u32 anonymous_namespace{texture.cpp}::find_empty (const std::vector< u32 > &v)
 
bool anonymous_namespace{texture.cpp}::check_max (std::size_t n, u32 i)
 
bool anonymous_namespace{texture.cpp}::write_png (const char *filename, std::span< const std::byte > s)
 

Variables

constexpr auto anonymous_namespace{texture.cpp}::SIZE = nngn::Graphics::TEXTURE_SIZE
 
constexpr auto anonymous_namespace{texture.cpp}::EXTENT = nngn::Graphics::TEXTURE_EXTENT