I do not know what the best approach would be right now (considering platforms other than Windows), but I heard that a standard extension is prepared for OpenGL, that will give pixel buffer functionality in a clean and standard way for all platforms.