Fix RenderPixels, CPU rendering "works"
[ipdf/code.git] / src / ipdf.h
index 196331d..211f2c3 100644 (file)
@@ -17,13 +17,22 @@ namespace IPDF
        }
 
        typedef unsigned ObjectID;
-       typedef enum {RECT_FILLED, RECT_OUTLINE, CIRCLE_FILLED} ObjectType;
+       /** Type of object
+     * NOTE: Extra entry in the enum so we can use this as an array index
+        */
+       typedef enum 
+       {
+               CIRCLE_FILLED = 0, 
+               RECT_FILLED,
+               RECT_OUTLINE,
+               NUMBER_OF_OBJECT_TYPES
+       } ObjectType;
 
        enum DocChunkTypes
        {
                CT_NUMOBJS,
                CT_OBJTYPES,
-               CT_OBJBOUNDS
+               CT_OBJBOUNDS,
        };
 
        struct Rect

UCC git Repository :: git.ucc.asn.au