summaryrefslogtreecommitdiff
path: root/cogl/cogl-texture.c
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2013-06-27 18:33:04 +0100
committerRobert Bragg <robert@linux.intel.com>2014-01-01 17:43:06 +0000
commitffde82981f22bd0185a7f33e1e6e1479f4c295b8 (patch)
tree44c42a1ca4c99ec23020b13a65a0b7e5ced5d54b /cogl/cogl-texture.c
parent83b05cbe3969789bc3ec78480c0937a6722efbf1 (diff)
downloadcogl-ffde82981f22bd0185a7f33e1e6e1479f4c295b8.tar.gz
texture: make cogl_texture_get_format api private
CoglPixelFormat is not a good way of describing the internal format of a texture because it's too specific given that we don't actually have exact knowledge of the internal format used by the driver. This makes cogl_texture_get_format private and in the future we'll provide a better way of querying the channels and their precision. Reviewed-by: Neil Roberts <neil@linux.intel.com>
Diffstat (limited to 'cogl/cogl-texture.c')
-rw-r--r--cogl/cogl-texture.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cogl/cogl-texture.c b/cogl/cogl-texture.c
index 515fb43a..a2df38d7 100644
--- a/cogl/cogl-texture.c
+++ b/cogl/cogl-texture.c
@@ -183,7 +183,7 @@ cogl_texture_get_height (CoglTexture *texture)
}
CoglPixelFormat
-cogl_texture_get_format (CoglTexture *texture)
+_cogl_texture_get_format (CoglTexture *texture)
{
if (!texture->allocated)
cogl_texture_allocate (texture, NULL);
@@ -353,7 +353,7 @@ cogl_texture_set_region_from_bitmap (CoglTexture *texture,
/* Note that we don't prepare the bitmap for upload here because
some backends may be internally using a different format for the
actual GL texture than that reported by
- cogl_texture_get_format. For example the atlas textures are
+ _cogl_texture_get_format. For example the atlas textures are
always stored in an RGBA texture even if the texture format is
advertised as RGB. */
@@ -614,7 +614,7 @@ cogl_texture_draw_and_read_to_bitmap (CoglTexture *texture,
*
* TODO: verify if this is still an issue
*/
- if ((cogl_texture_get_format (texture) & COGL_A_BIT)/* && a_bits == 0*/)
+ if ((_cogl_texture_get_format (texture) & COGL_A_BIT)/* && a_bits == 0*/)
{
uint8_t *srcdata;
uint8_t *dstdata;
@@ -904,7 +904,7 @@ cogl_texture_get_data (CoglTexture *texture,
CoglTextureGetData tg_data;
- texture_format = cogl_texture_get_format (texture);
+ texture_format = _cogl_texture_get_format (texture);
/* Default to internal format if none specified */
if (format == COGL_PIXEL_FORMAT_ANY)