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


Java BlockLight类代码示例

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


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

示例1: createVerticesArea

import ethanjones.cubes.world.light.BlockLight; //导入依赖的package包/类
private static int createVerticesArea(float[] vertices, int vertexOffset, float x, float z) {
	vertices[vertexOffset++] = x;
	vertices[vertexOffset++] = 0;
	vertices[vertexOffset++] = z;
	vertices[vertexOffset++] = textureRegionArea.getU();
	vertices[vertexOffset++] = textureRegionArea.getV();
	vertices[vertexOffset++] = BlockLight.FULL_LIGHT;

	vertices[vertexOffset++] = x;
	vertices[vertexOffset++] = Area.SIZE_BLOCKS;
	vertices[vertexOffset++] = z;
	vertices[vertexOffset++] = textureRegionArea.getU2();
	vertices[vertexOffset++] = textureRegionArea.getV2();
	vertices[vertexOffset++] = BlockLight.FULL_LIGHT;
	return vertexOffset;
}
 
开发者ID:RedTroop,项目名称:Cubes_2,代码行数:17,代码来源:AreaBoundaries.java

示例2: createVerticesCurrent

import ethanjones.cubes.world.light.BlockLight; //导入依赖的package包/类
private static int createVerticesCurrent(float[] vertices, int vertexOffset, float x1, float x2, float y1, float y2,
		float z1, float z2) {
	vertices[vertexOffset++] = x1;
	vertices[vertexOffset++] = y1;
	vertices[vertexOffset++] = z1;
	vertices[vertexOffset++] = textureRegionCurrent.getU();
	vertices[vertexOffset++] = textureRegionCurrent.getV();
	vertices[vertexOffset++] = BlockLight.FULL_LIGHT;

	vertices[vertexOffset++] = x2;
	vertices[vertexOffset++] = y2;
	vertices[vertexOffset++] = z2;
	vertices[vertexOffset++] = textureRegionCurrent.getU2();
	vertices[vertexOffset++] = textureRegionCurrent.getV2();
	vertices[vertexOffset++] = BlockLight.FULL_LIGHT;
	return vertexOffset;
}
 
开发者ID:RedTroop,项目名称:Cubes_2,代码行数:18,代码来源:AreaBoundaries.java

示例3: createVerticesArea

import ethanjones.cubes.world.light.BlockLight; //导入依赖的package包/类
private static int createVerticesArea(float[] vertices, int vertexOffset, float x, float z) {
  vertices[vertexOffset++] = x;
  vertices[vertexOffset++] = 0;
  vertices[vertexOffset++] = z;
  vertices[vertexOffset++] = textureRegionArea.getU();
  vertices[vertexOffset++] = textureRegionArea.getV();
  vertices[vertexOffset++] = BlockLight.FULL_LIGHT;
  
  vertices[vertexOffset++] = x;
  vertices[vertexOffset++] = Area.SIZE_BLOCKS;
  vertices[vertexOffset++] = z;
  vertices[vertexOffset++] = textureRegionArea.getU2();
  vertices[vertexOffset++] = textureRegionArea.getV2();
  vertices[vertexOffset++] = BlockLight.FULL_LIGHT;
  return vertexOffset;
}
 
开发者ID:RedTroop,项目名称:Cubes,代码行数:17,代码来源:AreaBoundaries.java

示例4: createVerticesCurrent

import ethanjones.cubes.world.light.BlockLight; //导入依赖的package包/类
private static int createVerticesCurrent(float[] vertices, int vertexOffset, float x1, float x2, float y1, float y2, float z1, float z2) {
  vertices[vertexOffset++] = x1;
  vertices[vertexOffset++] = y1;
  vertices[vertexOffset++] = z1;
  vertices[vertexOffset++] = textureRegionCurrent.getU();
  vertices[vertexOffset++] = textureRegionCurrent.getV();
  vertices[vertexOffset++] = BlockLight.FULL_LIGHT;
  
  vertices[vertexOffset++] = x2;
  vertices[vertexOffset++] = y2;
  vertices[vertexOffset++] = z2;
  vertices[vertexOffset++] = textureRegionCurrent.getU2();
  vertices[vertexOffset++] = textureRegionCurrent.getV2();
  vertices[vertexOffset++] = BlockLight.FULL_LIGHT;
  return vertexOffset;
}
 
开发者ID:RedTroop,项目名称:Cubes,代码行数:17,代码来源:AreaBoundaries.java


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