src/GLCompiler.h

changeset 684
8a56b1d4d44d
parent 681
c1cc036c6e1f
child 690
9e9c52ca955e
equal deleted inserted replaced
683:b7460d693f63 684:8a56b1d4d44d
31 PROPERTY (public, LDDocumentPointer, Document, NO_OPS, STOCK_WRITE) 31 PROPERTY (public, LDDocumentPointer, Document, NO_OPS, STOCK_WRITE)
32 32
33 public: 33 public:
34 struct ObjectVBOInfo 34 struct ObjectVBOInfo
35 { 35 {
36 int offset[gNumVBOs]; 36 QVector<GLfloat> data[gNumVBOs];
37 int size[gNumVBOs];
38 }; 37 };
39 38
40 GLCompiler(); 39 GLCompiler();
41 ~GLCompiler(); 40 ~GLCompiler();
42 void compileDocument(); 41 void compileDocument();
43 void uncompileObject (LDObject* obj); 42 void dropObject (LDObject* obj);
44 void initialize(); 43 void initialize();
45 QColor getPolygonColor (LDPolygon& poly, LDObject* topobj) const; 44 QColor getPolygonColor (LDPolygon& poly, LDObject* topobj) const;
46 QColor getIndexColor (int id) const; 45 QColor getIndexColor (int id) const;
47 void needMerge(); 46 void needMerge();
48 void prepareVBO (int vbonum); 47 void prepareVBO (int vbonum);

mercurial