git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Render object range on the CPU
[ipdf/code.git]
/
src
/
screen.h
diff --git
a/src/screen.h
b/src/screen.h
index
f2a98c2
..
9666c32
100644
(file)
--- a/
src/screen.h
+++ b/
src/screen.h
@@
-59,7
+59,9
@@
namespace IPDF
void ScreenShot(const char * filename) const;
void RenderBMP(const char * filename) const;
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(); }
// Returns the CPU time (in seconds) it took to render the last completed frame.
double GetLastFrameTimeCPU() const { return m_last_frame_time / SDL_GetPerformanceFrequency(); }
@@
-83,6
+85,7
@@
namespace IPDF
SDL_Window *m_window;
SDL_GLContext m_gl_context;
ShaderProgram m_texture_prog;
SDL_Window *m_window;
SDL_GLContext m_gl_context;
ShaderProgram m_texture_prog;
+ ShaderProgram m_font_prog;
GLint m_colour_uniform_location;
GraphicsBuffer m_viewport_ubo;
stbtt_bakedchar m_debug_font_rects[96];
GLint m_colour_uniform_location;
GraphicsBuffer m_viewport_ubo;
stbtt_bakedchar m_debug_font_rects[96];
UCC
git Repository :: git.ucc.asn.au