当前位置: 首页>>代码示例>>Java>>正文


Java RenderableProvider类代码示例

本文整理汇总了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));
	}
}
 
开发者ID:RedTroop,项目名称:Cubes_2,代码行数:8,代码来源:WorldRenderer.java

示例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);
  }
}
 
开发者ID:macbury,项目名称:ForgE,代码行数:14,代码来源:VoxelBatch.java

示例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);
}
 
开发者ID:macbury,项目名称:ForgE,代码行数:15,代码来源:WorldRenderingSystem.java

示例4: getRenderableProviders

import com.badlogic.gdx.graphics.g3d.RenderableProvider; //导入依赖的package包/类
@Override
public Array<RenderableProvider> getRenderableProviders() {
    return renderableProviders;
}
 
开发者ID:MovementSpeed,项目名称:nhglib,代码行数:5,代码来源:BaseRenderingSystem.java

示例5: addDirectInstance

import com.badlogic.gdx.graphics.g3d.RenderableProvider; //导入依赖的package包/类
public void addDirectInstance(RenderableProvider inst) {
    this.directModelProviders.add(inst);
}
 
开发者ID:ncguy2,项目名称:Argent,代码行数:4,代码来源:WorldRenderer.java

示例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;
}
 
开发者ID:ncguy2,项目名称:Argent,代码行数:7,代码来源:WorldRenderer.java

示例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();
}
 
开发者ID:ncguy2,项目名称:Argent,代码行数:7,代码来源:BufferRenderer.java

示例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));
  }
}
 
开发者ID:macbury,项目名称:ForgE,代码行数:6,代码来源:VoxelBatch.java

示例9: getRenderableProviders

import com.badlogic.gdx.graphics.g3d.RenderableProvider; //导入依赖的package包/类
Array<RenderableProvider> getRenderableProviders(); 
开发者ID:MovementSpeed,项目名称:nhglib,代码行数:2,代码来源:RenderingSystemInterface.java


注:本文中的com.badlogic.gdx.graphics.g3d.RenderableProvider类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。