diff options
author | Neil Roberts <neil@linux.intel.com> | 2010-10-04 15:27:38 +0100 |
---|---|---|
committer | Neil Roberts <neil@linux.intel.com> | 2010-10-22 12:19:02 +0100 |
commit | b540dcb75a45c2f39c59752e5d582d6299da38d5 (patch) | |
tree | 96c5a5c7e3b6f655eeca87f01732044424b53acb /cogl/cogl-texture-rectangle-private.h | |
parent | c6977cdb13fd0c2743863edddf9e2e18b7725203 (diff) | |
download | cogl-b540dcb75a45c2f39c59752e5d582d6299da38d5.tar.gz |
Support foreign textures in the texture-2d and rectangle backends
This adds two new internal functions to create a foreign texture for
the texture 2d and rectangle backends. cogl_texture_new_from_foreign
will now use one of these backends directly if there is no waste
instead of always using the sliced texture backend.
Diffstat (limited to 'cogl/cogl-texture-rectangle-private.h')
-rw-r--r-- | cogl/cogl-texture-rectangle-private.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cogl/cogl-texture-rectangle-private.h b/cogl/cogl-texture-rectangle-private.h index 6f5313c1..48f3455e 100644 --- a/cogl/cogl-texture-rectangle-private.h +++ b/cogl/cogl-texture-rectangle-private.h @@ -49,6 +49,7 @@ struct _CoglTextureRectangle GLenum mag_filter; GLint wrap_mode_s; GLint wrap_mode_t; + gboolean is_foreign; }; GQuark @@ -65,4 +66,10 @@ _cogl_texture_rectangle_new_from_bitmap (CoglBitmap *bmp, CoglTextureFlags flags, CoglPixelFormat internal_format); +CoglHandle +_cogl_texture_rectangle_new_from_foreign (GLuint gl_handle, + GLuint width, + GLuint height, + CoglPixelFormat format); + #endif /* __COGL_TEXTURE_RECTANGLE_H */ |