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 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 *const > argv = {}
 
static std::filesystem::path src_dir = {}
 

Member Function Documentation

◆ init() [1/2]

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

◆ init() [2/2]

static bool nngn::Platform::init ( int  argc,
const char *const *  argv 
)
static

◆ loop() [1/2]

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

◆ loop() [2/2]

static int nngn::Platform::loop ( int(*)(void)  loop)
static

◆ set_non_blocking() [1/2]

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

◆ set_non_blocking() [2/2]

static bool nngn::Platform::set_non_blocking ( FILE *  f)
static

◆ setenv() [1/2]

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:

◆ setenv() [2/2]

static void nngn::Platform::setenv ( const char *  name,
const char *  value 
)
static

Member Data Documentation

◆ argv

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

◆ debug

static constexpr bool nngn::Platform::debug = true
staticconstexpr

◆ emscripten

static constexpr bool nngn::Platform::emscripten = false
staticconstexpr

◆ has_libpng

static constexpr bool nngn::Platform::has_libpng = true
staticconstexpr

◆ has_sockets

static constexpr bool nngn::Platform::has_sockets = false
staticconstexpr

◆ has_vma

static constexpr bool nngn::Platform::has_vma = false
staticconstexpr

◆ lua_use_alloc

static constexpr bool nngn::Platform::lua_use_alloc = false
staticconstexpr

◆ m32

static constexpr bool nngn::Platform::m32 = true
staticconstexpr

◆ m64

static constexpr bool nngn::Platform::m64 = false
static

◆ sig_pipe

static constexpr int nngn::Platform::sig_pipe = 0
staticconstexpr

◆ src_dir

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

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