クラス BD1Generator

java.lang.Object
com.github.dabasan.xops.bd1.BD1Generator
直系の既知のサブクラス:
BD1NormalGenerator, BD1UniformGenerator

public abstract class BD1Generator
extends Object
Base class for BD1 generators
作成者:
Daba
  • コンストラクタの詳細

  • メソッドの詳細

    • GetBD1Creator

      protected BD1Creator GetBD1Creator()
    • SetTextureFilename

      public int SetTextureFilename​(int texture_id, String texture_filename)
    • GenerateCubes

      public abstract void GenerateCubes​(int block_num, float edge_length, float scale)
      Generates cubes.
      パラメータ:
      block_num - Number of blocks
      edge_length - Length of edges
      scale - 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

      public int WriteAsBD1​(String bd1_filename, float offset_y)
      Writes out blocks into a BD1 file.
      パラメータ:
      bd1_filename - Filename
      offset_y - Y-axis offset
      戻り値:
      -1 on error and 0 on success
    • WriteAsOBJ

      public int WriteAsOBJ​(String obj_filename, float offset_y)
      Writes out blocks into an OBJ file.
      パラメータ:
      obj_filename - Filename
      offset_y - Y-axis offset
      戻り値:
      -1 on error and 0 on success