MCPcopy Create free account
hub / github.com/RevoSucks/BM64Recomp / GenerateTexture

Method GenerateTexture

src/ui/ui_renderer.cpp:473–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471 }
472
473 bool GenerateTexture(Rml::TextureHandle& texture_handle, const Rml::byte* source, const Rml::Vector2i& source_dimensions) override {
474 if (source_dimensions.x == 0 || source_dimensions.y == 0) {
475 texture_handle = 0;
476 return true;
477 }
478
479 texture_handle = texture_count_++;
480 return create_texture(texture_handle, source, source_dimensions);
481 }
482
483 bool create_texture(Rml::TextureHandle texture_handle, const Rml::byte* source, const Rml::Vector2i& source_dimensions, bool flip_y = false, bool bgra = false) {
484 std::unique_ptr<plume::RenderTexture> texture =

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected