Skip to content

Commit

Permalink
DRAGONAGE: Display a rotating textured cube
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Mar 21, 2014
1 parent b6af94d commit a83aeef
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/engines/dragonage/dragonage.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 @@ -118,10 +121,21 @@ void DragonAgeEngine::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("ach_abi_accomplish_rog");

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 a83aeef

Please sign in to comment.