Paweł Kołodziejski
9ee7215d4f
GRAPHICS: Fixed logic typo "_format.aLoss = 8" -> "_format.aLoss == 8"
2020-11-12 12:07:22 +01:00
Vincent Pelletier
02294ee717
GRAPHICS: Use memcpy when copying to same-format-no-alpha destination
...
Accelerates when source format is compatible with destination except for
alpha channel bit-loss. Ex:
from: 32bits A << 24 | R << 16 | G << 8 | B
to: 32bits R << 16 | G << 8 | B
2020-11-12 08:16:52 +01:00
Vincent Pelletier
241114cbd0
GRAPHICS: Make PixelBuffer::clear take pixel format into account
2017-05-13 14:00:50 +00:00
Vincent Pelletier
a1bc91c906
GRAPHICS: Preserve alpha component in PixelBuffer::copyBuffer
2017-05-13 14:00:50 +00:00
Vincent Pelletier
f4554c1541
GRAPHICS: Optimise PixelBuffer::getValueAt and PixelBuffer::setPixelAt.
...
Avoid doing a lot of operations just to move 2 or 4 bytes around.
Inline these methods as they are hot-spots and do very little: call
overhead becomes significant.
2016-07-19 11:08:35 +02:00
Andrea Corna
a69f29dd3a
GRAPHICS: Fix for a Valgrind warning about an uninitialized value
2012-04-18 09:20:23 +02:00
Einar Johan T. Sømåen
574e09f0ef
JANITORIAL: Add missing newline at end of file
2012-01-29 14:20:01 +01:00
Giulio Camuffo
27715543e8
GRAPHICS: Relicense pixelbuffer.(h|cpp) to GPLv2.
2012-01-25 11:40:01 +01:00
Giulio Camuffo
b42bbe5259
TinyGL: Support for different color modes, part 2.
2012-01-24 21:36:47 +01:00
Giulio Camuffo
158a19df31
TinyGL: Support for different color modes, first part.
2012-01-24 21:36:46 +01:00