|
@@ -12,14 +12,16 @@
|
|
|
#ifndef SPRITELOADER_HPP
|
|
|
#define SPRITELOADER_HPP
|
|
|
|
|
|
#include "../core/alloc_type.hpp"
|
|
|
#include "../gfx_type.h"
|
|
|
|
|
|
/** Interface for the loader of our sprites. */
|
|
|
class SpriteLoader {
|
|
|
public:
|
|
|
/** Definition of a common pixel in OpenTTD's realm. */
|
|
|
struct CommonPixel {
|
|
|
uint8 r; ///< Red-channel
|
|
|
uint8 g; ///< Green-channel
|
|
|
uint8 b; ///< Blue-channel
|
|
|
uint8 a; ///< Alpha-channel
|
|
|
uint8 m; ///< Remap-channel
|