Added osg::Image::setPixelFormat(..) and setInternalTextureFormat(), and
renamed osg::Image::pixelFormat(), internalTextureFormat(),dataType() to osg::Image::getPixelFormat() etc. These changes are to bring it more into line with the style of the rest of the OSG. Updated the rest of the distribution to take account for these names changes.
This commit is contained in:
@@ -85,15 +85,15 @@ void DrawPixels::drawImmediateMode(State&)
|
||||
{
|
||||
const GLvoid* pixels = _image->data();
|
||||
glDrawPixels(_width,_height,
|
||||
(GLenum)_image->pixelFormat(),
|
||||
(GLenum)_image->dataType(),
|
||||
(GLenum)_image->getPixelFormat(),
|
||||
(GLenum)_image->getDataType(),
|
||||
pixels);
|
||||
}
|
||||
else
|
||||
{
|
||||
glDrawPixels(_image->s(), _image->t(),
|
||||
(GLenum)_image->pixelFormat(),
|
||||
(GLenum)_image->dataType(),
|
||||
(GLenum)_image->getPixelFormat(),
|
||||
(GLenum)_image->getDataType(),
|
||||
_image->data() );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user