Hi, I'm new here and this is my first post. I am not a professional programmer, so I have been gathering tutorials from the Internet and basically writing short practice programs. I decided to go with SDL2 and OpenGL. I tried some OpenGL snippets as well as SDL2 and I am having a hard time understanding how to organize a simple project.
I am planning a 2D platformer and would like to render my images to OpenGL planes, so I can have very smooth motion. I am looking for the simplest and shortest code path possible to do this. I'm not working on anything serious other than the graphics. So I scrapped all my tests and would like a fresh start with this. I have many questions, but my main question is this.
How can I go from start of program to a gameloop to do this. I already did many of the lazyfoo.net tutorials, so I am not asking how to use SDL2.
What I mean instead, is, how can I modularize and do this with OpenGL, so I can have a good image loading routine that renders to OpenGL planes.
Does anyone have a good example of how this has been done before. There are many smooth gameplay examples out there using OpenGL and SDL2, but not too many examples of projects.
Any pointers in the right direction is very appreciated. This is going to be my ongoing project for the near future and this is my first post requesting help in this matter. That is why I am here.
Thank you,
mtrx3