nngn
|
Graphics back ends.
More...Directories | |
directory | opengl |
directory | terminal |
directory | vulkan |
Files | |
file | glfw.cpp |
file | glfw.h [code] |
file | graphics.cpp |
file | graphics.h [code] |
file | lua_graphics.cpp |
file | lua_texture.cpp |
file | pseudo.cpp |
file | pseudo.h [code] |
file | shaders.cpp |
file | stats.h [code] |
file | texture.cpp |
file | texture.h [code] |
Graphics back ends.
Several graphics back ends are supported, substitutable at runtime:
The following areas of the screenshots page show some of the graphics capabilities:
These are the low-level rendering operations. The higher-level layer is src/render.
The graphics back end is exposed to Lua via the nngn.graphics
variable. It is only used for low-level control of the machine's graphics capabilities, however. See the documentation of src/render for how to perform higher-level rendering from Lua.
A back end is chosen on default initialization (see src). For other cases, a specific back end can be initialized with:
A back end can also be partially initialized to query its capabilities (see demos/graphics/list.lua):
Common operations are:
Post-processing configuration is also done via the graphics back end: