Created
May 14, 2012 12:34
-
-
Save WideWord/2693701 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 "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