Browse Source

entity draw at _position

develop
Robin Thoni 8 years ago
parent
commit
ad39065230
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      TheGame/renderwidget.cpp

+ 3
- 1
TheGame/renderwidget.cpp View File

14
 {
14
 {
15
     _device = new OpenGLRenderDevice(this);
15
     _device = new OpenGLRenderDevice(this);
16
     _engine = new UGameEngine(_device);
16
     _engine = new UGameEngine(_device);
17
-    _engine->addEntity(new UGEEntityCube(_engine));
17
+    UGEEntityCube* cube = new UGEEntityCube(_engine);
18
+    cube->move(Vector3D(0, 1, 0));
19
+    _engine->addEntity(cube);
18
     setMouseTracking(false);
20
     setMouseTracking(false);
19
     setFocusPolicy(Qt::StrongFocus);
21
     setFocusPolicy(Qt::StrongFocus);
20
 }
22
 }

Loading…
Cancel
Save