Skip to content

Commit

Permalink
Rotating Akali ftw
Browse files Browse the repository at this point in the history
  • Loading branch information
Amos Wenger committed Mar 3, 2011
1 parent 121f632 commit acd7333
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,19 @@ int main() {
node->setMaterialTexture(0, texture);
}

smgr->addCameraSceneNode(0, vector3df(0, 160, 80), vector3df(0, 150, 60));
smgr->addCameraSceneNode(0, vector3df(0, 160, 150), vector3df(0, 150, 60));

float angle = 0.0f;

while(device->run()) {
driver->beginScene(true, true, SColor(0, 255, 255, 255));
driver->beginScene(true, true, SColor(255, 255, 255, 255));

node->setRotation(vector3df(0, angle, 0));

smgr->drawAll();
driver->endScene();

angle += 0.2f;
}

device->drop();
Expand Down

0 comments on commit acd7333

Please sign in to comment.