X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fview.h;h=e4254de0e52eb5f5ec5cba5b3ca6dfb0a09b5f54;hp=5e30ef7f97aa8e7ba12ec64f24fff7b1fcf50183;hb=da646c739f87bf28c5a7af2bc180b93b3444321b;hpb=85e08223a33439f9b4911129b48ee45ff65869eb diff --git a/src/view.h b/src/view.h index 5e30ef7..e4254de 100644 --- a/src/view.h +++ b/src/view.h @@ -48,10 +48,10 @@ namespace IPDF { float x0, y0; float x1, y1; - }; + } __attribute__((packed)); 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);