クラス BD1Generator
java.lang.Object
com.github.dabasan.xops.bd1.BD1Generator
- 直系の既知のサブクラス:
BD1NormalGenerator,BD1UniformGenerator
public abstract class BD1Generator extends Object
Base class for BD1 generators
- 作成者:
- Daba
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 BD1Generator() -
メソッドの概要
修飾子とタイプ メソッド 説明 abstract voidGenerateCubes(int block_num, float edge_length, float scale)Generates cubes.protected BD1CreatorGetBD1Creator()voidRandomizeTextureIDsPerBlock(int bound)Randomly sets texture IDs per block.voidRandomizeTextureIDsPerFace(int bound)Randomly sets texture IDs per face.intSetTextureFilename(int texture_id, String texture_filename)intWriteAsBD1(String bd1_filename, float offset_y)Writes out blocks into a BD1 file.intWriteAsOBJ(String obj_filename, float offset_y)Writes out blocks into an OBJ file.
-
コンストラクタの詳細
-
BD1Generator
public BD1Generator()
-
-
メソッドの詳細
-
GetBD1Creator
-
SetTextureFilename
-
GenerateCubes
public abstract void GenerateCubes(int block_num, float edge_length, float scale)Generates cubes.- パラメータ:
block_num- Number of blocksedge_length- Length of edgesscale- Scale
-
RandomizeTextureIDsPerFace
public void RandomizeTextureIDsPerFace(int bound)Randomly sets texture IDs per face.- パラメータ:
bound- The upper bound of the texture IDs
-
RandomizeTextureIDsPerBlock
public void RandomizeTextureIDsPerBlock(int bound)Randomly sets texture IDs per block.- パラメータ:
bound- The upper bound of the texture IDs
-
WriteAsBD1
Writes out blocks into a BD1 file.- パラメータ:
bd1_filename- Filenameoffset_y- Y-axis offset- 戻り値:
- -1 on error and 0 on success
-
WriteAsOBJ
Writes out blocks into an OBJ file.- パラメータ:
obj_filename- Filenameoffset_y- Y-axis offset- 戻り値:
- -1 on error and 0 on success
-