v / thirdparty / sokol / sokol_v.post.h
9 lines · 9 sloc · 341 bytes · ef0457d6e39319e79b680df00dfdddd817bf65ee
Raw
1#if defined(SOKOL_GLCORE) || 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
10