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?
unsignedcharwidthLog,heightLog;// log2 of width and height of the base mip-level