JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ScaleablePixels Class Reference

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()
 

Detailed Description

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.


The documentation for this class was generated from the following file: