| 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 = |
nothing calls this directly
no outgoing calls
no test coverage detected