EffectPropertyMap<MipMapFunction> mipmapFunctions(mipmapFunctionsInit);
MipMapTuple makeMipMapTuple(Effect* effect, const SGPropertyNode* props,
- const SGReaderWriterXMLOptions* options)
+ const SGReaderWriterOptions* options)
{
const SGPropertyNode* pMipmapR
= getEffectPropertyChild(effect, props, "function-r");
case PRODUCT: return computeProduct( c, colors, colorValid );
case MIN: return computeMin( c, colors, colorValid );
case MAX: return computeMax( c, colors, colorValid );
+ default: break;
}
return 0;
}
void dumpMipmap( std::string n, int s, int t, int r, int c, unsigned char *d, const osg::Image::MipmapDataType &o )
{
std::ofstream ofs( (n + ".dump").c_str() );
- for ( int i = 0; i < o.size()+1; ++i )
+ for ( osg::Image::MipmapDataType::size_type i = 0; i < o.size()+1; ++i )
{
ofs << s << " " << t << " " << r << std::endl;
unsigned int offset = 0;