worked on android port
opengl1 -> es
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user