Skip to content

Instantly share code, notes, and snippets.

@WideWord
Created May 14, 2012 12:34
Show Gist options
  • Save WideWord/2693701 to your computer and use it in GitHub Desktop.
Save WideWord/2693701 to your computer and use it in GitHub Desktop.
#include "enigne.h"
using namespace scene;
using namespace gfx;
using namespace utils;
//...
int main () {
RenderWindow* wnd = new RenderWindow(800,600,false);
Renderer* r = new Renderer(wnd);
Scene* scn = new Scene();
GameObject* obj = new GameObject(obj);
new Transform(obj);
new MeshRenderer(obj);
obj->getComponent<MeshRenderer>->meshes->push_back(Assets::loadMesh("box.dae"));// это я заменю, пока так
while (true) {
scn->update();
r->render();
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment