本文整理汇总了Java中com.badlogic.gdx.graphics.g3d.RenderableProvider类的典型用法代码示例。如果您正苦于以下问题:Java RenderableProvider类的具体用法?Java RenderableProvider怎么用?Java RenderableProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
RenderableProvider类属于com.badlogic.gdx.graphics.g3d包,在下文中一共展示了RenderableProvider类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: renderFor
import com.badlogic.gdx.graphics.g3d.RenderableProvider; //导入依赖的package包/类
private void renderFor(World world, float deltaTime) {
for (Entity entity : world.entities.values()) {
entity.updatePosition(deltaTime);
if (entity instanceof RenderableProvider)
modelBatch.render(((RenderableProvider) entity));
}
}
示例2: add
import com.badlogic.gdx.graphics.g3d.RenderableProvider; //导入依赖的package包/类
/**
* Add BaseRenderable to queue
* @param renderableProvider
*/
public void add(final RenderableProvider renderableProvider) {
if (camera == null) throw new GdxRuntimeException("Call begin() first.");
final int offset = renderables.size;
renderableProvider.getRenderables(renderables, renderablePool);
for (int i = offset; i < renderables.size; i++) {
Renderable renderable = renderables.get(i);
renderable.mesh.setAutoBind(false);
}
}
示例3: WorldRenderingSystem
import com.badlogic.gdx.graphics.g3d.RenderableProvider; //导入依赖的package包/类
public WorldRenderingSystem(Level level) {
super();
this.terrain = level.terrainEngine;
this.batch = level.batch;
this.colorShaderProvider = level.colorShaderProvider;
this.depthShaderProvider = level.depthShaderProvider;
this.env = level.env;
this.mainCamera = level.camera;
this.skybox = level.env.skybox;
this.octree = level.octree;
this.finalBucket = new Array<RenderableProvider>();
frustrumOctreeQuery.setKlass(PositionComponent.class);
}
示例4: getRenderableProviders
import com.badlogic.gdx.graphics.g3d.RenderableProvider; //导入依赖的package包/类
@Override
public Array<RenderableProvider> getRenderableProviders() {
return renderableProviders;
}
示例5: addDirectInstance
import com.badlogic.gdx.graphics.g3d.RenderableProvider; //导入依赖的package包/类
public void addDirectInstance(RenderableProvider inst) {
this.directModelProviders.add(inst);
}
示例6: renderableProviders
import com.badlogic.gdx.graphics.g3d.RenderableProvider; //导入依赖的package包/类
public List<RenderableProvider> renderableProviders() {
List<RenderableProvider> providers = new ArrayList<>();
providers.addAll(renderables());
providers.addAll(directModelProviders);
return providers;
}
示例7: renderIntoBatch
import com.badlogic.gdx.graphics.g3d.RenderableProvider; //导入依赖的package包/类
public void renderIntoBatch() {
modelBatch.begin(renderer.camera());
List<RenderableProvider> providers = renderer.renderableProviders();
providers.forEach(modelBatch::render);
modelBatch.end();
}
示例8: addAll
import com.badlogic.gdx.graphics.g3d.RenderableProvider; //导入依赖的package包/类
public void addAll(Array<RenderableProvider> bucket) {
for (int i = 0; i < bucket.size; i++) {
add(bucket.get(i));
}
}
示例9: getRenderableProviders
import com.badlogic.gdx.graphics.g3d.RenderableProvider; //导入依赖的package包/类
Array<RenderableProvider> getRenderableProviders();