From Farshid Lashkari, "I've added support for reading contents of cubemap textures to the osg::Image::readImageFromCurrentTexture method. I added a new parameter to the method for specifying which face of the cubemap to read."

This commit is contained in:
Robert Osfield
2012-03-08 16:05:17 +00:00
parent 71893c46e5
commit fef2628d00
2 changed files with 29 additions and 3 deletions

View File

@@ -176,7 +176,7 @@ class OSG_EXPORT Image : public BufferData
/** Read the contents of the current bound texture, handling compressed pixelFormats if present.
* Create memory for storage if required, reuse existing pixel coords if possible.
*/
virtual void readImageFromCurrentTexture(unsigned int contextID, bool copyMipMapsIfAvailable, GLenum type = GL_UNSIGNED_BYTE);
virtual void readImageFromCurrentTexture(unsigned int contextID, bool copyMipMapsIfAvailable, GLenum type = GL_UNSIGNED_BYTE, unsigned int face = 0);
/** Scale image to specified size. */