worked on android port

opengl1 -> es
This commit is contained in:
root
2018-01-31 17:15:11 +01:00
parent a9bab839b2
commit e5e19779d5
53 changed files with 884 additions and 203 deletions

View File

@@ -24,18 +24,16 @@ public:
}
/** repaint me */
void paintGL() override {
void render(const RenderSettings& rs) override {
const Point3 pos(e->center.x, e->center.y, f->getStartingZ() + e->height_m/2);
const Point3 size(e->width/2, e->depth/2, e->height_m/2.0001); // z-fighting
const Point3 rot(0,0,e->rotation * 180 / M_PI);
// fill color
glColor3f(0.2, 0.2, 0.2);
// build
Cube cube(pos, size, rot);
cube.paintGL();
cube.setColor(0.2, 0.2, 0.2);
cube.render(rs);
}