クラス BD1Block

java.lang.Object
com.github.dabasan.xops.bd1.BD1Block

public class BD1Block
extends Object
A block contained in the BD1 format.
作成者:
Daba
  • コンストラクタの詳細

  • メソッドの詳細

    • SetVertexPositionX

      public void SetVertexPositionX​(int index, float x)
      パラメータ:
      index - Index of array vertex_positions
      x - X-coordinate
    • SetVertexPositionY

      public void SetVertexPositionY​(int index, float y)
      パラメータ:
      index - Index of array vertex_positions
      y - Y-coordinate
    • SetVertexPositionZ

      public void SetVertexPositionZ​(int index, float z)
      パラメータ:
      index - Index of array vertex_positions
      z - Z-coordinate
    • SetU

      public void SetU​(int index, float u)
      パラメータ:
      index - Index of array us
      u - U-coordinate
    • SetV

      public void SetV​(int index, float v)
      パラメータ:
      index - Index of array vs
      v - V-coordinate
    • SetTextureID

      public void SetTextureID​(int index, int texture_id)
      パラメータ:
      index - Index of array texture_ids
      texture_id - Texture ID
    • SetEnabledFlag

      public void SetEnabledFlag​(boolean enabled_flag)
      パラメータ:
      enabled_flag - Enabled flag
    • SetVertexPosition

      public void SetVertexPosition​(int index, com.github.dabasan.basis.vector.Vector pos)
      パラメータ:
      index - Index of array vertex_positions
      pos - Position
    • SetUV

      public void SetUV​(int index, float u, float v)
      パラメータ:
      index - Index of array us and vs
      u - U-coordinate
      v - V-coordinate
    • GetVertexPositions

      public com.github.dabasan.basis.vector.Vector[] GetVertexPositions()
      戻り値:
      An array of vertex positions
    • GetUs

      public float[] GetUs()
      戻り値:
      An array of u-coordinates
    • GetVs

      public float[] GetVs()
      戻り値:
      An array of v-coordinates
    • GetTextureIDs

      public int[] GetTextureIDs()
      戻り値:
      An array of texture IDs
    • GetEnabledFlag

      public boolean GetEnabledFlag()
      戻り値:
      Enabled flag