Created
May 11, 2012 17:41
-
-
Save Quby/2661259 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/surface.hpp> | |
#include <clash/scene.hpp> | |
#include <clash/graphic.hpp> | |
using namespace clash; | |
int main () { | |
Surface game (640, 480, Surface::FullScreen); //создаем поверхность для вывода | |
Scene* scene = new Scene(); //создаем сцену | |
Model* form = new Model("some.model");//загружем модель | |
Material* material = new Material("some.material");//грузим материал | |
Transform* form = new Transform();//создаем трансформацию | |
Graphic* graph = new Graphic(form, material, transform); //создаем граф представление | |
Physic* phys = new Physic(transform);//подключаем физику | |
scene->append(graph); //добавляем это граф представление на сцену | |
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