nngn
|
Graphics back ends.
More...Directories | |
opengl | |
terminal | |
vulkan | |
Files | |
glfw.cpp | |
glfw.h | |
graphics.cpp | |
graphics.h | |
lua_graphics.cpp | |
lua_texture.cpp | |
pseudo.cpp | |
pseudo.h | |
shaders.cpp | |
stats.h | |
texture.cpp | |
texture.h | |
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: