You.i Engine
CYITextureFactory Class Reference

#include <renderer/YiTextureFactory.h>

Static Public Member Functions

static std::shared_ptr< CYIAssetTextureCreateAsset ()
 
static std::shared_ptr< CYIAssetTextureBaseCreateAsset (const CYIString &filename, CYIImageAssetLoadParams *pDecodeParams=nullptr)
 
static std::shared_ptr< CYIAssetTextureBaseCreateAssetFromPath (const CYIString &path, CYIImageAssetLoadParams *pDecodeParams=nullptr)
 
static std::shared_ptr< CYIAssetTextureBaseCreateAsset (const uint8_t *pData, uint32_t size, CYIImageAssetLoadParams *pDecodeParams=nullptr)
 
static std::shared_ptr< CYIAssetTextureBaseCreateAssetFromPath (const CYIRuntimeTypeInfo &info, const CYIString &path, CYIImageAssetLoadParams *pDecodeParams=nullptr)
 
static std::shared_ptr< CYIAssetTextureBaseCreateAsset (const CYIRuntimeTypeInfo &info, const uint8_t *pData, uint32_t size, CYIImageAssetLoadParams *pDecodeParams=nullptr)
 
static std::shared_ptr< CYIAssetTextureBaseCreateAsset (const CYIRuntimeTypeInfo &info, const CYIString &filename, CYIImageAssetLoadParams *pDecodeParams=nullptr)
 

Member Function Documentation

◆ CreateAsset() [1/5]

static std::shared_ptr<CYIAssetTexture> CYITextureFactory::CreateAsset ( )
static

Creates an empty CYIAssetTexture asset.

◆ CreateAsset() [2/5]

static std::shared_ptr<CYIAssetTextureBase> CYITextureFactory::CreateAsset ( const CYIString filename,
CYIImageAssetLoadParams pDecodeParams = nullptr 
)
static

Creates a CYIAssetTextureBase asset from filename.

◆ CreateAsset() [3/5]

static std::shared_ptr<CYIAssetTextureBase> CYITextureFactory::CreateAsset ( const uint8_t *  pData,
uint32_t  size,
CYIImageAssetLoadParams pDecodeParams = nullptr 
)
static

Creates a CYIAssetTextureBase asset from pData.

◆ CreateAsset() [4/5]

static std::shared_ptr<CYIAssetTextureBase> CYITextureFactory::CreateAsset ( const CYIRuntimeTypeInfo info,
const uint8_t *  pData,
uint32_t  size,
CYIImageAssetLoadParams pDecodeParams = nullptr 
)
static

Creates a CYIAssetTextureBase asset from pData using runtime type info.

See also
CreateAssetFromPath

◆ CreateAsset() [5/5]

static std::shared_ptr<CYIAssetTextureBase> CYITextureFactory::CreateAsset ( const CYIRuntimeTypeInfo info,
const CYIString filename,
CYIImageAssetLoadParams pDecodeParams = nullptr 
)
static

Creates a CYIAssetTextureBase asset from filename using runtime type info.

See also
CreateAssetFromPath

◆ CreateAssetFromPath() [1/2]

static std::shared_ptr<CYIAssetTextureBase> CYITextureFactory::CreateAssetFromPath ( const CYIString path,
CYIImageAssetLoadParams pDecodeParams = nullptr 
)
static

Creates a CYIAssetTextureBase asset from path.

◆ CreateAssetFromPath() [2/2]

static std::shared_ptr<CYIAssetTextureBase> CYITextureFactory::CreateAssetFromPath ( const CYIRuntimeTypeInfo info,
const CYIString path,
CYIImageAssetLoadParams pDecodeParams = nullptr 
)
static

Creates a CYIAssetTextureBase asset frompath using runtime type info. The runtime type info is used to determine which decoder to use for loading the asset.

Note
The given CYIRuntimeTypeInfo must be CYIAssetTextureBase or a subclass.

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