JNGL
Easy to use cross-platform 2D game library
|
Scale-independent pixels, also called "screen pixels". More...
#include <jngl/ScaleablePixels.hpp>
Public Member Functions | |
ScaleablePixels (double) | |
operator double () const | |
Returns the value. | |
operator Pixels () const | |
Returns the value multiplied by jngl::getScaleFactor() | |
Scale-independent pixels, also called "screen pixels".
jngl::getScreenSize() will return the number of scale-independent pixels in your canvas. This is also the size you can specify in jngl::AppParameters::screenSize.
Definition at line 15 of file ScaleablePixels.hpp.