diff options
author | Neil Roberts <neil@linux.intel.com> | 2012-02-25 19:23:51 +0000 |
---|---|---|
committer | Neil Roberts <neil@linux.intel.com> | 2012-03-05 18:16:10 +0000 |
commit | 10a38bb14fac3ba8dc05115feb04bde56dc590e7 (patch) | |
tree | 4ce5f5fd788549fb7e087e15f1c8e5acb1c8197b /cogl/cogl-private.h | |
parent | 2501899044759a4e9bd91b78cf622b61bad7d0fb (diff) | |
download | cogl-10a38bb14fac3ba8dc05115feb04bde56dc590e7.tar.gz |
Add a public cogl_framebuffer_read_pixels_into_bitmap
This adds a public function to read pixels from a framebuffer into a
CoglBitmap. This replaces the internal function
_cogl_read_pixels_with_rowstride because a CoglBitmap contains a
rowstride so it can be used for the same purpose. A CoglBitmap already
has public API to make one that points to a CoglPixelBuffer so this
function can be used to read pixels into a PBO. It also avoids the
need to push the framebuffer on to the context's stack so it provides
a function which can be used in the 2.0 API after the stack is
removed.
Reviewed-by: Robert Bragg <robert@linux.intel.com>
Diffstat (limited to 'cogl/cogl-private.h')
-rw-r--r-- | cogl/cogl-private.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/cogl/cogl-private.h b/cogl/cogl-private.h index 41275fe4..6130c113 100644 --- a/cogl/cogl-private.h +++ b/cogl/cogl-private.h @@ -45,16 +45,6 @@ void _cogl_clear (const CoglColor *color, unsigned long buffers); void -_cogl_read_pixels_with_rowstride (int x, - int y, - int width, - int height, - CoglReadPixelsFlags source, - CoglPixelFormat format, - guint8 *pixels, - int rowstride); - -void _cogl_init (void); void |