469 |
vertice[8*noVertex+7] = (coord.z); |
vertice[8*noVertex+7] = (coord.z); |
470 |
|
|
471 |
/* test if the coordinates respect the bounds (will be removed later) */ |
/* test if the coordinates respect the bounds (will be removed later) */ |
472 |
|
// coord_t minBBox = InterpolateCoord (currentMinBBox, nextMinBBox, time); |
473 |
|
// coord_t maxBBox = InterpolateCoord (currentMaxBBox, nextMaxBBox, time); |
474 |
|
// NSParameterAssert (coord.x >= minBBox.x); |
475 |
|
// NSParameterAssert (coord.x <= maxBBox.x); |
476 |
|
// NSParameterAssert (coord.y >= minBBox.y); |
477 |
|
// NSParameterAssert (coord.y <= maxBBox.y); |
478 |
|
// NSParameterAssert (coord.z >= minBBox.z); |
479 |
|
// NSParameterAssert (coord.z <= maxBBox.z); |
480 |
|
|
481 |
// coord_t minBBox = InterpolateCoord (currentMinBBox, nextMinBBox, time); |
// coord_t minBBox = InterpolateCoord (currentMinBBox, nextMinBBox, time); |
482 |
// coord_t maxBBox = InterpolateCoord (currentMaxBBox, nextMaxBBox, time); |
// coord_t maxBBox = InterpolateCoord (currentMaxBBox, nextMaxBBox, time); |
486 |
// NSParameterAssert (coord.y <= maxBBox.y); |
// NSParameterAssert (coord.y <= maxBBox.y); |
487 |
// NSParameterAssert (coord.z >= minBBox.z); |
// NSParameterAssert (coord.z >= minBBox.z); |
488 |
// NSParameterAssert (coord.z <= maxBBox.z); |
// NSParameterAssert (coord.z <= maxBBox.z); |
|
|
|
|
|
|
489 |
} |
} |
490 |
|
|
491 |
/* the array is now printed */ |
/* the array is now printed */ |
492 |
glEnableClientState (GL_VERTEX_ARRAY); |
glEnableClientState (GL_VERTEX_ARRAY); |
493 |
|
glInterleavedArrays (GL_T2F_N3F_V3F, 0, vertice); |
|
glInterleavedArrays(GL_T2F_N3F_V3F, 0, vertice); |
|
494 |
|
|
495 |
glEnable (GL_TEXTURE_2D); |
glEnable (GL_TEXTURE_2D); |
496 |
glEnable (GL_NORMALIZE); |
glEnable (GL_NORMALIZE); |
497 |
glEnable (GL_DEPTH_TEST); |
glEnable (GL_DEPTH_TEST); |
498 |
|
glEnable (GL_CULL_FACE); |
499 |
|
|
500 |
|
glCullFace (GL_FRONT); |
501 |
glColor3f (1.0f, 1.0f, 1.0f); |
glColor3f (1.0f, 1.0f, 1.0f); |
502 |
|
|
503 |
int ind = 0; |
int ind = 0; |
515 |
glDisable (GL_DEPTH_TEST); |
glDisable (GL_DEPTH_TEST); |
516 |
glDisable (GL_NORMALIZE); |
glDisable (GL_NORMALIZE); |
517 |
glDisable (GL_TEXTURE_2D); |
glDisable (GL_TEXTURE_2D); |
518 |
|
glDisable (GL_CULL_FACE); |
519 |
|
|
520 |
glDisableClientState (GL_VERTEX_ARRAY); |
glDisableClientState (GL_VERTEX_ARRAY); |
521 |
} |
} |