use of com.badlogic.gdx.graphics.g3d.RenderableProvider in project libgdx by libgdx.
the class BaseShadowSystem method begin.
@Override
public <T extends RenderableProvider> void begin(Camera camera, final Iterable<T> renderableProviders) {
if (this.renderableProviders != null || this.camera != null)
throw new GdxRuntimeException("Call end() first.");
this.camera = camera;
this.renderableProviders = (Iterable<RenderableProvider>) renderableProviders;
}
use of com.badlogic.gdx.graphics.g3d.RenderableProvider in project nhglib by VoidZombie.
the class GraphicsSystem method rebuildCache.
private void rebuildCache(RenderableProvider... renderableProviders) {
Array<ModelCache> previousModelCaches = new Array<>(staticCaches);
for (int i = 0; i < cameras.size; i++) {
ModelCache previousModelCache = previousModelCaches.get(i);
ModelCache staticCache = staticCaches.get(i);
Camera camera = cameras.get(i);
previousModelCache.begin(camera);
previousModelCache.add(staticCache);
previousModelCache.end();
staticCache.begin(camera);
staticCache.add(previousModelCache);
for (RenderableProvider provider : renderableProviders) {
staticCache.add(provider);
}
staticCache.end();
}
}
Aggregations