common.h

changeset 7
098e3c4949c6
parent 0
c51cce84a9ac
child 13
3955ff2a7d72
equal deleted inserted replaced
6:4e52fbf3eede 7:098e3c4949c6
26 using std::vector; 26 using std::vector;
27 27
28 class LDForgeWindow; 28 class LDForgeWindow;
29 class LDObject; 29 class LDObject;
30 class bbox; 30 class bbox;
31 class OpenFile;
31 32
32 // ============================================================================= 33 // =============================================================================
33 // vertex (v) 34 // vertex (v)
34 // 35 //
35 // Vertex class. Not to be confused with LDVertex, which is a vertex used in an 36 // Vertex class. Not to be confused with LDVertex, which is a vertex used in an
61 62
62 vertex project (vertex& vSource, ulong ulLength); 63 vertex project (vertex& vSource, ulong ulLength);
63 }; 64 };
64 65
65 // ============================================================================= 66 // =============================================================================
66 typedef struct {
67 str filename;
68 vector<LDObject*> objects;
69 } OpenFile;
70
71 // Plural expression 67 // Plural expression
72 #define PLURAL(n) ((n != 1) ? "s" : "") 68 #define PLURAL(n) ((n != 1) ? "s" : "")
73 69
74 // Shortcut for formatting 70 // Shortcut for formatting
75 #define PERFORM_FORMAT(in, out) \ 71 #define PERFORM_FORMAT(in, out) \

mercurial