Gwork: 0.3.0Dev |
#include <PlatformCommon.h>
Public Member Functions | |
RelativeToExecutablePaths (String const &resourceDir=String()) | |
String | GetPath (Type type, String const &relPath) final |
Additional Inherited Members | |
Public Types inherited from Gwk::ResourcePaths | |
enum | Type { Type::Font, Type::Texture, Type::Other, MaxType } |
Resource type. More... | |
Calculate resource paths relative to the executable. I.e. path = exe_dir + resource_dir + relative_path.
Gwk::Platform::RelativeToExecutablePaths::RelativeToExecutablePaths | ( | String const & | resourceDir = String() | ) |
Constructor
resourceDir | : Optional directory, relative to the executable. |
|
finalvirtual |
Get full path to file.
type | : File resource type. |
relPath | : Relative path to file. |
Implements Gwk::ResourcePaths.