From Chuck Seberion, added support reading ARB float format textures.

This commit is contained in:
Robert Osfield
2006-10-14 21:50:29 +00:00
parent 660cda57c8
commit f257285efc
2 changed files with 41 additions and 1 deletions

View File

@@ -46,6 +46,7 @@
#define GL_COMPRESSED_RGBA 0x84EE
#endif
namespace osg {
/** Image class for encapsulating the storage texture image data. */
@@ -210,6 +211,7 @@ class OSG_EXPORT Image : public Object
static bool isPackedType(GLenum type);
static GLenum computePixelFormat(GLenum pixelFormat);
static unsigned int computeNumComponents(GLenum pixelFormat);
static unsigned int computePixelSizeInBits(GLenum pixelFormat,GLenum type);
static unsigned int computeRowWidthInBytes(int width,GLenum pixelFormat,GLenum type,int packing);