Added support for 565 textures to osgbluemarble.

Added a osg::Image::scaleImage() version which allows the datatype to be varied.
This commit is contained in:
Robert Osfield
2003-10-29 23:10:11 +00:00
parent 1d81edeaab
commit fd016af34b
3 changed files with 9 additions and 5 deletions

View File

@@ -110,7 +110,10 @@ class SG_EXPORT Image : public Object
/** Scale image to specified size. */
void scaleImage(int s,int t,int r);
void scaleImage(int s,int t,int r) { scaleImage(s,t,r, getDataType()); }
/** Scale image to specified size and with specified data type. */
void scaleImage(int s,int t,int r, GLenum newDataType);
/** Copy a source Image into a subpart of this Image at specified position.
* Typically used to copy to an already allocated image, such as creating