|
OpenTTD Source
14.0-beta3
|
Go to the documentation of this file.
10 #ifndef BLITTER_8BPP_OPTIMIZED_HPP
11 #define BLITTER_8BPP_OPTIMIZED_HPP
28 const char *
GetName()
override {
return "8bpp-optimized"; }
Data stored about a (single) sprite.
BlitterMode
The modes of blitting we can do.
@ ZOOM_LVL_END
End for iteration.
How all blitters should look like.
The base factory, keeping track of all blitters.
ZoomLevel
All zoom levels we know.
void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom) override
Draw an image to the screen, given an amount of params defined above.
8bpp blitter optimised for speed.
std::array< Sprite, ZOOM_LVL_END > SpriteCollection
Type defining a collection of sprites, one for each zoom level.
Factory for the 8bpp blitter optimised for speed.
Base for all 8bpp blitters.
BlitterFactory(const char *name, const char *description, bool usable=true)
Construct the blitter, and register it.
Blitter * CreateInstance() override
Create an instance of this Blitter-class.
Sprite * Encode(const SpriteLoader::SpriteCollection &sprite, AllocatorProc *allocator) override
Convert a sprite from the loader to our own format.
uint32_t offset[ZOOM_LVL_END]
Offsets (from .data) to streams for different zoom levels.
byte data[]
Data, all zoomlevels.
Parameters related to blitting.
const char * GetName() override
Get the name of the blitter, the same as the Factory-instance returns.
Data structure describing a sprite.