int main (int argc, char *argv[]) { try { return Extractor().Run(argc, argv); } catch (const std::exception &e) { SimpleLogger().Write(logWARNING) << "[exception] " << e.what(); } }
) * one; } }; public: typedef FilteredImage<GLfloat, 4> Filtered; #if OGLPLUS_DOCUMENTATION_ONLY /// Creates a normal-map from the @p input height-map image /** * @param input the height-map image to be filtered * @param extractor the height map color component extractor (by * default the RED component of the image is used as the height-map * value used in normal-map calculation). */ template <typename Extractor = typename Filtered::FromRed> NormalMap(const Image& input, Extractor extractor = Extractor()); #endif #if !OGLPLUS_NO_FUNCTION_TEMPLATE_DEFAULT_ARGS template <typename Extractor = typename Filtered::FromRed> NormalMap(const Image& input, Extractor extractor = Extractor()) #else template <typename Extractor> NormalMap(const Image& input, Extractor extractor) #endif : Filtered( input, _filter(), Filtered::DefaultSampler(), extractor )
void initialize_process_set(std::set<T>& s, Admittance admit = Admittance(), Extractor extract = Extractor()) { InitializeProcessSet(s, ProcessSnapshot(), admit, extract); }
void initialize_process_list(std::vector<T>& v, Admittance admit = Admittance(), Extractor extract = Extractor()) { InitializeProcessList(v, ProcessSnapshot(), admit, extract); }