X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fscreen.h;h=44dd2c723be7ea089fdc962c4c7bd8a826bc2571;hp=f5ae7533a14e21272140b32470d8b04e58fd324d;hb=b1786b24148036a4d9402cc12ea97466072e988d;hpb=4e0ddbcec6e182430a31e0f1c661f2c93c9e0308 diff --git a/src/screen.h b/src/screen.h index f5ae753..44dd2c7 100644 --- a/src/screen.h +++ b/src/screen.h @@ -20,6 +20,9 @@ namespace IPDF // Returns 'false' if the program should quit. bool PumpEvents(); + // Clears the screen to a given colour. + void Clear(float r=1.0, float g=1.0, float b=1.0, float a=1.0); + // Finishes rendering a frame, and presents it on the screen. void Present(); @@ -45,6 +48,7 @@ namespace IPDF void SetMouseCursor(MouseCursors cursor); void ScreenShot(const char * filename) const; + void RenderBMP(const char * filename) const; private: void ResizeViewport(int width, int height);