Skip to content

Instantly share code, notes, and snippets.

@Quby
Created May 8, 2012 11:38
Show Gist options
  • Save Quby/2634397 to your computer and use it in GitHub Desktop.
Save Quby/2634397 to your computer and use it in GitHub Desktop.
#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