osgEarth 2.1.1
Public Member Functions

CopyAndSetAlpha Struct Reference

List of all members.

Public Member Functions

bool operator() (const osg::Vec4 &in, osg::Vec4 &out)

Detailed Description

Definition at line 35 of file OSGTileSource.cpp.


Member Function Documentation

bool CopyAndSetAlpha::operator() ( const osg::Vec4 &  in,
osg::Vec4 &  out 
) [inline]

Definition at line 37 of file OSGTileSource.cpp.

                                                       {
        out = in;
        out.a() = 0.3333*(in.r() + in.g() + in.b());
        return true;
    }

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