osgEarth 2.1.1
|
Static Public Member Functions | |
static osg::Vec4 | read (const ImageUtils::PixelReader *ia, int s, int t, int r, int m) |
Definition at line 704 of file ImageUtils.cpp.
static osg::Vec4 anonymous_namespace{ImageUtils.cpp}::ColorReader< GL_BGR, T >::read | ( | const ImageUtils::PixelReader * | ia, |
int | s, | ||
int | t, | ||
int | r, | ||
int | m | ||
) | [inline, static] |
Definition at line 706 of file ImageUtils.cpp.
{ const T* ptr = (const T*)ia->data(s, t, r, m); float b = float(*ptr) * GLTypeTraits<T>::scale(); float g = float(*ptr++) * GLTypeTraits<T>::scale(); float d = float(*ptr++) * GLTypeTraits<T>::scale(); return osg::Vec4(d, g, b, 1.0f); }