|
@@ -25,7 +25,7 @@ RenderWidget::RenderWidget(QWidget *parent) :
|
25
|
25
|
|
26
|
26
|
for (int i = 0; i < 1000; ++i) {
|
27
|
27
|
UGEEntityCube* cube = new GameCube(_engine);
|
28
|
|
- cube->setTextureId("test");
|
|
28
|
+ cube->setTextureId("rubiks");
|
29
|
29
|
// cube->rotate(Vector3D(0.0, 45.0, 45.0));
|
30
|
30
|
cube->move(Vector3D(0, i, i));
|
31
|
31
|
// cube->setScale(Vector3D(1.0, 2.0, 1.0));
|
|
@@ -34,7 +34,7 @@ RenderWidget::RenderWidget(QWidget *parent) :
|
34
|
34
|
}
|
35
|
35
|
|
36
|
36
|
WaveFrontObj* wavefrontObj = new WaveFrontObj(this);
|
37
|
|
- wavefrontObj->openFile("/home/robin/Downloads/enterprise/obj/USSEnterprise.obj");
|
|
37
|
+ wavefrontObj->openFile("./assets/objs/enterprise/USSEnterprise.obj");
|
38
|
38
|
UGEEntityWaveFrontObj* obj = new UGEEntityWaveFrontObj(wavefrontObj, this);
|
39
|
39
|
_engine->addEntity(obj);
|
40
|
40
|
_entities.append(obj);
|
|
@@ -47,7 +47,7 @@ void RenderWidget::initializeGL()
|
47
|
47
|
_engine->setClearColor(Qt::gray);
|
48
|
48
|
_engine->initialize(70, width(), height());
|
49
|
49
|
|
50
|
|
- _engine->loadTextureFromFile("test", "/home/robin/Downloads/test.png");
|
|
50
|
+ _engine->loadTextureFromFile("rubiks", "./assets/textures/rubiks.png");
|
51
|
51
|
}
|
52
|
52
|
|
53
|
53
|
void RenderWidget::paintGL()
|