typedef struct {
int type; /* package type. 0 = to-92, 1 = to-220 */
GLfloat tw, th; /* texture dimensions */
- int tnum; /* texture binding */
+ GLuint tnum; /* texture binding */
} Transistor;
typedef struct {
void DrawThreeFive(ThreeFive *);
void DrawSwitch(Switch *);
-void freetexture(int);
+void freetexture(GLuint);
void reorder(Component *[]);
void circle(float, int,int);
void bandedCylinder(float, float , GLfloat, GLfloat , GLfloat, Band **, int);
glFlush();
}
-void freetexture (int texture) {
+void freetexture (GLuint texture) {
s_refs[texture]--;
if (s_refs[texture] < 1) {
glDeleteTextures(1, &texture);
GL_RGBA, GL_UNSIGNED_BYTE, ximage->data);
if (status)
{
- const char *s = gluErrorString (status);
+ const char *s = (char *) gluErrorString (status);
fprintf (stderr, "%s: error mipmapping %dx%d texture: %s\n",
progname, ximage->width, ximage->height,
(s ? s : "(unknown)"));