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

#include <ResourceContainer.hpp>

静的非公開メンバ関数

static std::shared_ptr< ResourceInfoImageLoad (FilePass _img)
 

関数詳解

◆ ImageLoad()

static std::shared_ptr< ResourceInfo > Kisaragi_ECS::ResourceLoader::ImageLoad ( FilePass _img)
inlinestaticprivate
22 {
23
24 std::shared_ptr<ResourceInfo> info;
25
26 int image = LoadGraph(_img.c_str());
27 if (image == -1)
28 {
29 Debug::PrintWarningStatic("摜t@Cǂݍ߂܂ł");
30
31 //TODO infonullimage
32 }
33 else
34 {
35 info = std::make_shared<ResourceInfo>();
36 info->resource = std::make_shared<int>(image);
37 info->destroy = [image]()
38 {
39 int reesult = DeleteGraph(image);
40 if (reesult == -1)
41 {
42 Debug::PrintStatic("imagȅɎs܂");
43 }
44 };
45 }
46
47 return info;
48 }
static void PrintStatic(const std::string _in)
コンソール出力(改行なし)
Definition Debug.cpp:137
static void PrintWarningStatic(const std::string _in)
警告用コンソール出力(文字色しか変わらない)
Definition Debug.cpp:147

このクラス詳解は次のファイルから抽出されました: