JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
screen.hpp
Go to the documentation of this file.
1// Copyright 2012-2023 Jan Niklas Hasse <jhasse@bixense.com>
2// For conditions of distribution and use, see copyright notice in LICENSE.txt
4#pragma once
5
6#include "Vec2.hpp"
7
8namespace jngl {
9
12
16void setScaleFactor(double);
17
20
23
26
27} // namespace jngl
Contains jngl::Vec2 class.
Two-dimensional vector.
Definition Vec2.hpp:36
JNGL's main namespace.
void setScaleFactor(double)
Overwrite the size of one screen pixel.
double getScaleFactor()
Size of one screen pixel in actual pixels.
double getScreenHeight()
jngl::getScreenSize().y
double getScreenWidth()
jngl::getScreenSize().x
Vec2 getScreenSize()
Returns the size of the useable draw area (excluding letter-boxing) in screen pixels.