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
Clipping for RECT types. Breaks a little.
[ipdf/code.git]
/
src
/
view.h
diff --git
a/src/view.h
b/src/view.h
index
ca4c808
..
e4254de
100644
(file)
--- a/
src/view.h
+++ b/
src/view.h
@@
-48,10
+48,12
@@
namespace IPDF
{
float x0, y0;
float x1, y1;
{
float x0, y0;
float x1, y1;
- };
+ }
__attribute__((packed))
;
void PrepareRender(); // call when m_render_dirty is true
void PrepareRender(); // call when m_render_dirty is true
- void UpdateObjBoundsVBO(); // call when m_buffer_dirty is true
+ void UpdateObjBoundsVBO(unsigned first_obj, unsigned last_obj); // call when m_buffer_dirty is true
+
+ void RenderRange(int width, int height, unsigned first_obj, unsigned last_obj);
bool m_use_gpu_transform;
bool m_use_gpu_rendering;
bool m_use_gpu_transform;
bool m_use_gpu_rendering;
@@
-77,6
+79,7
@@
namespace IPDF
#ifndef QUADTREE_DISABLED
QuadTreeIndex m_current_quadtree_node; // The highest node we will traverse.
int m_quadtree_max_depth; // The maximum quadtree depth.
#ifndef QUADTREE_DISABLED
QuadTreeIndex m_current_quadtree_node; // The highest node we will traverse.
int m_quadtree_max_depth; // The maximum quadtree depth.
+ void RenderQuadtreeNode(int width, int height, QuadTreeIndex node, int remaining_depth);
#endif
};
#endif
};
UCC
git Repository :: git.ucc.asn.au