osgEarth 2.1.1
Static Public Member Functions

anonymous_namespace{ImageUtils.cpp}::ColorReader< GL_UNSIGNED_BYTE_3_3_2, GLubyte > 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_BYTE_3_3_2, GLubyte >

Definition at line 801 of file ImageUtils.cpp.


Member Function Documentation

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

Definition at line 803 of file ImageUtils.cpp.

        {
              GLubyte p = *(const GLubyte*)ia->data(s,t,r,m);
            // internal format GL_R3_G3_B2 is implied
            return osg::Vec4( r3*(float)(p>>5), r3*(float)((p&0x28)>>2), r2*(float)(p&0x3), 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