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

glReadPixel #7

Open
limbo-lab opened this issue Sep 17, 2014 · 1 comment
Open

glReadPixel #7

limbo-lab opened this issue Sep 17, 2014 · 1 comment

Comments

@limbo-lab
Copy link

Hi, I'm an newbie to gl. I wanna render to an image(not snapshot). I googled and found that glReadPixel meets my requirements. However it has some to do with FrameBuffer and I can't not find any trace of FrameBuffer in BCMeshTransformView.

@Ciechan
Copy link
Owner

Ciechan commented Sep 17, 2014

BCMeshTransformView uses GLKView internally which has the snapshot method that does exactly this – renders its content to an image. It uses glReadPixels internally so this is pretty much what you want.

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