/* Copyright (c) Mark J. Kilgard, 1998. */ /* This program is freely distributable without licensing fees and is provided without guarantee or warrantee expressed or implied. This program is -not- in the public domain. */ /* drawmesh.c - draws mesh for constructing a sphere map */ #include #include "smapmesh.h" #if defined(GL_EXT_texture_object) && !defined(GL_VERSION_1_1) #define glBindTexture(A,B) glBindTextureEXT(A,B) #endif void drawSphereMapMesh(GLuint texobj[6]) { int side, i, j; /* five front and side faces */ for (side=0; side<5; side++) { /* bind to texture for given face of cube map */ glBindTexture(GL_TEXTURE_2D, texobj[side]); for (i=0; i