From b007c2695ead1e484cf327765c47d8346f632447 Mon Sep 17 00:00:00 2001 From: scuri Date: Mon, 25 Oct 2010 18:29:06 +0000 Subject: *** empty log message *** --- include/im_convert.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/im_convert.h b/include/im_convert.h index 794eed9..9bca445 100644 --- a/include/im_convert.h +++ b/include/im_convert.h @@ -105,6 +105,11 @@ int imConvertToBitmap(const imImage* src_image, imImage* dst_image, int cpx2real * \ingroup convert */ void* imImageGetOpenGLData(const imImage* image, int *glformat); +/** Creates an image from an OpenGL data. + * + * \verbatim im.ImageCreateFromOpenGLData(width, height, glformat: number, gldata: userdata) -> image: imImage [in Lua 5] \endverbatim + * \ingroup convert */ +imImage* imImageCreateFromOpenGLData(int width, int height, int glformat, const void* gldata); /** \defgroup cnvutil Raw Data Conversion Utilities @@ -115,9 +120,10 @@ void* imImageGetOpenGLData(const imImage* image, int *glformat); * \ingroup imagerep */ -/** Changes the packing of the data buffer. Both must have the same depth. +/** Changes the packing of the data buffer. Both must have the same width, height and data_type. \n + * It can be used to copy data even if depth=1. * \ingroup cnvutil */ -void imConvertPacking(const void* src_data, void* dst_data, int width, int height, int depth, int data_type, int src_is_packed); +void imConvertPacking(const void* src_data, void* dst_data, int width, int height, int src_depth, int dst_depth, int data_type, int src_is_packed); /** Changes in-place a MAP data into a RGB data. The data must have room for the RGB image. \n * depth can be 3 or 4. count=width*height. \n -- cgit v1.2.3