KCGStudyDXLibProject
読み取り中…
検索中…
一致する文字列を見つけられません
Utility::ModelCacheManager クラス

モデルキャッシュ管理 [詳解]

#include <ModelCacheManager.h>

Utility::ModelCacheManager の継承関係図
Utility::ModelCacheManager 連携図

公開メンバ関数

 ModelCacheManager ()
 コンストラクタ
 ~ModelCacheManager ()
 デストラクタ
int getModel (const std::wstring &filePath)
 モデルを取得または読み込む
void releaseModel (const std::wstring &filePath, int modelHandle)
 モデルを解放する
void clearCache ()
 全キャッシュをクリア

その他の継承メンバ

基底クラス Utility::Singleton< ModelCacheManager > に属する継承静的公開メンバ関数
static ModelCacheManagergetInstance ()
 シングルトンインスタンスを取得

詳解

モデルキャッシュ管理

関数詳解

◆ getModel()

int ModelCacheManager::getModel ( const std::wstring & filePath)

モデルを取得または読み込む

引数
filePathモデルファイルパス
戻り値
複製されたモデルハンドル(-1は失敗)

◆ releaseModel()

void ModelCacheManager::releaseModel ( const std::wstring & filePath,
int modelHandle )

モデルを解放する

引数
filePathモデルファイルパス
modelHandle解放するモデルハンドル

このクラス詳解は次のファイルから抽出されました:
  • KCGStudyDXLibProject/KCGStudyDXLibProject/src/utility/ModelCacheManager.h
  • KCGStudyDXLibProject/KCGStudyDXLibProject/src/utility/ModelCacheManager.cpp