JNGL
screen.hpp
Go to the documentation of this file.
1 // Copyright 2012-2020 Jan Niklas Hasse <[email protected]>
2 // For conditions of distribution and use, see copyright notice in LICENSE.txt
4 #pragma once
5 
6 #include "Vec2.hpp"
7 
8 namespace jngl {
9 
11 double getScaleFactor();
12 
13 void setScaleFactor(double);
14 
16 double getScreenWidth();
17 
19 double getScreenHeight();
20 
23 
24 } // namespace jngl
jngl::getScaleFactor
double getScaleFactor()
Size of one screen pixel in actual pixels.
jngl
JNGL's main namespace.
Definition: App.hpp:9
Vec2.hpp
jngl::getScreenSize
Vec2 getScreenSize()
Returns the size of the useable draw area (excluding letter-boxing) in screen pixels.
jngl::getScreenHeight
double getScreenHeight()
jngl::getScreenSize().y
jngl::Vec2
Two-dimensional vector.
Definition: Vec2.hpp:14
jngl::getScreenWidth
double getScreenWidth()
jngl::getScreenSize().x