Gwork: 0.3.0Dev
Gwk::Platform::RelativeToExecutablePaths Class Reference

#include <PlatformCommon.h>

Inheritance diagram for Gwk::Platform::RelativeToExecutablePaths:
Gwk::ResourcePaths

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...
 

Detailed Description

Calculate resource paths relative to the executable. I.e. path = exe_dir + resource_dir + relative_path.

Constructor & Destructor Documentation

◆ RelativeToExecutablePaths()

Gwk::Platform::RelativeToExecutablePaths::RelativeToExecutablePaths ( String const &  resourceDir = String())

Constructor

Parameters
resourceDir: Optional directory, relative to the executable.

Member Function Documentation

◆ GetPath()

String Gwk::Platform::RelativeToExecutablePaths::GetPath ( Type  type,
String const &  relPath 
)
finalvirtual

Get full path to file.

Parameters
type: File resource type.
relPath: Relative path to file.
Returns
Path relative to the resource directory.

Implements Gwk::ResourcePaths.


The documentation for this class was generated from the following file: