public class BD1Creator extends Object
| コンストラクタ | 説明 |
|---|---|
BD1Creator() |
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
int |
CreateBlock(Vector[] vertex_positions) |
Creates a block.
|
int |
CreateCube(Vector center,
float edge_length) |
Creates a cube.
|
Set<Integer> |
GetBlockHandles() |
|
int |
RemoveBlock(int block_handle) |
Removes a block.
|
int |
SetBlockTextureID(int block_handle,
int face_index,
int texture_id) |
Sets the texture ID.
|
int |
SetBlockUVs(int block_handle,
int face_index,
float u,
float v) |
Sets the UVs.
|
int |
SetTextureFilename(int texture_id,
String texture_filename) |
|
int |
WriteAsBD1(String bd1_filename,
float offset_y) |
Writes out blocks into a BD1 file.
|
public int SetTextureFilename(int texture_id,
String texture_filename)
public int CreateCube(Vector center, float edge_length)
center - Center positionedge_length - Length of edgespublic int CreateBlock(Vector[] vertex_positions)
vertex_positions - Vertex positionspublic int SetBlockUVs(int block_handle,
int face_index,
float u,
float v)
block_handle - Block handleface_index - Face indexu - U-coordinatev - V-coordinatepublic int SetBlockTextureID(int block_handle,
int face_index,
int texture_id)
block_handle - Block handleface_index - Face indextexture_id - Texture IDpublic int RemoveBlock(int block_handle)
block_handle - Block handlepublic int WriteAsBD1(String bd1_filename, float offset_y)
bd1_filename - BD1 filenameoffset_y - Y-direction offsetCopyright © 2019. All rights reserved.