载入中...
搜索中...
未找到
GraphicsFileTextures.cpp
浏览该文件的文档.
26 DiagnosticCode::Failed, "file texture did not become resident", {}, {}, "graphics.texture.load"));
47 if (item.texture && item.texture->hasDeferredFilePixels()) deferredFileTextures_.push_back(item);
75Texture* Graphics::newTextureFromFileRepeated(const std::string& filename, bool repeatU, bool repeatV) {
79 if (!fileData) throw eve::Exception("newTextureFromFileRepeated: failed to read '%s'", filename.c_str());
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.cpp:21
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:196
Definition Graphics.h:134
ResultRef< Texture > loadTexture(const std::string &filename) override
Load a ready cached texture through the same file-resource owner as the legacy facade.
Definition GraphicsFileTextures.cpp:18
std::vector< DeferredFileTexture > deferredFileTextures_
Definition Graphics.h:2313
void ensureFileTexturesReady()
Finish CPU decode and GPU upload for outstanding newTextureFromFile results. @thread Game/render thre...
Definition GraphicsFileTextures.cpp:33
virtual ResultRef< Texture > requestFileTexture(const std::string &filename)=0
Canonical checked cache request; pixel realization is performed by loadTexture or legacy consumers....
Texture * newTextureFromFile(const std::string &filename) override
Load a path-cached file texture; cache hits return the same resource without I/O or upload....
Definition GraphicsFileTextures.cpp:12
Texture * newTextureFromImageData(image::ImageData *data, bool repeatU=false, bool repeatV=false)
Creates a texture from image data. @ownership Caller deletes unless documented otherwise.
Definition Graphics.cpp:1922
Texture * newTextureFromFileRepeated(const std::string &filename, bool repeatU, bool repeatV)
Creates a texture from file repeated. @ownership Caller deletes unless documented otherwise.
Definition GraphicsFileTextures.cpp:75
virtual bool uploadDeferredFileTexture(Texture *texture, image::ImageData *data)
Uploads deferred file texture.
Definition Graphics.cpp:1975
bool realizingFileTextures_
Definition Graphics.h:2314
GPU texture created via Graphics::newTexture. Owns GPU resources through an opaque backend handle.
Definition Texture.h:15
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
@ Failed