diff options
author | Brian Paul <[email protected]> | 2000-06-06 17:03:38 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-06-06 17:03:38 +0000 |
commit | 9540a1dbcf213645b23c6cd9284e92a1152cca05 (patch) | |
tree | b9eb2340c03455f2a9adc3bfd5646dab3a10ac04 /src/mesa/main/dd.h | |
parent | c470d8663341faed6943a52a3b307e89b52a24ba (diff) |
more work on GL_ARB_texture_compression
Diffstat (limited to 'src/mesa/main/dd.h')
-rw-r--r-- | src/mesa/main/dd.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index 106d99d780f..ad389df4a5d 100644 --- a/src/mesa/main/dd.h +++ b/src/mesa/main/dd.h @@ -667,6 +667,47 @@ struct dd_function_table { * should do the job. */ + GLboolean (*CompressedTexSubImage1D)( GLcontext *ctx, GLenum target, + GLint level, GLint xoffset, + GLsizei width, GLenum format, + GLsizei imageSize, const GLvoid *data, + struct gl_texture_object *texObj, + struct gl_texture_image *texImage ); + GLboolean (*CompressedTexSubImage2D)( GLcontext *ctx, GLenum target, + GLint level, GLint xoffset, + GLint yoffset, GLsizei width, + GLint height, GLenum format, + GLsizei imageSize, const GLvoid *data, + struct gl_texture_object *texObj, + struct gl_texture_image *texImage ); + GLboolean (*CompressedTexSubImage3D)( GLcontext *ctx, GLenum target, + GLint level, GLint xoffset, + GLint yoffset, GLint zoffset, + GLsizei width, GLint height, + GLint depth, GLenum format, + GLsizei imageSize, const GLvoid *data, + struct gl_texture_object *texObj, + struct gl_texture_image *texImage ); + /* Called by glCompressedTexSubImage1/2/3D. + * Arguments: + * <target>, <level>, <x/z/zoffset>, <width>, <height>, <depth>, + * <imageSize>, and <data> are user specified. + * <texObj> is the target texture object. + * <texImage> is the target texture image. It will have the texture + * width, height, depth, border and internalFormat information. + * Return GL_TRUE if operation completed, return GL_FALSE if core Mesa + * should do the job. + */ + + void (*GetCompressedTexImage)( GLcontext *ctx, GLenum target, + GLint lod, void *image, + const struct gl_texture_object *texObj, + struct gl_texture_image *texImage ); + /* Called by glGetCompressedTexImageARB. + * <target>, <lod>, <image> are specified by user. + * <texObj> is the source texture object. + * <texImage> is the source texture image. + */ void (*TexEnv)( GLcontext *ctx, GLenum target, GLenum pname, const GLfloat *param ); |