MCPcopy Create free account
hub / github.com/Tencent/tgfx / onUpdateTexture

Method onUpdateTexture

src/platform/web/VideoElement.cpp:64–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64bool VideoElement::onUpdateTexture(std::shared_ptr<TextureView> textureView) {
65 auto glTexture = static_cast<const GLTexture*>(textureView->getTexture());
66 val::module_property("tgfx").call<void>("uploadToTexture", emscripten::val::module_property("GL"),
67 source, glTexture->textureID(), false);
68 return true;
69}
70} // namespace tgfx

Callers 1

readTextureMethod · 0.45

Calls 2

textureIDMethod · 0.80
getTextureMethod · 0.45

Tested by

no test coverage detected