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

#include <platform.h>

Static Public Member Functions

static bool init (int argc, const char *const *argv)
 
static void setenv (const char *name, const char *value)
 
static bool set_non_blocking (FILE *f)
 
static int loop (int(*loop)(void))
 

Static Public Attributes

static constexpr bool debug = true
 
static constexpr bool m32 = true
 
static constexpr bool m64 = false
 
static constexpr bool emscripten = false
 
static constexpr bool lua_use_alloc = false
 
static constexpr bool has_libpng = true
 
static constexpr bool has_sockets = false
 
static constexpr bool has_vma = false
 
static constexpr int sig_pipe = 0
 
static std::span< const char *constargv = {}
 
static std::filesystem::path src_dir = {}
 

Member Function Documentation

◆ init()

bool nngn::Platform::init ( int argc,
const char *const * argv )
static
Here is the call graph for this function:

◆ loop()

int nngn::Platform::loop ( int(* loop )(void))
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_non_blocking()

bool nngn::Platform::set_non_blocking ( FILE * f)
static
Here is the call graph for this function:

◆ setenv()

void nngn::Platform::setenv ( const char * name,
const char * value )
static
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ argv

std::span< const char *const > nngn::Platform::argv = {}
static

◆ debug

bool nngn::Platform::debug = true
staticconstexpr

◆ emscripten

bool nngn::Platform::emscripten = false
staticconstexpr

◆ has_libpng

bool nngn::Platform::has_libpng = true
staticconstexpr

◆ has_sockets

bool nngn::Platform::has_sockets = false
staticconstexpr

◆ has_vma

bool nngn::Platform::has_vma = false
staticconstexpr

◆ lua_use_alloc

bool nngn::Platform::lua_use_alloc = false
staticconstexpr

◆ m32

bool nngn::Platform::m32 = true
staticconstexpr

◆ m64

bool nngn::Platform::m64 = false
static

◆ sig_pipe

int nngn::Platform::sig_pipe = 0
staticconstexpr

◆ src_dir

std::filesystem::path nngn::Platform::src_dir = {}
static

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