glReadPixels is an OpenGL API function to read pixels data from source framebuffer to destination memory buffer. When FBO is supported, the source could be FBO; when PBO is supported, the destination could be PBO.
Questions tagged [glreadpixels]
197 questions
-2
votes
1 answer
OpenGL: glDrawArrays and glReadPixels in VBO
I am trying to implement a VBO in which I use glDrawArrays to draw a list of triangles and glReadPixels to read the output. The glReadPixels function is throwing a segmentation fault error.
This is the code that initializes and uses the VBO:
void…
![](../../users/profiles/2471107.webp)
jpaguerre
- 1,020
- 1
- 12
- 19
-2
votes
1 answer
glReadPixels save to BMP - Color Dirstortion
I'm using OpenGL and PCL_lib right now, And I want to draw a accessory on the background pic.
Here is my output_image on display:
Image source is PCD format(PCL lib), drew by OpenGL
and Here is my code where to save the GL_pic:
char…
![](../../users/profiles/2735092.webp)
Porter Chen
- 9
- 1
- 5