22#ifndef DS_BACKGROUND_H
23#define DS_BACKGROUND_H
25#include "common/rect.h"
37 static size_t getRequiredVRAM(uint16 width, uint16 height,
bool isRGB,
bool swScale);
44 inline bool isVisible()
const {
return _visible; }
46 void setScalef(int32 sx, int32 sy);
47 inline void setScale(
int sx,
int sy) { setScalef(sx << 8, sy << 8); }
48 void setScrollf(int32 x, int32 y);
49 inline void setScroll(
int x,
int y) { setScrollf(x << 8, y << 8); }
56 bool _visible, _swScale;
58 int32 _scrollX, _scrollY, _scaleX, _scaleY;
64 TiledBackground(
const unsigned int *tiles,
size_t tilesLen,
const unsigned short *map,
size_t mapLen,
int layer,
bool isSub,
int mapBase,
int tileBase);
71 inline bool isVisible()
const {
return _visible; }
74 const unsigned int *_tiles;
75 const unsigned short *_map;
76 size_t _tilesLen, _mapLen;
Definition: background.h:33
Definition: background.h:62
Definition: formatinfo.h:28