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 629 of file ImageUtils.cpp.
static osg::Vec4 anonymous_namespace{ImageUtils.cpp}::ColorReader< GL_LUMINANCE_ALPHA, T >::read | ( | const ImageUtils::PixelReader * | ia, |
int | s, | ||
int | t, | ||
int | r, | ||
int | m | ||
) | [inline, static] |
Definition at line 631 of file ImageUtils.cpp.
{ const T* ptr = (const T*)ia->data(s, t, r, m); float l = float(*ptr++) * GLTypeTraits<T>::scale(); float a = float(*ptr) * GLTypeTraits<T>::scale(); return osg::Vec4(l, l, l, a); }