Add GLAPIENTRY function decorations for correct operation on Windows.
[mesa.git] / src / mesa / main / texcompress.h
index 53571673f00db165253acf90f245ef2c99893c5e..457c1d7582de95044d753cc55fa743cd0832e477 100644 (file)
@@ -1,4 +1,3 @@
-/* $Id: texcompress.h,v 1.1 2002/09/27 02:45:38 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -29,7 +28,7 @@
 
 #include "mtypes.h"
 
-
+#if _HAVE_FULL_GL
 extern GLuint
 _mesa_get_compressed_formats( GLcontext *ctx, GLint *formats );
 
@@ -50,9 +49,16 @@ _mesa_compressed_image_address(GLint col, GLint row, GLint img,
 
 extern void
 _mesa_compress_teximage( GLcontext *ctx, GLsizei width, GLsizei height,
-                         GLenum srcFormat,
-                         const GLchan *source, GLint srcRowStride,
-                         GLenum dstformat, GLubyte *dest, GLint dstRowStride );
-
+                         GLenum srcFormat, const GLchan *source,
+                         GLint srcRowStride,
+                         const struct gl_texture_format *dstFormat,
+                         GLubyte *dest, GLint dstRowStride );
+#else
+#define _mesa_get_compressed_formats( c, f ) 0
+#define _mesa_compressed_texture_size( c, w, h, d, f ) 0
+#define _mesa_compressed_row_stride( f, w) 0
+#define _mesa_compressed_image_address(c, r, i, f, w, i2 ) 0
+#define _mesa_compress_teximage( c, w, h, sF, s, sRS, dF, d, drs ) ((void)0)
+#endif
 
 #endif /* TEXCOMPRESS_H */