本文整理汇总了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;
}
示例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;
}