this->widthLog=(uchar)(std::log(mipmaps[0].cols)/CV_LOG2+0.0001f);// std::epsilon or something? or why 0.0001f here?
this->heightLog=(uchar)(std::log(mipmaps[0].rows)/CV_LOG2+0.0001f);// Changed std::logf to std::log because it doesnt compile in linux (gcc 4.8). CHECK THAT
};
std::vector<cv::Mat>mipmaps;// make Texture a friend class of renderer, then move this to private?
if(currWidth>1)
unsignedcharwidthLog,heightLog;// log2 of width and height of the base mip-level
currWidth>>=1;
if(currHeight>1)
currHeight>>=1;
}
texture.mipmaps=mipmaps;
texture.widthLog=(uchar)(std::log(mipmaps[0].cols)/CV_LOG2+0.0001f);// std::epsilon or something? or why 0.0001f here?
texture.heightLog=(uchar)(std::log(mipmaps[0].rows)/CV_LOG2+0.0001f);// Changed std::logf to std::log because it doesnt compile in linux (gcc 4.8). CHECK THAT