JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
jngl
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
7
namespace
jngl
{
8
9
class
Pixels;
10
15
class
ScaleablePixels
{
16
public
:
17
explicit
ScaleablePixels
(
double
);
18
20
explicit
operator
double()
const
;
21
23
explicit
operator
Pixels
()
const
;
24
25
private
:
26
double
value;
27
};
28
29
}
// namespace jngl
30
31
jngl::ScaleablePixels
operator
""
_sp(
long
double
);
32
jngl::ScaleablePixels
operator
""
_sp(
unsigned
long
long
);
jngl::Pixels
Scale-dependent pixels, corresponds to actual pixels on the screen.
Definition
Pixels.hpp:14
jngl::ScaleablePixels
Scale-independent pixels, also called "screen pixels".
Definition
ScaleablePixels.hpp:15
jngl
JNGL's main namespace.
Definition
Achievement.hpp:10