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


Java CrossFaceVertices类代码示例

本文整理汇总了Java中ethanjones.cubes.graphics.world.CrossFaceVertices的典型用法代码示例。如果您正苦于以下问题:Java CrossFaceVertices类的具体用法?Java CrossFaceVertices怎么用?Java CrossFaceVertices使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


CrossFaceVertices类属于ethanjones.cubes.graphics.world包,在下文中一共展示了CrossFaceVertices类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: render

import ethanjones.cubes.graphics.world.CrossFaceVertices; //导入依赖的package包/类
@Override
public int render(float[] vertices2, int vertexOffset2, Vector3 areaOffset2, Block block2, int meta2,
		BlockTextureHandler textureHandler2, Area area2, int x2, int y2, int z2, int i2, boolean ao2,
		Area minX2, Area maxZ2, Area minZ2, Area maxX2) {
	vertexOffset2 = CrossFaceVertices.createMinXMaxZ(areaOffset2, textureHandler2.getSide(null), x2, y2, z2,
			area2.light[i2 + MIN_Z_OFFSET] & 0xFF, vertices2, vertexOffset2, ao2);
	vertexOffset2 = CrossFaceVertices.createMaxZMinX(areaOffset2, textureHandler2.getSide(null), x2, y2, z2,
			area2.light[i2 + MIN_Z_OFFSET] & 0xFF, vertices2, vertexOffset2, ao2);
	vertexOffset2 = CrossFaceVertices.createMaxXMinZ(areaOffset2, textureHandler2.getSide(null), x2, y2, z2,
			area2.light[i2 + MIN_Z_OFFSET] & 0xFF, vertices2, vertexOffset2, ao2);
	vertexOffset2 = CrossFaceVertices.createMinZMaxX(areaOffset2, textureHandler2.getSide(null), x2, y2, z2,
			area2.light[i2 + MIN_Z_OFFSET] & 0xFF, vertices2, vertexOffset2, ao2);
	return vertexOffset2;
}
 
开发者ID:RedTroop,项目名称:Cubes_2,代码行数:15,代码来源:BlockRenderType.java

示例2: render

import ethanjones.cubes.graphics.world.CrossFaceVertices; //导入依赖的package包/类
@Override
public int render(float[] vertices, int vertexOffset, Vector3 areaOffset, Block block, int meta, BlockTextureHandler textureHandler, Area area, int x, int y, int z, int i, boolean ao, Area minX, Area maxZ, Area minZ, Area maxX) {
  vertexOffset = CrossFaceVertices.createMinXMaxZ(areaOffset, textureHandler.getSide(null), x, y, z, area.light[i + MIN_Z_OFFSET] & 0xFF, vertices, vertexOffset, ao);
  vertexOffset = CrossFaceVertices.createMaxZMinX(areaOffset, textureHandler.getSide(null), x, y, z, area.light[i + MIN_Z_OFFSET] & 0xFF, vertices, vertexOffset, ao);
  vertexOffset = CrossFaceVertices.createMaxXMinZ(areaOffset, textureHandler.getSide(null), x, y, z, area.light[i + MIN_Z_OFFSET] & 0xFF, vertices, vertexOffset, ao);
  vertexOffset = CrossFaceVertices.createMinZMaxX(areaOffset, textureHandler.getSide(null), x, y, z, area.light[i + MIN_Z_OFFSET] & 0xFF, vertices, vertexOffset, ao);
  return vertexOffset;
}
 
开发者ID:RedTroop,项目名称:Cubes,代码行数:9,代码来源:BlockRenderType.java


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