Public Member Functions | Protected Attributes | Friends | List of all members
ion::CAssetManager Class Reference

#include <CAssetManager.h>

Inheritance diagram for ion::CAssetManager:
Inheritance graph
[legend]
Collaboration diagram for ion::CAssetManager:
Collaboration graph
[legend]

Public Member Functions

void Init (CGraphicsAPI *GraphicsAPI)
 
SharedPointer< Graphics::IShaderLoadShader (string const &Name)
 
CImageLoadImage (string const &FileName)
 
SharedPointer< Graphics::ITexture2DLoadTexture (string const &FileName, Graphics::ITexture::EMipMaps const MipMaps=Graphics::ITexture::EMipMaps::True)
 
SharedPointer< Graphics::ITexture3DLoad3DTexture (const std::vector< std::string > &fileName, Graphics::ITexture::EMipMaps const MipMaps=Graphics::ITexture::EMipMaps::True)
 
SharedPointer< Graphics::ITexture2DArrayLoad2DTextureArray (const std::vector< std::string > &fileName, Graphics::ITexture::EMipMaps const MipMaps=Graphics::ITexture::EMipMaps::True)
 
SharedPointer< Graphics::ITextureCubeMapLoadCubeMapTexture (string const &FileNameLeft, string const &FileNameRight, string const &FileNameUp, string const &FileNameDown, string const &FileNameFront, string const &FileNameBack, Graphics::ITexture::EMipMaps const MipMaps=Graphics::ITexture::EMipMaps::True)
 
Scene::CSimpleMeshLoadMesh (string const &FileName)
 
Scene::CSimpleMeshLoadMeshMerged (string const &FileName)
 
vector< Scene::CSimpleMesh * > LoadMeshes (string const &FileName)
 
void AddAssetPath (string const &Path)
 
void SetTexturePath (string const &Path)
 
void SetShaderPath (string const &Path)
 
void SetMeshPath (string const &Path)
 
string ParseShaderSource (string const &FileName, string const &RelativeDirectory)
 

Protected Attributes

SingletonPointer< CGraphicsAPIGraphicsAPI
 
vector< string > AssetPaths
 
string TexturePath = "Textures/"
 
string ShaderPath = "Shaders/"
 
string MeshPath = "Meshes/"
 

Friends

class Singleton< CAssetManager >
 

Additional Inherited Members

- Static Public Member Functions inherited from ion::Singleton< CAssetManager >
static CAssetManagerGet ()
 
static CAssetManagerGetPointer ()
 
- Protected Member Functions inherited from ion::Singleton< CAssetManager >
 Singleton ()
 

Member Function Documentation

void ion::CAssetManager::AddAssetPath ( string const &  Path)
void ion::CAssetManager::Init ( CGraphicsAPI GraphicsAPI)
SharedPointer< Graphics::ITexture2DArray > ion::CAssetManager::Load2DTextureArray ( const std::vector< std::string > &  fileName,
Graphics::ITexture::EMipMaps const  MipMaps = Graphics::ITexture::EMipMaps::True 
)
SharedPointer< Graphics::ITexture3D > ion::CAssetManager::Load3DTexture ( const std::vector< std::string > &  fileName,
Graphics::ITexture::EMipMaps const  MipMaps = Graphics::ITexture::EMipMaps::True 
)
SharedPointer< Graphics::ITextureCubeMap > ion::CAssetManager::LoadCubeMapTexture ( string const &  FileNameLeft,
string const &  FileNameRight,
string const &  FileNameUp,
string const &  FileNameDown,
string const &  FileNameFront,
string const &  FileNameBack,
Graphics::ITexture::EMipMaps const  MipMaps = Graphics::ITexture::EMipMaps::True 
)
CImage * ion::CAssetManager::LoadImage ( string const &  FileName)
Scene::CSimpleMesh * ion::CAssetManager::LoadMesh ( string const &  FileName)
vector< Scene::CSimpleMesh * > ion::CAssetManager::LoadMeshes ( string const &  FileName)
Scene::CSimpleMesh * ion::CAssetManager::LoadMeshMerged ( string const &  FileName)
SharedPointer< Graphics::IShader > ion::CAssetManager::LoadShader ( string const &  Name)
SharedPointer< Graphics::ITexture2D > ion::CAssetManager::LoadTexture ( string const &  FileName,
Graphics::ITexture::EMipMaps const  MipMaps = Graphics::ITexture::EMipMaps::True 
)
string ion::CAssetManager::ParseShaderSource ( string const &  FileName,
string const &  RelativeDirectory 
)
void ion::CAssetManager::SetMeshPath ( string const &  Path)
void ion::CAssetManager::SetShaderPath ( string const &  Path)
void ion::CAssetManager::SetTexturePath ( string const &  Path)

Friends And Related Function Documentation

friend class Singleton< CAssetManager >
friend

Member Data Documentation

vector<string> ion::CAssetManager::AssetPaths
protected
SingletonPointer<CGraphicsAPI> ion::CAssetManager::GraphicsAPI
protected
string ion::CAssetManager::MeshPath = "Meshes/"
protected
string ion::CAssetManager::ShaderPath = "Shaders/"
protected
string ion::CAssetManager::TexturePath = "Textures/"
protected

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