diff options
Diffstat (limited to 'cogl/cogl-texture-private.h')
-rw-r--r-- | cogl/cogl-texture-private.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/cogl/cogl-texture-private.h b/cogl/cogl-texture-private.h index 59567f25..0feaeb01 100644 --- a/cogl/cogl-texture-private.h +++ b/cogl/cogl-texture-private.h @@ -279,9 +279,9 @@ void _cogl_texture_ensure_non_quad_rendering (CoglTexture *texture); /* - * This determines a CoglPixelFormat according to texture::components - * and texture::premultiplied (i.e. the user required components and - * whether the texture should be considered premultiplied) + * This determines a CoglPixelFormat according to @components and + * @premultiplied (i.e. the user required components and whether the + * texture should be considered premultiplied) * * A reference/source format can be given (or COGL_PIXEL_FORMAT_ANY) * and wherever possible this function tries to simply return the @@ -291,6 +291,15 @@ _cogl_texture_ensure_non_quad_rendering (CoglTexture *texture); * how to convert a source image in preparation for uploading. */ CoglPixelFormat +_cogl_texture_derive_format (CoglContext *ctx, + CoglPixelFormat src_format, + CoglTextureComponents components, + CoglBool premultiplied); + +/* This is a thin wrapper around _cogl_texture_derive_format + * that simply passes texture->context, texture->components and + * texture->premultiplied in as arguments */ +CoglPixelFormat _cogl_texture_determine_internal_format (CoglTexture *texture, CoglPixelFormat src_format); |