28 [[deprecated(
"Use jngl::App::instance().setDisplayName instead")]]
explicit App(
32 App& operator=(
const App&) =
delete;
34 App& operator=(
App&&) =
delete;
55 void updateProjectionMatrix()
const;
There can only be one instance of this class which will be created before the window is shown.
void mainLoop()
Starts the main loop, which calls jngl::Work::step and jngl::Work::draw.
std::string getDisplayName() const
The display name of the app is used by jngl::writeConfig() for example.
static App & instance()
Access the instance, creates it if it doesn't exist.
void setPixelArt(bool)
Activates pixel-perfect magnifying of textures (nearest-neighbor interpolation)
static bool isPixelArt()
If pixel-perfect magnifying is activated (see setPixelArt)
Linked vertex and fragment shaders.