Skip to content

Instantly share code, notes, and snippets.

@Quby
Created May 8, 2012 11:38

Revisions

  1. Quby created this gist May 8, 2012.
    24 changes: 24 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    #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;
    }