CreateMeshBuilder,

AddVertex,0, 2.2, 0,;0
AddVertex,0.1, 2.2, 0,;1
AddVertex,0.2, 2.2,-0.1,;2
AddVertex,0.1, 2.2,-0.2,;3
AddVertex,0, 2.2,-0.2,;4

AddVertex,0, 1.7, 0,;5
AddVertex,0.1, 1.7, 0,;6
AddVertex,0.2, 1.7,-0.1,;7
AddVertex,0.1, 1.7,-0.2,;8
AddVertex,0, 1.7,-0.2,;9

AddFace,0,5,6,1,
AddFace,2,1,6,7,
AddFace,3,2,7,8,
AddFace,4,3,8,9,

GenerateNormals,


LoadTexture,mark.bmp,
SetTextureCoordinates,0,    1, 0,
SetTextureCoordinates,1, 0.75, 0,
SetTextureCoordinates,2,  0.5, 0,
SetTextureCoordinates,3, 0.25, 0,
SetTextureCoordinates,4,    0, 0,
SetTextureCoordinates,5,    1, 1,
SetTextureCoordinates,6, 0.75, 1,
SetTextureCoordinates,7,  0.5, 1,
SetTextureCoordinates,8, 0.25, 1,
SetTextureCoordinates,9,    0, 1,



CreateMeshBuilder,
AddVertex,0.1,1.7,-0.2,;0
AddVertex,0.18,1.7,-0.2,
AddVertex,0.18,1.7,0,
AddVertex,0.1,1.7,0,

AddVertex,0.1,1.4,-0.2,;4
AddVertex,0.18,1.4,-0.2,
AddVertex,0.18,1.4,0,
AddVertex,0.1,1.4,0,

AddFace2,0,1,5,4,
AddFace2,3,2,1,0,
AddFace2,2,3,7,6,
AddFace2,7,6,5,4,

SetColor,255,204,0,

GenerateNormals,

CreateMeshBuilder,;次に正面を作ります

AddVertex,0.18,1.7,-0.2,
AddVertex,0.18,1.7,0,
AddVertex,0.18,1.4,0,
AddVertex,0.18,1.4,-0.2,

AddFace2,0,1,2,3,

GenerateNormals,

LoadTexture,rettei2.bmp,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,

;張り込む面とテクスチャが同じ大きさだと、とても楽ですね(^^)
