#define PMM { sqrt_3, -sqrt_3, -sqrt_3 } /* +X, -Y, -Z */
/* Structure describing a tetrahedron */
-Vector3D tetrahedron[4][3] = {
+static Vector3D tetrahedron[4][3] = {
{PPP, MMP, MPM},
{PMM, MPM, MMP},
{PPP, MPM, PMM},
* Static blob data
*****************************************************************************/
-const Vector3D zero_vector = { 0.0, 0.0, 0.0 };
+static const Vector3D zero_vector = { 0.0, 0.0, 0.0 };
/* Use 2 textures to allow a gradual fade between images */
#define NUM_TEXTURES 2
static void
set_parameters(void)
{
+# ifdef HAVE_JWZGLES /* #### glPolygonMode other than GL_FILL unimplemented */
+ wireframe = 0;
+# endif
+
/* In wire frame mode do not draw a texture */
if (wireframe)
{
*
* Return the magnitude of the given vector
*/
+#if 0
static inline double
length (Vector3D u)
{
return sqrt (u.x * u.x + u.y * u.y + u.z * u.z);
}
+#endif
/******************************************************************************
*
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
+ glRotatef(current_device_rotation(), 0, 0, 1);
/* Move down the z-axis. */
glTranslatef (0.0, 0.0, -4.0);
gltrackball_rotate (gp->trackball);
- glRotatef(current_device_rotation(), 0, 0, 1);
/* glColor4ub (255, 0, 0, 128); */
glBegin(GL_TRIANGLES);