Optimization. In progress.
Detect texture units.
Added some helper classes.
Reset drawing code.
Fixed drawing.
Replaced input textures with texture wrappers objects.
Replaced framebuffers with framebuffers wrapper objects.
Replaced program with program wrapper object. Just one for testing. Requires further clean up.
Replaced draw line program with program wrapper object.
Replaced display program with program wrapper object.
Replaced commit program with program wrapper object.
Replaced post processing program with program wrapper object.
Replaced copy program with program wrapper object. Improved setting textures and updating uniforms.
Optimized drawing point. Moved calculating background coords into vertex shader instead of fragment shader.
Need to do the same for other shaders.
Optimized draw line shader.
Optimized copy shader.
Optimized display, post processing and save shaders.
Optimized textures usage. Also optimized some GL state changes.
Optimized GL state changes - programs and frame buffers.