|
A8.4 Example .ams File
$Mesh {
# Define the vertices necessary to display a picture
$VerticesUV {
0 0 0 0 0
1 0 0 1 0
1 1 0 1 1
0 1 0 0 1
}
# Define a square displaying a picture
$Texture { face.bmp }
$Quads { 1 2 3 4 }
# Add a red triangle.
# First we need another vertex
$Vertices { 1 0 1 }
# ...and now the triangle
$Triangles {
$Texture { }
# Turn off the old texture (note the space,
# without it the opening ' { ' and closing ' } '
# would not be recognized by the token scanner.
$Rgb { 1 0 0 } # Red
3 4 5 # The single triangle
}
}
|