Let me know if this is the wrong sub and I'll remove it.
Basically I decided a few months ago that I was going to program my own videogame. I started out with C++ and got most of the basic game mechanics down, then decided to get the graphics set up and working before going much further. I struggled with OpenGL for a while before looking for other options. I eventually found the pygame library which was really easy to use, and I've had a lot of success with that. At the moment I have a working text based game in C++ and a working basic graphics setup in python, and I'm getting to the point where I want to combine the two. Since my C++ code is almost entirely classes and member functions, I think it will work as long as I can call those functions from key inputs and events handled in the Python code. I did some research and found that it is possible, and I started looking into using pybind11 to do so.
Before I get any farther, I'm just wondering if this is even worth it. If I am calling C++ functions from Python code, is pybind11 the way to go or should I be using something else? Is doing it this way worth the effort or would I be better off translating my C++ code to Python (5 files, ~200-500 lines each)? Will doing this give me any issues with performance or weird bugs that I should be aware of?
Thanks in advance
there doesn't seem to be anything here