added preliminary support for glGetTexImage and glGetTexLevelParameter
attempt to fix my issue with generator (still not perfect)
added glBlendFuncSeparate
small optim on copying arrays for glDrawElements