Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct{ GLubyte red, green, blue; } pixel;
- glReadPixels(320, 240, 1, 1, GL_RGB, GL_UNSIGNED_BYTE, &pixel);
- printf("%d %d %d ", pixel.red, pixel.green, pixel.blue);
- SDL_GL_SwapWindow(window); // осторожно, не дает считать РГБ!!!
Add Comment
Please, Sign In to add comment