I'm making a Java game library (too many problems with the existing ones) and I'm building the win64 native right now. In the native I need to handle the window, OpenGL contexts, and advanced algerithms that will be faster in C++. Anyway, the first thing I need to do is the window handling. The thing is that I don't know how to make a loop in Win32 where I create the window, resize it, and update the OpenGL buffers on a single function call.
I've been trying to make a window for the past few hours but I just get errors. I also have no idea to create a OpenGL context.
Can someone show me an example of creating a window, making the OpenGL context, drawing something, and closing it? Also doing things such as resizing it, changing the icon, and simple things like that and make it changed on the next update? I can't seem to find anything that actually works. I know this may sound like a stupid question, or I'm asking for you to make something for me, but I just want an example that works.