An 3d game engine with full lua binding, but it is still in a very eraly stage.
It use cppgl to deal with OpenGL; Nodes are organized by levels, like Director->Scene->Layer->Sprite; We support 2D ImageSprite, MeshSprite now.
####Demo: I want to see the file.
static void lua2d_demo()
{
auto& director = l2d::Director::getInstance();
director.init(600, 600, "appName");
auto scene = l2d::Scene::create();
auto layer = l2d::Layer::create();
auto gaoda = l2d::MeshSprite::create("gaoda.obj", "gaoda.jpg");
gaoda->load();
gaoda->setX(0.5f);
gaoda->scale(1.5f);
gaoda->rotate(-45.0f);
gaoda->setZ(0.5f);
gaoda->scale(1.2f);
gaoda->setY(-20.0f);
layer->addSprite(gaoda);
scene->addLayer(layer, 0);
director.runWithScene(scene);
director.setProj(glm::radians(45.0f), 800.0f/600.0f, 1.0f, 100000.0f);
director.lookAt(glm::vec3(23.1f,80.0f,90.2f), glm::vec3(0.1f,0.1f, 0.0f), glm::vec3(0.0f,1.0f,0.0f));
director.mainLoop();
}
####Changes:
20150512 mesh is supported.
####Todo: there are many things should be done... .