|
@@ -22,9 +22,9 @@ void createDefaultCube(Bildschirm* zScreen)
|
|
|
float size = 1;
|
|
|
float left, right, top, bottom;
|
|
|
|
|
|
- left = (float)((-size / 2.0));
|
|
|
+ right = (float)((-size / 2.0));
|
|
|
|
|
|
- right = left + (float)size;
|
|
|
+ left = right + (float)size;
|
|
|
|
|
|
top = (float)(size / 2.0);
|
|
|
|
|
@@ -94,70 +94,70 @@ void createDefaultCube(Bildschirm* zScreen)
|
|
|
|
|
|
|
|
|
|
|
|
- Polygon3D* p = new Polygon3D();
|
|
|
+ Polygon3D* p = new Polygon3D();
|
|
|
p->indexAnz = 6;
|
|
|
p->indexList = new int[p->indexAnz];
|
|
|
p->indexList[0] = 0;
|
|
|
- p->indexList[1] = 2;
|
|
|
- p->indexList[2] = 1;
|
|
|
+ p->indexList[1] = 1;
|
|
|
+ p->indexList[2] = 2;
|
|
|
p->indexList[3] = 1;
|
|
|
- p->indexList[4] = 2;
|
|
|
- p->indexList[5] = 3;
|
|
|
+ p->indexList[4] = 3;
|
|
|
+ p->indexList[5] = 2;
|
|
|
data->addPolygon(p);
|
|
|
|
|
|
- p = new Polygon3D();
|
|
|
+ p = new Polygon3D();
|
|
|
p->indexAnz = 6;
|
|
|
p->indexList = new int[p->indexAnz];
|
|
|
p->indexList[0] = 0 + 8;
|
|
|
- p->indexList[1] = 2 + 8;
|
|
|
- p->indexList[2] = 1 + 8;
|
|
|
+ p->indexList[1] = 1 + 8;
|
|
|
+ p->indexList[2] = 2 + 8;
|
|
|
p->indexList[3] = 1 + 8;
|
|
|
- p->indexList[4] = 2 + 8;
|
|
|
- p->indexList[5] = 3 + 8;
|
|
|
+ p->indexList[4] = 3 + 8;
|
|
|
+ p->indexList[5] = 2 + 8;
|
|
|
data->addPolygon(p);
|
|
|
|
|
|
- p = new Polygon3D();
|
|
|
+ p = new Polygon3D();
|
|
|
p->indexAnz = 6;
|
|
|
p->indexList = new int[p->indexAnz];
|
|
|
p->indexList[0] = 0 + 4;
|
|
|
- p->indexList[1] = 2 + 4;
|
|
|
- p->indexList[2] = 1 + 4;
|
|
|
+ p->indexList[1] = 1 + 4;
|
|
|
+ p->indexList[2] = 2 + 4;
|
|
|
p->indexList[3] = 1 + 4;
|
|
|
- p->indexList[4] = 2 + 4;
|
|
|
- p->indexList[5] = 3 + 4;
|
|
|
+ p->indexList[4] = 3 + 4;
|
|
|
+ p->indexList[5] = 2 + 4;
|
|
|
data->addPolygon(p);
|
|
|
|
|
|
- p = new Polygon3D();
|
|
|
+ p = new Polygon3D();
|
|
|
p->indexAnz = 6;
|
|
|
p->indexList = new int[p->indexAnz];
|
|
|
p->indexList[0] = 0 + 12;
|
|
|
- p->indexList[1] = 2 + 12;
|
|
|
- p->indexList[2] = 1 + 12;
|
|
|
+ p->indexList[1] = 1 + 12;
|
|
|
+ p->indexList[2] = 2 + 12;
|
|
|
p->indexList[3] = 1 + 12;
|
|
|
- p->indexList[4] = 2 + 12;
|
|
|
- p->indexList[5] = 3 + 12;
|
|
|
+ p->indexList[4] = 3 + 12;
|
|
|
+ p->indexList[5] = 2 + 12;
|
|
|
data->addPolygon(p);
|
|
|
|
|
|
- p = new Polygon3D();
|
|
|
+ p = new Polygon3D();
|
|
|
p->indexAnz = 6;
|
|
|
p->indexList = new int[p->indexAnz];
|
|
|
p->indexList[0] = 0 + 16;
|
|
|
- p->indexList[1] = 2 + 16;
|
|
|
- p->indexList[2] = 1 + 16;
|
|
|
+ p->indexList[1] = 1 + 16;
|
|
|
+ p->indexList[2] = 2 + 16;
|
|
|
p->indexList[3] = 1 + 16;
|
|
|
- p->indexList[4] = 2 + 16;
|
|
|
- p->indexList[5] = 3 + 16;
|
|
|
+ p->indexList[4] = 3 + 16;
|
|
|
+ p->indexList[5] = 2 + 16;
|
|
|
data->addPolygon(p);
|
|
|
|
|
|
- p = new Polygon3D();
|
|
|
+ p = new Polygon3D();
|
|
|
p->indexAnz = 6;
|
|
|
p->indexList = new int[p->indexAnz];
|
|
|
p->indexList[0] = 0 + 20;
|
|
|
- p->indexList[1] = 2 + 20;
|
|
|
- p->indexList[2] = 1 + 20;
|
|
|
+ p->indexList[1] = 1 + 20;
|
|
|
+ p->indexList[2] = 2 + 20;
|
|
|
p->indexList[3] = 1 + 20;
|
|
|
- p->indexList[4] = 2 + 20;
|
|
|
- p->indexList[5] = 3 + 20;
|
|
|
+ p->indexList[4] = 3 + 20;
|
|
|
+ p->indexList[5] = 2 + 20;
|
|
|
data->addPolygon(p);
|
|
|
data->calculateNormals();
|
|
|
data->release();
|