|
CorsixTH engine (the C++ part)
Open source implementation of Theme Hospital
|
#include <th_gfx_sdl.h>
Public Member Functions | |
| full_colour_renderer (int iWidth, int iHeight) | |
| Initialize the renderer for a specific render. | |
| virtual | ~full_colour_renderer ()=default |
| void | decode_image (const uint8_t *pImg, const ::palette *pPalette, uint32_t iSpriteFlags) |
| Decode a 32bpp image, and push it to the storage backend. | |
Utility class for decoding 32bpp images.
Initialize the renderer for a specific render.
| iWidth | Pixel width of the resulting image |
| iHeight | Pixel height of the resulting image |
|
virtualdefault |
| void full_colour_renderer::decode_image | ( | const uint8_t * | pImg, |
| const ::palette * | pPalette, | ||
| uint32_t | iSpriteFlags | ||
| ) |
Decode a 32bpp image, and push it to the storage backend.
| pImg | Encoded 32bpp image. |
| pPalette | Palette of a legacy sprite. |
| iSpriteFlags | Flags how to render the sprite. |