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
Refactor Rendering of Objects (prepare for CPU rendering)
[ipdf/code.git]
/
src
/
ipdf.h
diff --git
a/src/ipdf.h
b/src/ipdf.h
index
196331d
..
5a4f35c
100644
(file)
--- a/
src/ipdf.h
+++ b/
src/ipdf.h
@@
-17,13
+17,22
@@
namespace IPDF
}
typedef unsigned ObjectID;
}
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
+ {
+ RECT_FILLED = 0,
+ RECT_OUTLINE,
+ CIRCLE_FILLED,
+ NUMBER_OF_OBJECT_TYPES
+ } ObjectType;
enum DocChunkTypes
{
CT_NUMOBJS,
CT_OBJTYPES,
enum DocChunkTypes
{
CT_NUMOBJS,
CT_OBJTYPES,
- CT_OBJBOUNDS
+ CT_OBJBOUNDS
,
};
struct Rect
};
struct Rect
UCC
git Repository :: git.ucc.asn.au