src/glCompiler.h

changeset 1123
15e46ea3151f
parent 1121
be0b5ad128ea
child 1144
4f226fd97826
equal deleted inserted replaced
1122:795d1c3554b9 1123:15e46ea3151f
36 bool isChanged; 36 bool isChanged;
37 }; 37 };
38 38
39 GLCompiler (GLRenderer* renderer); 39 GLCompiler (GLRenderer* renderer);
40 ~GLCompiler(); 40 ~GLCompiler();
41 QColor getColorForPolygon (LDPolygon& poly, LDObject* topobj, ComplementVboType complement) const; 41 QColor getColorForPolygon (LDPolygon& poly, LDObject* topobj, VboSubclass complement) const;
42 QColor indexColorForID (int id) const; 42 QColor indexColorForID (int id) const;
43 void initialize(); 43 void initialize();
44 void needMerge(); 44 void needMerge();
45 void prepareVBO (int vbonum, const Model* model); 45 void prepareVBO (int vbonum, const Model* model);
46 void setRenderer (GLRenderer* compiler); 46 void setRenderer (GLRenderer* compiler);
47 void stageForCompilation (LDObject* obj); 47 void stageForCompilation (LDObject* obj);
48 void unstage (LDObject* obj); 48 void unstage (LDObject* obj);
49 GLuint vbo (int vbonum) const; 49 GLuint vbo (int vbonum) const;
50 int vboSize (int vbonum) const; 50 int vboSize (int vbonum) const;
51 51
52 static int vboNumber (SurfaceVboType surface, ComplementVboType complement); 52 static int vboNumber (VboClass surface, VboSubclass complement);
53 53
54 private: 54 private:
55 void compileStaged(); 55 void compileStaged();
56 void compilePolygon (LDPolygon& poly, LDObject* topobj, ObjectVBOInfo* objinfo); 56 void compilePolygon (LDPolygon& poly, LDObject* topobj, ObjectVBOInfo* objinfo);
57 Q_SLOT void compileObject (LDObject* obj); 57 Q_SLOT void compileObject (LDObject* obj);

mercurial