Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何能够离屏渲染,不上屏的情况下从tgfx获取到纹理 #202

Closed
cangwang opened this issue May 17, 2024 · 2 comments
Closed
Assignees

Comments

@cangwang
Copy link

tgfx中只要调用tgfxSurface->flush();
或者
tgfx::GLTextureInfo textureInfo;
tgfxSurface->getBackendTexture().getGLTextureInfo(&textureInfo);
纹理就会直接上屏显示。我只需要离屏幕获取到tgfx里面的纹理

@domchen
Copy link
Collaborator

domchen commented May 17, 2024

#194

@domchen domchen closed this as completed May 17, 2024
@cangwang
Copy link
Author

渲染完flush后执行getBackendTexture()还是会直接上屏,我并不需要直接上屏。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants