osgEarth 2.1.1
Static Public Member Functions

anonymous_namespace{ImageUtils.cpp}::ColorWriter< GL_ALPHA, T > Struct Template Reference

List of all members.

Static Public Member Functions

static void write (const ImageUtils::PixelWriter *iw, const osg::Vec4f &c, int s, int t, int r, int m)

Detailed Description

template<typename T>
struct anonymous_namespace{ImageUtils.cpp}::ColorWriter< GL_ALPHA, T >

Definition at line 619 of file ImageUtils.cpp.


Member Function Documentation

template<typename T >
static void anonymous_namespace{ImageUtils.cpp}::ColorWriter< GL_ALPHA, T >::write ( const ImageUtils::PixelWriter iw,
const osg::Vec4f &  c,
int  s,
int  t,
int  r,
int  m 
) [inline, static]

Definition at line 621 of file ImageUtils.cpp.

        {
            T* ptr = (T*)iw->data(s, t, r, m);
            (*ptr) = (GLubyte)(c.a() / GLTypeTraits<T>::scale());
        }

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