osgEarth 2.1.1
Static Public Member Functions

anonymous_namespace{ImageUtils.cpp}::ColorReader< GL_ALPHA, 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_ALPHA, T >

Definition at line 608 of file ImageUtils.cpp.


Member Function Documentation

template<typename T >
static osg::Vec4 anonymous_namespace{ImageUtils.cpp}::ColorReader< GL_ALPHA, T >::read ( const ImageUtils::PixelReader ia,
int  s,
int  t,
int  r,
int  m 
) [inline, static]

Definition at line 610 of file ImageUtils.cpp.

        {
            const T* ptr = (const T*)ia->data(s, t, r, m);
            float a = float(*ptr) * GLTypeTraits<T>::scale();
            return osg::Vec4(1.0f, 1.0f, 1.0f, a);
        }

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