-/* $Id: teximage.c,v 1.24 2000/03/22 17:38:11 brianp Exp $ */
+/* $Id: teximage.c,v 1.25 2000/03/23 16:23:14 brianp Exp $ */
/*
* Mesa 3-D graphics library
* GL_LUMANCE_ALPHA, GL_INTENSITY, GL_RGB, or GL_RGBA.
* Return -1 if invalid enum.
*/
-static GLint
-decode_internal_format( GLint format )
+GLint
+_mesa_base_tex_format( GLint format )
{
switch (format) {
case GL_ALPHA:
{
ASSERT(img);
ASSERT(!img->Data);
- img->Format = (GLenum) decode_internal_format(internalFormat);
+ img->Format = (GLenum) _mesa_base_tex_format(internalFormat);
set_teximage_component_sizes( img );
img->IntFormat = (GLenum) internalFormat;
img->Border = border;
return GL_TRUE;
}
- iformat = decode_internal_format( internalFormat );
+ iformat = _mesa_base_tex_format( internalFormat );
if (iformat < 0) {
if (!isProxy) {
char message[100];
return GL_TRUE;
}
- iformat = decode_internal_format( internalFormat );
+ iformat = _mesa_base_tex_format( internalFormat );
if (iformat < 0) {
char message[100];
sprintf(message, "glCopyTexImage%dD(internalFormat)", dimensions);
-/* $Id: teximage.h,v 1.4 2000/01/31 23:10:16 brianp Exp $ */
+/* $Id: teximage.h,v 1.5 2000/03/23 16:23:14 brianp Exp $ */
/*
* Mesa 3-D graphics library
/*** Internal functions ***/
+extern GLint
+_mesa_base_tex_format( GLint format );
+
+
extern struct gl_texture_image *
gl_alloc_texture_image( void );