X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fscreen.h;h=c76a5549b922908b95a139179bc9e0ebaa2b2386;hp=f2a98c2abff72c37b4d38a7c85f83cff83addb67;hb=cfe7da763b5d8ef4252ddb94558abb080bbd893d;hpb=f8ef964f021d1d6da6ea46bbb1fe8f0250a5be8c diff --git a/src/screen.h b/src/screen.h index f2a98c2..c76a554 100644 --- a/src/screen.h +++ b/src/screen.h @@ -59,7 +59,8 @@ namespace IPDF void ScreenShot(const char * filename) const; void RenderBMP(const char * filename) const; - void RenderPixels(int x, int y, int w, int h, void * pixels) const; + void RenderPixels(int x, int y, int w, int h, uint8_t * pixels) const; + // Returns the CPU time (in seconds) it took to render the last completed frame. double GetLastFrameTimeCPU() const { return m_last_frame_time / SDL_GetPerformanceFrequency(); }