summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/image.h
diff options
context:
space:
mode:
authornobled <[email protected]>2011-10-18 20:50:16 +0000
committernobled <[email protected]>2011-12-08 21:20:25 +0000
commit4a2b9b53052a74e71aac59592e95e3910b5b7da5 (patch)
tree1990619691b5797683a5d01fba70bda0ec13b42b /src/mesa/main/image.h
parentf22421e9b9ae08512d02927c85e8a7c69867856f (diff)
mesa: add _mesa_image_offset()
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/image.h')
-rw-r--r--src/mesa/main/image.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/image.h b/src/mesa/main/image.h
index b606545b7fb..e4961ed3df0 100644
--- a/src/mesa/main/image.h
+++ b/src/mesa/main/image.h
@@ -87,6 +87,13 @@ _mesa_is_compressed_format(struct gl_context *ctx, GLenum format);
extern GLboolean
_mesa_base_format_has_channel(GLenum base_format, GLenum pname);
+extern GLintptr
+_mesa_image_offset( GLuint dimensions,
+ const struct gl_pixelstore_attrib *packing,
+ GLsizei width, GLsizei height,
+ GLenum format, GLenum type,
+ GLint img, GLint row, GLint column );
+
extern GLvoid *
_mesa_image_address( GLuint dimensions,
const struct gl_pixelstore_attrib *packing,