Page 1 of 1

Posted: Wed Jan 03, 2007 6:22 pm
by Mikey
I can't remember, what was the conclusion of the different ships with different cockpit graphics?

Posted: Wed Jan 03, 2007 8:53 pm
by Paul
I added very basic vector graphics, allowing the creation of colored polygons like the default frame. Currently, the default panels and buttons cannot be moved.

The default frame is created as follows:

<FRONT>
<QUADS>
Color .5, .5, .5
Vertex -.83, 1
Vertex -.83, .555
Color 0, 0, 0
Vertex -.67, .555
Vertex -.67, 1

Vertex -1, -1
Vertex -.67, .555
Color .5, .5, .5
Vertex -.83, .555
Vertex -1.15, -1

Vertex 1.15, -1
Vertex .83, .567
Color 0, 0, 0
Vertex .67, .567
Vertex 1, -1

Vertex .67, 1
Vertex .67, .567
Color .5, .5, .5
Vertex .83, .567
Vertex .83, 1
</QUADS>
</FRONT>
<REARSAME>


If you want the front and rear frames to be different, instead of the <REARFRAME> tag, uses <REAR></REAR> tags.

In addition to the <QUAD> tag, supported tags are:
  • <POINTS>
  • <LINES>
  • <LINESTRIP>
  • <LINELOOP>
  • <TRIANGLES>
  • <TRIANGLESTRIP>
  • <TRIANGLEFAN>
  • <QUADSTRIP>
  • <POLYGON>
For an explanation of what all these options are, I refer you to: http://developer.apple.com/documentatio ... gin.3.html