Hi,
I am having real trouble finding a decent tutorial on how to simply initialise OpenGL on an existing HWND. I am normally a d3d / d2d programmer, but, for this application i need a pointer to the screen buffer, something I cant do in d2d. I have searched for a few hours now and all im finding is either out of date examples, or examples that create a window using OpenGL, or examples that include GLEW (also, what is GLEW?).
The requirements of my application are literally that I need to create an OpenGL “surface”, using a specified, height, width and HWND. I then need a pointer to the backbuffer pixel so that I can manually modify the screen buffer pixel data. I then need to call “swap”, “flip” or whatever command OpenGL uses to swap its screen buffers.
This is a 2D project. Normally I would use SDL but that forces window creation. Can somebody either point me at a GOOD recent tutorial to at least initilise the window. I do not know how OpenGL works at all, I have never used it.
If you are feeling generous I can figure it out off of the documentation if somebody could just post the function calls i will need. Im pretty confident that the whole app is only about 5 calls to OpenGL functions, but having never used OpenGL i dont even know where to start
Thanks