/** * Execute the tasks from this queue. Note that depending on the queue type, tasks may expect to be run in a certain * context (for example, the Render queue expects to be run from the Thread owning a GL context.) */ public void execute() { execute(null); }
/** * Execute the tasks from this queue. Note that depending on the queue type, tasks may expect to be run in a certain * context (for example, the Render queue expects to be run from the Thread owning a GL context.) */ public void execute() { execute(null); }
@Override public boolean render(final Renderer renderer) { // Execute renderQueue item GameTaskQueueManager.getManager(ContextManager.getCurrentContext()).getQueue(GameTaskQueue.RENDER) .execute(renderer); // Clean up card garbage such as textures, vbos, etc. ContextGarbageCollector.doRuntimeCleanup(renderer); _root.onDraw(renderer); return true; } }
@Override public boolean render(final Renderer renderer) { if (Constants.stats && labGraph == null) { setupStatGraphs(renderer); setupStats(); } // Execute renderQueue items GameTaskQueueManager.getManager(ParticleEditorFrame.GLOBAL_CONTEXT).getQueue(GameTaskQueue.RENDER) .execute(renderer); // Clean up card garbage such as textures, vbos, etc. ContextGarbageCollector.doRuntimeCleanup(renderer); rootNode.draw(renderer); if (Constants.stats) { StatCollector.update(); statNode.draw(renderer); } return true; }
public void update(final ReadOnlyTimer timer) { final double tpf = timer.getTimePerFrame(); // Execute update queue items GameTaskQueueManager.getManager(ParticleEditorFrame.GLOBAL_CONTEXT).getQueue(GameTaskQueue.UPDATE).execute(); _logicalLayer.checkTriggers(tpf); rootNode.updateGeometricState(tpf); if (Constants.stats) { final Camera cam = Camera.getCurrentCamera(); if (cam != null) { labGraph.setTranslation((cam.getWidth() - .5f * labGraph.getWidth()), (.5f * labGraph.getHeight()), 0); } statNode.updateGeometricState(tpf); } }