From: David Gow Date: Sun, 6 Jul 2014 05:41:16 +0000 (+0800) Subject: Render part of a document (incorrectly) on the GPU X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=commitdiff_plain;h=47c305b00cc92169d826b0ca5268c92b1d019e28;hp=47c305b00cc92169d826b0ca5268c92b1d019e28 Render part of a document (incorrectly) on the GPU In order to get QuadTrees working, we're going to need to render small "parts" of a document individually. The way this works is that, when calling RenderObjectsOnGPU, we now pass a range of object IDs. The ObjectRenderer will then find (in O(N) time, sadly) the range of indices needed for that object type and then render those. Béziers, and other objects which rely on the ObjectID on the GPU being correct might be broken by this (in some cases), though if so it shouldn't be too hard to fix by passing an offset in as a uniform. ---