summaryrefslogtreecommitdiff
path: root/cogl/cogl-texture-driver.h
diff options
context:
space:
mode:
authorVladimir Nadvornik <nadvornik@suse.cz>2009-08-30 12:36:11 +0200
committerRobert Bragg <robert@linux.intel.com>2009-10-16 18:58:51 +0100
commit65015a137e8e1b2957e219c08dc9ae823ef5b527 (patch)
tree299324026a6bdc9f5db6c90b1fc5fecfaa47f7b7 /cogl/cogl-texture-driver.h
parentc40d5ae9eaff0f7ace613a4c530a2219f6cbe6c3 (diff)
downloadcogl-65015a137e8e1b2957e219c08dc9ae823ef5b527.tar.gz
[cogl-texture] Split CoglTexture into an abstract class + CoglTexture2dSliced
cogl-texture-2d-sliced provides an implementation of CoglTexture and this seperation lays the foundation for potentially supporting atlas textures, pixmap textures (as in GLX_EXT_texture_from_pixmap) and fast-path GL_TEXTURE_{1D,2D,3D,RECTANGLE} textures in a maintainable fashion.
Diffstat (limited to 'cogl/cogl-texture-driver.h')
-rw-r--r--cogl/cogl-texture-driver.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/cogl/cogl-texture-driver.h b/cogl/cogl-texture-driver.h
index f2443d0b..6d6b560f 100644
--- a/cogl/cogl-texture-driver.h
+++ b/cogl/cogl-texture-driver.h
@@ -92,6 +92,18 @@ _cogl_texture_driver_download_from_gl (CoglTexture *tex,
GLuint target_gl_type);
/*
+ * This driver abstraction is needed because GLES doesn't support glGetTexImage
+ * (). On GLES this currently just returns FALSE which will lead to a generic
+ * fallback path being used that simply renders the texture and reads it back
+ * from the framebuffer. (See _cogl_texture_draw_and_read () )
+ */
+gboolean
+_cogl_texture_driver_gl_get_tex_image (GLenum gl_target,
+ GLenum dest_gl_format,
+ GLenum dest_gl_type,
+ guint8 *dest);
+
+/*
* It may depend on the driver as to what texture sizes are supported...
*/
gboolean