I need a tutorial for Box2D and OpenGL in C++

Box2D seems like it will be perfect for OpenGL graphics if you can align the coordinate systems. Is there any instructions for passing the coordinates back and fourth between Box2D and the OpenGL canvas?

Thanks
Larry
The testbed uses OpenGL. Checking out the source code for that would be a good place to start.
EMBT1 wrote:Box2D seems like it will be perfect for OpenGL graphics if you can align the coordinate systems. Is there any instructions for passing the coordinates back and fourth between Box2D and the OpenGL canvas?

Thanks
Larry


I suggest you check out Box2D tutorials by thecplusplusguy on Youtube. He is using OpenGL to render Box2D objects and explains everything in much detail. He has a funny accent, but you can understand him well. This is how I got into OpenGL and Box2D.

http://www.youtube.com/watch?v=QEzcr7AfZ0o

Original thread: https://box2d.org/forum/viewtopic.php?t=9793