Whenever I’m reading tutorials about advanced topics in OpenGL, I always wonder… why didn’t they just create a class which encapsulates the functionality, and all you have to do is call some setters, and then specific methods during different times of rendering?
Call me lazy, but when all I want is code to plugin, and all I get are dozens of tutorials that repeat the same thing and all have code examples that are written specifically for their scenario and not a generic one it drives me bonkers! Something that hasn’t really changed doesn’t need umpteen tutorials! how about a class which does all the heavy lifting =P. I just want to be able to pass a few parameters in (camera direction, up, right, etc) and have it do all the work.
So… now that I’m done ranting, does anyone have a class like this they use for shadow mapping and LWJGL?