1 | #if defined(SOKOL_GLCORE33) || defined(SOKOL_GLES2) || defined(SOKOL_GLES3) |
2 | void v_sapp_gl_read_rgba_pixels(int x, int y, int width, int height, unsigned char* pixels) { |
3 | glReadPixels(x, y, width, height, GL_RGBA, GL_UNSIGNED_BYTE, pixels); |
4 | } |
5 | #else |
6 | void v_sapp_gl_read_rgba_pixels(int x, int y, int width, int height, unsigned char* pixels) { |
7 | // TODO |
8 | } |
9 | #endif |