texload.[ch]: use const in function definitions where appropriate.
"Ack! unknown usemtl name = %s in %s\n",
material, path);
} else {
- fragment.material_ptr = &(*myfind).second;
+ fragment.material_ptr = &((*myfind).second);
}
// initialize the fragment transformation matrix
// $Log$
+// Revision 1.23 1998/08/20 15:16:43 curt
+// obj.cxx: use more explicit parenthases.
+// texload.[ch]: use const in function definitions where appropriate.
+//
// Revision 1.22 1998/08/20 15:12:03 curt
// Used a forward declaration of classes fgTILE and fgMATERIAL to eliminate
// the need for "void" pointers and casts.
}
}
-static ImageRec *ImageOpen(char *fileName)
+static ImageRec *ImageOpen(const char *fileName)
{
union {
int testWord;
}
GLubyte *
-read_alpha_texture(char *name, int *width, int *height)
+read_alpha_texture(const char *name, int *width, int *height)
{
unsigned char *base, *lptr;
ImageRec *image;
}
GLubyte *
-read_rgb_texture(char *name, int *width, int *height)
+read_rgb_texture(const char *name, int *width, int *height)
{
unsigned char *base, *ptr;
unsigned char *rbuf, *gbuf, *bbuf, *abuf;
#endif
-extern GLubyte *read_alpha_texture(char *name, int *width, int *height);
-extern GLubyte * read_rgb_texture(char *name, int *width, int *height);
+extern GLubyte *read_alpha_texture(const char *name, int *width, int *height);
+extern GLubyte * read_rgb_texture(const char *name, int *width, int *height);
#ifdef __cplusplus