1
0
Fork 0
Commit graph

7 commits

Author SHA1 Message Date
02912b857b source/Graphics/Image.cpp: in setPixels() do proper conversion. 2020-10-22 16:53:20 +02:00
f7fcc2633c Graphics/Image: dont store PixelFormat, instead define a new enum for number of channels.
The image class has a strict internal representation so we dont need "format".
PixelFormat enum can be passed to functions that modify the pixel data (like setPixels()) so that a proper convertion can be done.
2020-10-22 13:06:19 +02:00
4df668e68f
Minor formating fixes. 2019-12-29 22:26:05 +01:00
e10daeaaa6
Move everything from global namespace to "sp" namespace
When writing the X11 (linux) implementation there was a problem with X11 defining a "Display" type and we also have a Display class in the engine.

So to fix that problem and minimize the risk for running into other name conflicts. We move everything from global namespace.
2019-09-30 19:10:17 +02:00
f3a3a6aa4d source/Graphics: do not prefix standard c functions with "std::", also include the right files. 2019-05-31 20:14:47 +02:00
ebd598b2b0 Fixing a bunch of compiler warnings. 2018-05-12 19:31:34 +02:00
edfc5298e1 Initial commit 2016-01-10 09:26:43 +01:00