JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
ScaleablePixels.hpp
Go to the documentation of this file.
1// Copyright 2021-2022 Jan Niklas Hasse <jhasse@bixense.com>
2// For conditions of distribution and use, see copyright notice in LICENSE.txt
5#pragma once
6
7namespace jngl {
8
9class Pixels;
10
16public:
17 explicit ScaleablePixels(double);
18
20 explicit operator double() const;
21
23 explicit operator Pixels() const;
24
25private:
26 double value;
27};
28
29} // namespace jngl
30
31jngl::ScaleablePixels operator"" _sp(long double);
32jngl::ScaleablePixels operator"" _sp(unsigned long long);
Scale-dependent pixels, corresponds to actual pixels on the screen.
Definition: Pixels.hpp:14
Scale-independent pixels, also called "screen pixels".
JNGL's main namespace.
Definition: Achievement.hpp:10