… | |
… | |
93 | | surfaces surface |
93 | | surfaces surface |
94 | ; |
94 | ; |
95 | |
95 | |
96 | surface: '{' STRING NUMBER NUMBER vertexes triangles '}' |
96 | surface: '{' STRING NUMBER NUMBER vertexes triangles '}' |
97 | { |
97 | { |
98 | printf("%u %u\n", tmpvtx.size(), tmpidx.size()); |
|
|
99 | geoid = new geometry_indexed_2d (testmat, GL_TRIANGLES, tmpvtx, tmpidx); |
98 | geoid = new geometry_indexed_2d (testmat, GL_TRIANGLES, tmpvtx, tmpidx); |
|
|
99 | entity *e = new entity (geoid); |
|
|
100 | e->show (); |
100 | tmpvtx.clear (); |
101 | tmpvtx.clear (); |
101 | tmpidx.clear (); |
102 | tmpidx.clear (); |
102 | } |
103 | } |
103 | ; |
104 | ; |
104 | |
105 | |