https://github.com/2bdkid/OpenGL-Stuff
I’m worried that it’s not good practice to wrap everything in main() in a try block.
https://github.com/2bdkid/OpenGL-Stuff
I’m worried that it’s not good practice to wrap everything in main() in a try block.
realistically it probably isnt. if you throw any kind of exception anywhere in the execution of the program, it wont crash. which is good. but it wont crash which is not good. you need it to crash so you really actually know what happened because it could just continue to throw errors when something is a fatal error
Where'd you learn?
All the exceptions I have are to catch SDL not working. When it does catch one it quits the program. I actually don't know if the program would crash or not without the exceptions because it always works on my computer lol.
I take it you mean where did I learn C++. TheNewBoston on YT. I got the basics of SDL2 from reading the wiki.