diff options
author | Neil Roberts <neil@linux.intel.com> | 2012-04-04 15:09:43 +0100 |
---|---|---|
committer | Neil Roberts <neil@linux.intel.com> | 2012-04-04 17:02:23 +0100 |
commit | e7f158263072d03eb549f22007fd63384dd5c7ce (patch) | |
tree | 195a66ca8b269f1f34ecb1be0dd3407889a9e83a /cogl/cogl.h | |
parent | e7df2dbf79b7c5d40fb75452f8377a90d12eb910 (diff) | |
download | cogl-e7f158263072d03eb549f22007fd63384dd5c7ce.tar.gz |
Add a CoglPrimitiveTexture interface
This interface represents any textures that are backed by a single
texture in GL and that can be used directly with the
cogl_framebuffer_draw_attributes family of functions. This currently
equates to CoglTexture2D, CoglTexture3D and CoglTextureRectangle.
The interface currently has only one method called
cogl_primitive_set_auto_mipmap. This replaces the
COGL_TEXTURE_NO_AUTO_MIPMAP flag from the CoglTextureFlags parameter
in the constructors. None of the other flags in CoglTextureFlags make
sense for primitive textures so it doesn't seem like a good idea to
need them for primitive constructors.
There is a boolean in the vtable to mark whether a texture type is
primitive which the new cogl_is_primitive function uses. There is also
a new texture virtual called set_auto_mipmap which is only required to
be implemented for primitive textures.
Reviewed-by: Robert Bragg <robert@linux.intel.com>
Diffstat (limited to 'cogl/cogl.h')
-rw-r--r-- | cogl/cogl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cogl/cogl.h b/cogl/cogl.h index b27b7598..8663f955 100644 --- a/cogl/cogl.h +++ b/cogl/cogl.h @@ -89,6 +89,7 @@ #include <cogl/cogl-texture-2d-sliced.h> #include <cogl/cogl-sub-texture.h> #include <cogl/cogl-meta-texture.h> +#include <cogl/cogl-primitive-texture.h> #include <cogl/cogl-index-buffer.h> #include <cogl/cogl-attribute-buffer.h> #include <cogl/cogl-indices.h> |