JNGL
Easy to use cross-platform 2D game library
|
Parameters used to initialize the main window. More...
#include <jngl/AppParameters.hpp>
Public Attributes | |
std::function< std::shared_ptr< jngl::Work >()> | start |
A factory function which creates the first jngl::Work. More... | |
std::string | displayName |
Display name of the application which will be used in the window title for example. More... | |
std::optional< jngl::Vec2 > | screenSize |
Size of the canvas in screen pixels, see jngl::getScreenSize() More... | |
std::optional< std::pair< int, int > > | minAspectRatio |
std::optional< std::pair< int, int > > | maxAspectRatio |
std::optional< uint32_t > | steamAppId |
If set and JNGL_STEAMWORKS has been passed to CMake, JNGL will ensure the app runs through Steam and initialize the SteamAPI. More... | |
bool | pixelArt = false |
Activates pixel-perfect magnifying of textures (nearest-neighbor interpolation) More... | |
Parameters used to initialize the main window.
Definition at line 19 of file AppParameters.hpp.
std::function<std::shared_ptr<jngl::Work>()> start |
A factory function which creates the first jngl::Work.
Definition at line 21 of file AppParameters.hpp.
std::string displayName |
Display name of the application which will be used in the window title for example.
Definition at line 24 of file AppParameters.hpp.
std::optional<jngl::Vec2> screenSize |
Size of the canvas in screen pixels, see jngl::getScreenSize()
If not specified JNGL will create a fullscreen Window with the maximum of space available.
Definition at line 29 of file AppParameters.hpp.
std::optional<std::pair<int, int> > minAspectRatio |
Definition at line 31 of file AppParameters.hpp.
std::optional<std::pair<int, int> > maxAspectRatio |
Definition at line 32 of file AppParameters.hpp.
std::optional<uint32_t> steamAppId |
If set and JNGL_STEAMWORKS has been passed to CMake, JNGL will ensure the app runs through Steam and initialize the SteamAPI.
Definition at line 36 of file AppParameters.hpp.
bool pixelArt = false |
Activates pixel-perfect magnifying of textures (nearest-neighbor interpolation)
Definition at line 39 of file AppParameters.hpp.