Created
May 8, 2012 11:38
-
-
Save Quby/2634397 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "clash.h" | |
#include <iostream> | |
using namespace clash; | |
class Box : public Mesh { | |
void draw () { | |
//тут задаем вертексы | |
} | |
} | |
int main () { | |
Surface* game = new Surface(); | |
game->setDesktopMode(); | |
Scene* scene = new Scene(); | |
scene.append(new Box()); | |
game.setScene(scene); | |
do {} while (game->run()); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment