This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
#include "threeD.h" |
| 2 |
|
| 3 |
int main(int argc, char *argv) |
| 4 |
{ |
| 5 |
Object3D World, *foo; |
| 6 |
int i; |
| 7 |
|
| 8 |
World.child=NULL; |
| 9 |
World.next=NULL; |
| 10 |
World.type=0; |
| 11 |
World.kids=1; |
| 12 |
World.name="World"; |
| 13 |
World.texture=NULL; |
| 14 |
World.data=NULL; |
| 15 |
World.datac=0; |
| 16 |
World.texrep_u=0.; |
| 17 |
World.texrep_v=0.; |
| 18 |
World.crease = 80.; |
| 19 |
World.rot = NULL; |
| 20 |
World.loc.element[0]=0.; |
| 21 |
World.loc.element[1]=0.; |
| 22 |
World.loc.element[2]=0.; |
| 23 |
World.url=NULL; |
| 24 |
World.numverts=0; |
| 25 |
World.vert=NULL; |
| 26 |
World.numsurf=0; |
| 27 |
World.surf=NULL; |
| 28 |
|
| 29 |
World.child=CreateObject(39, 78, "Left Wing", NULL, 2); |
| 30 |
foo=World.child; |
| 31 |
foo->numverts=foo->allocverts; |
| 32 |
foo->numsurf=foo->allocsurf; |
| 33 |
for(i=0;i<foo->numsurf;i++) |
| 34 |
{ |
| 35 |
foo->surf[i].refs=3; |
| 36 |
} |
| 37 |
|
| 38 |
WriteObject(&World, stdout); |
| 39 |
WriteObject(foo, stdout); |
| 40 |
|
| 41 |
|
| 42 |
} |