diff options
author | Neil Roberts <neil@linux.intel.com> | 2010-06-03 15:06:47 +0100 |
---|---|---|
committer | Neil Roberts <neil@linux.intel.com> | 2010-06-22 11:47:32 +0100 |
commit | f9f2f6bc6c91c5f554617fb1a0b57340d7875d9d (patch) | |
tree | 118e9bf6778cea4264185ba39f847e806ce43c96 /cogl/cogl-texture-2d-private.h | |
parent | 5a5b3914baef4e9664068f91987f964de799ee93 (diff) | |
download | cogl-f9f2f6bc6c91c5f554617fb1a0b57340d7875d9d.tar.gz |
Add _cogl_texture_2d_externally_modified
_cogl_texture_2d_externally_modified is a function specific to the
CoglTexture2D texture backend that should be called whenever the
contents of the texture are modified without the backend knowing about
it. It simply marks the mipmap tree as invalid.
Diffstat (limited to 'cogl/cogl-texture-2d-private.h')
-rw-r--r-- | cogl/cogl-texture-2d-private.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cogl/cogl-texture-2d-private.h b/cogl/cogl-texture-2d-private.h index fc9db814..33c71efe 100644 --- a/cogl/cogl-texture-2d-private.h +++ b/cogl/cogl-texture-2d-private.h @@ -67,4 +67,15 @@ _cogl_texture_2d_new_from_bitmap (CoglHandle bmp_handle, CoglTextureFlags flags, CoglPixelFormat internal_format); +/* + * _cogl_texture_2d_externally_modified: + * @handle: A handle to a 2D texture + * + * This should be called whenever the texture is modified other than + * by using cogl_texture_set_region. It will cause the mipmaps to be + * invalidated + */ +void +_cogl_texture_2d_externally_modified (CoglHandle handle); + #endif /* __COGL_TEXTURE_2D_H */ |