| 283 | } |
| 284 | |
| 285 | std::vector<unsigned char> Framebuffer::readPixelsToByteArray(const std::array<GLint, 4> & rect, const GLenum format, const GLenum type) const |
| 286 | { |
| 287 | int size = imageSizeInBytes(rect[2], rect[3], 1, format, type); |
| 288 | std::vector<unsigned char> data(size); |
| 289 | |
| 290 | readPixels(rect, format, type, data.data()); |
| 291 | |
| 292 | return data; |
| 293 | } |
| 294 | |
| 295 | std::vector<unsigned char> Framebuffer::readPixelsToByteArray(GLenum readBuffer, const std::array<GLint, 4> & rect, GLenum format, GLenum type) const |
| 296 | { |
nothing calls this directly
no test coverage detected