osgEarth 2.1.1
Static Public Member Functions

anonymous_namespace{ImageUtils.cpp}::ColorReader< GL_BGR, T > Struct Template Reference

List of all members.

Static Public Member Functions

static osg::Vec4 read (const ImageUtils::PixelReader *ia, int s, int t, int r, int m)

Detailed Description

template<typename T>
struct anonymous_namespace{ImageUtils.cpp}::ColorReader< GL_BGR, T >

Definition at line 704 of file ImageUtils.cpp.


Member Function Documentation

template<typename T >
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);
        }

Here is the call graph for this function:


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines