JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
AppParameters.hpp
Go to the documentation of this file.
1// Copyright 2022 Jan Niklas Hasse <jhasse@bixense.com>
2// For conditions of distribution and use, see copyright notice in LICENSE.txt
5#pragma once
6
7#include "Vec2.hpp"
8
9#include <functional>
10#include <memory>
11#include <optional>
12#include <string>
13
14namespace jngl {
15
16class Work;
17
45
46} // namespace jngl
Contains jngl::Vec2 class.
JNGL's main namespace.
Parameters used to initialize the main window.
std::optional< uint32_t > steamAppId
If set and JNGL_STEAMWORKS has been passed to CMake, JNGL will ensure the app runs through Steam and ...
bool pixelArt
Activates pixel-perfect magnifying of textures (nearest-neighbor interpolation)
std::optional< bool > fullscreen
If set, can be used to control whether to run in fullscreen or windowed mode on supported platforms.
std::function< std::shared_ptr< jngl::Work >()> start
A factory function which creates the first jngl::Work.
std::string displayName
Display name of the application which will be used in the window title for example.
std::optional< jngl::Vec2 > screenSize
Size of the canvas in screen pixels, see jngl::getScreenSize()