diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-11 19:24:48 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-11 19:24:48 (GMT) |
| commit | 08b4e5553aa10df74c4fdb0ba519fb700fa8100b (patch) | |
| tree | 68cda233dcd82978c377978bb19b1fd61bbe0c70 /src/graphics/Graphics.cpp | |
| parent | ecbb1e910352aec1cda4e2d4c36cf3599bc43963 (diff) | |
| download | powder-08b4e5553aa10df74c4fdb0ba519fb700fa8100b.zip powder-08b4e5553aa10df74c4fdb0ba519fb700fa8100b.tar.gz | |
Implement some missing lua functions, PNG format creation (requires zlib)
Diffstat (limited to 'src/graphics/Graphics.cpp')
| -rw-r--r-- | src/graphics/Graphics.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/graphics/Graphics.cpp b/src/graphics/Graphics.cpp index eb92435..e7cce03 100644 --- a/src/graphics/Graphics.cpp +++ b/src/graphics/Graphics.cpp @@ -909,3 +909,12 @@ void Graphics::draw_image(VideoBuffer * vidBuf, int x, int y, int a) draw_image(vidBuf->Buffer, x, y, vidBuf->Width, vidBuf->Height, a); } +VideoBuffer Graphics::DumpFrame() +{ +#ifdef OGLI +#else + VideoBuffer newBuffer(XRES+BARSIZE, YRES+MENUSIZE); + std::copy(vid, vid+((XRES+BARSIZE)*(YRES+MENUSIZE)), newBuffer.Buffer); + return newBuffer; +#endif +}
\ No newline at end of file |
