22 #ifndef QDENGINE_SYSTEM_GRAPHICS_GR_TILE_SPRITE_H 23 #define QDENGINE_SYSTEM_GRAPHICS_GR_TILE_SPRITE_H 27 const int GR_TILE_SPRITE_SIZE_SHIFT = 4;
28 const int GR_TILE_SPRITE_SIZE_X = 1 << GR_TILE_SPRITE_SIZE_SHIFT;
29 const int GR_TILE_SPRITE_SIZE_Y = 1 << GR_TILE_SPRITE_SIZE_SHIFT;
31 const int GR_TILE_SPRITE_SIZE = GR_TILE_SPRITE_SIZE_X * GR_TILE_SPRITE_SIZE_Y;
32 const int GR_TILE_SPRITE_SIZE_BYTES = GR_TILE_SPRITE_SIZE * 4;
34 enum grTileCompressionMethod {
50 bool isEmpty()
const {
54 const uint32 *data()
const {
58 static uint32 comprasionTolerance() {
59 return _comprasionTolerance;
61 static void setComprasionTolerance(uint32 value) {
62 _comprasionTolerance = value;
65 static uint32 compress(
const uint32 *in_data, uint32 *out_data, grTileCompressionMethod compress_method);
66 static bool uncompress(
const uint32 *in_data, uint32 in_data_length, uint32 *out_data, grTileCompressionMethod compress_method);
73 static uint32 _comprasionTolerance;
78 #endif // QDENGINE_SYSTEM_GRAPHICS_GR_TILE_SPRITE_H Базовый класс для игровых ресурсов.
Definition: console.h:28
Тайл-спрайт
Definition: gr_tile_sprite.h:44