The Dirtchamber
A mixed reality testing environment for real-time global illumination algorithms
Namespaces | Functions
common_tools.h File Reference
#include "unicode.h"
#include <vector>

Go to the source code of this file.

Namespaces

 dune
 Direct3D helper library.
 

Functions

tstring dune::extract_path (const tstring &pattern)
 Extract a path from a given pattern, e.g. "C:/foo" from "C:/foo/\*.bar".
 
bool dune::path_is_relative (const tstring &p)
 Returns true if the supplied path p was a relative URI.
 
tstring dune::absolute_path ()
 Returns an absolute path of the current execution directory.
 
tstring dune::make_absolute_path (const tstring &relative_filename)
 Return an absolute URI to a URI relative to the execution directory. Thus function is used in every loader.
 
std::vector< tstring > dune::files_from_args (const tstring &args, const tstring &default_file=L"")
 Return a vector of strings from a given argument string. A default file will be pushed to the vector if args was empty.