OpenTTD Source 20241224-master-gf74b0cf984
|
Data structure describing a sprite. More...
#include <spritecache.h>
Data Fields | |
uint16_t | height |
Height of the sprite. | |
uint16_t | width |
Width of the sprite. | |
int16_t | x_offs |
Number of pixels to shift the sprite to the right. | |
int16_t | y_offs |
Number of pixels to shift the sprite downwards. | |
uint8_t | data [] |
Sprite data. | |
Data structure describing a sprite.
Definition at line 17 of file spritecache.h.
uint8_t Sprite::data[] |
Sprite data.
Definition at line 22 of file spritecache.h.
Referenced by OpenGLBackend::DrawMouseCursor(), Blitter_32bppSimple::Encode(), Blitter_8bppOptimized::Encode(), Blitter_8bppSimple::Encode(), OpenGLBackend::Encode(), GfxBlitter(), OpenGLBackend::InternalClearCursorCache(), and ReadSprite().
uint16_t Sprite::height |
Height of the sprite.
Definition at line 18 of file spritecache.h.
Referenced by AddCombinedSprite(), AddSortableSpriteToDraw(), Blitter_32bppSimple::Encode(), Blitter_8bppOptimized::Encode(), Blitter_8bppSimple::Encode(), Blitter_Null::Encode(), OpenGLBackend::Encode(), VehicleSpriteSeq::GetBounds(), GetSpriteSize(), GfxBlitter(), ReadSprite(), and UpdateCursorSize().
uint16_t Sprite::width |
Width of the sprite.
Definition at line 19 of file spritecache.h.
Referenced by AddCombinedSprite(), AddSortableSpriteToDraw(), DrawLayoutLine(), Blitter_32bppSimple::Encode(), Blitter_8bppOptimized::Encode(), Blitter_8bppSimple::Encode(), Blitter_Null::Encode(), OpenGLBackend::Encode(), VehicleSpriteSeq::GetBounds(), SpriteFontCache::GetGlyphWidth(), GetSpriteSize(), GfxBlitter(), ReadSprite(), and UpdateCursorSize().
int16_t Sprite::x_offs |
Number of pixels to shift the sprite to the right.
Definition at line 20 of file spritecache.h.
Referenced by AddCombinedSprite(), AddSortableSpriteToDraw(), DrawCommonTileSeqInGUI(), DrawLayoutLine(), OpenGLBackend::DrawMouseCursor(), Blitter_32bppSimple::Encode(), Blitter_8bppOptimized::Encode(), Blitter_8bppSimple::Encode(), Blitter_Null::Encode(), OpenGLBackend::Encode(), VehicleSpriteSeq::GetBounds(), GetSpriteSize(), GfxBlitter(), SpriteAlignerWindow::OnClick(), ReadSprite(), and UpdateCursorSize().
int16_t Sprite::y_offs |
Number of pixels to shift the sprite downwards.
Definition at line 21 of file spritecache.h.
Referenced by AddCombinedSprite(), AddSortableSpriteToDraw(), DrawCommonTileSeqInGUI(), OpenGLBackend::DrawMouseCursor(), Blitter_32bppSimple::Encode(), Blitter_8bppOptimized::Encode(), Blitter_8bppSimple::Encode(), Blitter_Null::Encode(), OpenGLBackend::Encode(), VehicleSpriteSeq::GetBounds(), GetSpriteSize(), GfxBlitter(), ReadSprite(), and UpdateCursorSize().