osgEarth 2.1.1
Static Public Member Functions

anonymous_namespace{ImageUtils.cpp}::ColorReader< GL_UNSIGNED_SHORT_5_5_5_1, GLushort > 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<>
struct anonymous_namespace{ImageUtils.cpp}::ColorReader< GL_UNSIGNED_SHORT_5_5_5_1, GLushort >

Definition at line 774 of file ImageUtils.cpp.


Member Function Documentation

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

Definition at line 776 of file ImageUtils.cpp.

        {
            GLushort p = *(const GLushort*)ia->data(s, t, r, m);
            //internal format GL_RGB5_A1 is implied
            return osg::Vec4( r5*(float)(p>>11), r5*(float)((p&0x7c0)>>6), r5*((p&0x3e)>>1), (float)(p&0x1));
        }

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