|
@@ -33,6 +33,18 @@ RenderWidget::RenderWidget(QWidget *parent) :
|
33
|
33
|
_entities.append(cube);
|
34
|
34
|
}
|
35
|
35
|
|
|
36
|
+ for(int i = 0,j = 0; i * j< 625;){
|
|
37
|
+ UGEEntityCube* cube = new GameCube(_engine);
|
|
38
|
+ cube->setTextureId("test");
|
|
39
|
+ cube->move(Vector3D(i, 0, j++));
|
|
40
|
+ _engine->addEntity(cube);
|
|
41
|
+ _entities.append(cube);
|
|
42
|
+ if(j == 26){
|
|
43
|
+ j = 0;
|
|
44
|
+ i++;
|
|
45
|
+ }
|
|
46
|
+ }
|
|
47
|
+
|
36
|
48
|
WaveFrontObj* wavefrontObj = new WaveFrontObj(this);
|
37
|
49
|
wavefrontObj->openFile("/home/robin/Downloads/enterprise/obj/USSEnterprise.obj");
|
38
|
50
|
UGEEntityWaveFrontObj* obj = new UGEEntityWaveFrontObj(wavefrontObj, this);
|