22 #ifndef PSP_DEF_DISPLAY_CLIENT_H 23 #define PSP_DEF_DISPLAY_CLIENT_H 25 #include "graphics/blit.h" 26 #include "graphics/dirtyrects.h" 35 bool isVisible()
const {
return _visible; }
36 void setVisible(
bool v) { _visible = v; setDirty(); }
37 Buffer &buffer() {
return _buffer; }
38 Palette &palette() {
return _palette; }
40 bool allocate(
bool bufferInVram =
false,
bool paletteInVram =
false);
44 void render() { _renderer.render(); }
45 uint32 getWidth()
const {
return _buffer.getSourceWidth(); }
46 uint32 getHeight()
const {
return _buffer.getSourceHeight(); }
47 void setPartialPalette(
const byte *colors, uint start, uint num) { setDirty();
return _palette.setPartial(colors, start, num); }
48 void getPartialPalette(byte *colors, uint start, uint num)
const {
49 return _palette.getPartial(colors, start, num);
51 void copyFromRect(
const byte *buf,
int pitch,
int destX,
int destY,
int recWidth,
int recHeight);
52 void copyToArray(byte *dst,
int pitch);
53 void setDirty() { _dirty =
true; }
54 void setClean() { _dirty =
false; }
55 bool isDirty()
const {
return _dirty; }
72 void setBytesPerPixel(uint32 size);
73 void setSize(uint32 width, uint32 height);
74 void copyToArray(
void *buf,
int pitch);
75 void copyFromRect(
const void *buf,
int pitch,
int x,
int y,
int w,
int h);
83 Screen() : _shakeXOffset(0), _shakeYOffset(0), _convert(
false), _blitFunc(
nullptr) {}
84 ~
Screen() { deallocate(); }
89 void setShakePos(
int shakeXOffset,
int shakeYOffset);
94 void copyFromRect(
const byte *buf,
int pitch,
int destX,
int destY,
int recWidth,
int recHeight);
95 void setSize(uint32 width, uint32 height);
100 uint32 _shakeYOffset;
105 Graphics::FastBlitFunc _blitFunc;
Definition: atari-screen.h:58
Definition: display_client.h:174
Definition: dirtyrects.h:43
Definition: default_display_client.h:68
Definition: display_client.h:113
Definition: display_client.h:40
Definition: default_display_client.h:31
Definition: atari-screen.h:42