Skip to content

Commit

Permalink
DRAGONAGE2: Display a rotating textured cube
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Jan 30, 2014
1 parent f6b0ab0 commit 64d6b76
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/engines/dragonage2/dragonage2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@
#include "aurora/resman.h"

#include "graphics/cursorman.h"
#include "graphics/cameraman.h"

#include "graphics/aurora/sceneman.h"
#include "graphics/aurora/fps.h"
#include "graphics/aurora/cube.h"

#include "sound/sound.h"

Expand Down Expand Up @@ -117,10 +120,21 @@ void DragonAge2Engine::run(const Common::UString &target) {
if (ConfigMan.getBool("showfps", false))
fps = new Graphics::Aurora::FPS;

CameraMan.setPosition(0.0, 0.0, 5.0);
CameraMan.lookAt(0.0, 0.0, 0.0);

Graphics::Aurora::Cube *cube = SceneMan.createCube("xx_wood");

cube->setPosition(0.0, 0.0, 0.0);
cube->startRotate();
cube->setVisible(true);

while (!EventMan.quitRequested()) {
EventMan.delay(10);
}

SceneMan.destroy(cube);

delete fps;
}

Expand Down

0 comments on commit 64d6b76

Please sign in to comment.