クラス BD1Block
java.lang.Object
com.github.dabasan.xops.bd1.BD1Block
public class BD1Block extends Object
A block contained in the BD1 format.
- 作成者:
- Daba
-
コンストラクタの概要
-
メソッドの概要
修飾子とタイプ メソッド 説明 booleanGetEnabledFlag()int[]GetTextureIDs()float[]GetUs()com.github.dabasan.basis.vector.Vector[]GetVertexPositions()float[]GetVs()voidSetEnabledFlag(boolean enabled_flag)voidSetTextureID(int index, int texture_id)voidSetU(int index, float u)voidSetUV(int index, float u, float v)voidSetV(int index, float v)voidSetVertexPosition(int index, com.github.dabasan.basis.vector.Vector pos)voidSetVertexPositionX(int index, float x)voidSetVertexPositionY(int index, float y)voidSetVertexPositionZ(int index, float z)
-
コンストラクタの詳細
-
メソッドの詳細
-
SetVertexPositionX
public void SetVertexPositionX(int index, float x)- パラメータ:
index- Index of array vertex_positionsx- X-coordinate
-
SetVertexPositionY
public void SetVertexPositionY(int index, float y)- パラメータ:
index- Index of array vertex_positionsy- Y-coordinate
-
SetVertexPositionZ
public void SetVertexPositionZ(int index, float z)- パラメータ:
index- Index of array vertex_positionsz- Z-coordinate
-
SetU
public void SetU(int index, float u)- パラメータ:
index- Index of array usu- U-coordinate
-
SetV
public void SetV(int index, float v)- パラメータ:
index- Index of array vsv- V-coordinate
-
SetTextureID
public void SetTextureID(int index, int texture_id)- パラメータ:
index- Index of array texture_idstexture_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_positionspos- Position
-
SetUV
public void SetUV(int index, float u, float v)- パラメータ:
index- Index of array us and vsu- U-coordinatev- 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
-