Skip to content

Commit

Permalink
SONIC: 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 1da1ccb commit 5abb35b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/engines/sonic/sonic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@
#include "common/configman.h"

#include "graphics/graphics.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 @@ -106,10 +109,21 @@ void SonicEngine::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("nintendosplash");

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 5abb35b

Please sign in to comment.