22 #ifndef PSP_DEF_DISPLAY_CLIENT_H 23 #define PSP_DEF_DISPLAY_CLIENT_H 32 bool isVisible()
const {
return _visible; }
33 void setVisible(
bool v) { _visible = v; setDirty(); }
34 Buffer &buffer() {
return _buffer; }
35 Palette &palette() {
return _palette; }
37 bool allocate(
bool bufferInVram =
false,
bool paletteInVram =
false);
41 void render() { _renderer.render(); }
42 uint32 getWidth()
const {
return _buffer.getSourceWidth(); }
43 uint32 getHeight()
const {
return _buffer.getSourceHeight(); }
44 void setPartialPalette(
const byte *colors, uint start, uint num) { setDirty();
return _palette.setPartial(colors, start, num); }
45 void getPartialPalette(byte *colors, uint start, uint num)
const {
46 return _palette.getPartial(colors, start, num);
48 void copyFromRect(
const byte *buf,
int pitch,
int destX,
int destY,
int recWidth,
int recHeight);
49 void copyToArray(byte *dst,
int pitch);
50 void setDirty() { _dirty =
true; }
51 void setClean() { _dirty =
false; }
52 bool isDirty()
const {
return _dirty; }
69 void setBytesPerPixel(uint32 size);
70 void setSize(uint32 width, uint32 height);
71 void copyToArray(
void *buf,
int pitch);
72 void copyFromRect(
const void *buf,
int pitch,
int x,
int y,
int w,
int h);
80 Screen() : _shakeXOffset(0), _shakeYOffset(0) {
81 memset(&_pixelFormat, 0,
sizeof(_pixelFormat));
82 memset(&_frameBuffer, 0,
sizeof(_frameBuffer));
87 void setShakePos(
int shakeXOffset,
int shakeYOffset);
91 void unlock() { setDirty(); }
92 void setSize(uint32 width, uint32 height);
Definition: atari-screen.h:60
Definition: display_client.h:172
Definition: default_display_client.h:65
Definition: display_client.h:113
Definition: display_client.h:40
Definition: default_display_client.h:28
Definition: atari-screen.h:44