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

@@ -23,7 +23,7 @@ public:
}
/** repaint me */
void paintGL() override {
void render(const RenderSettings& rs) override {
const Point2 from = fo->from;
const Point2 to = fo->to;
@@ -44,12 +44,10 @@ public:
const Point3 size(sx, sy, sz);
const Point3 rot(0,0,deg);
// fill color
glColor3f(0.395, 0.263, 0.129);
// build
Cube cube(pos, size, rot);
cube.paintGL();
cube.setColor(0.395, 0.263, 0.129);
cube.render(rs);
//glColor3f(0.4, 0.4, 0.4);
//Plane p(fo->from, fo->to, f->atHeight, fo->height);