Engine based on libgdx and gltf
- Create youro GameEngine class.
This class will do all the game specific part.
It needs to implement ApplicationListener interface. - Create RenderEngine field in your GanmeEngine class.
This will do all the generic stuff that you can reuse in all your games.
The renderEnigne needs a font and a texture region to draw the CPU/GPU performance graph.
The renderEngine alo needs a camera that you define. - Use RendreEngine methods add(), addDynamic(), addStatic() to add GameObjects into your scene.
- In the render method called by libgdx, you need to call all the generic part.
renderEngine.cpuGraph.begin();
renderEngine.updateCamera(centerXD, centerYD, centerZD);
renderEngine.cpuGraph.end();
renderEngine.gpuGraph.begin();
renderEngine.render(currentTime, deltaTime, takeScreenShot);
renderEngine.gpuGraph.end();
renderEngine.handleQueuedScreenshot(takeScreenShot);
You can add any other rendering code you need inbetween.
- MercatorSoundTest synth is not started when nearing the camera
managed textures 12 shader switches 11 texture bindings 61