Added int packing parameter to Image::readPixels(..)

This commit is contained in:
Robert Osfield
2012-03-29 08:27:21 +00:00
parent 055e1258ea
commit 59d6931b59
2 changed files with 3 additions and 3 deletions

View File

@@ -170,7 +170,7 @@ class OSG_EXPORT Image : public BufferData
* Create memory for storage if required, reuse existing pixel coords if possible.
*/
virtual void readPixels(int x,int y,int width,int height,
GLenum pixelFormat,GLenum type);
GLenum pixelFormat, GLenum type, int packing=1);
/** Read the contents of the current bound texture, handling compressed pixelFormats if present.