diff options
author | Robert Bragg <robert@linux.intel.com> | 2012-11-08 20:33:00 +0000 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2013-01-22 17:48:07 +0000 |
commit | 07d47eadd370520594e449adeb2295d0f03cac58 (patch) | |
tree | dcec4981664d99e7615284eb9de93a3caa2c9452 /cogl/cogl-texture-private.h | |
parent | e439bdd12ff82a3d8d4107db663d5ada58f67fe8 (diff) | |
download | cogl-07d47eadd370520594e449adeb2295d0f03cac58.tar.gz |
texture: split out high-level texture constructors
This splits out the very high level texture constructors that may
internally construct one of several types of lower level texture due to
various constraints.
This also updates the prototypes for these constructors to take an
explicit context pointer and return a CoglError consistent with other
texture constructors.
Reviewed-by: Neil Roberts <neil@linux.intel.com>
(cherry picked from commit a1cabfae6ad50c51006c608cdde7d631b7832e71)
Diffstat (limited to 'cogl/cogl-texture-private.h')
-rw-r--r-- | cogl/cogl-texture-private.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cogl/cogl-texture-private.h b/cogl/cogl-texture-private.h index 51fdf0bd..c862ecd1 100644 --- a/cogl/cogl-texture-private.h +++ b/cogl/cogl-texture-private.h @@ -312,4 +312,8 @@ _cogl_texture_set_region_from_bitmap (CoglTexture *texture, CoglBitmap *bmp, CoglError **error); +CoglBool +_cogl_texture_needs_premult_conversion (CoglPixelFormat src_format, + CoglPixelFormat dst_format); + #endif /* __COGL_TEXTURE_PRIVATE_H */ |