List of all members.
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);
return osg::Vec4( r5*(float)(p>>11), r5*(float)((p&0x7c0)>>6), r5*((p&0x3e)>>1), (float)(p&0x1));
}
The documentation for this struct was generated from the following file: