GLUtil
GLUtil copied to clipboard
Supply texture target to reloadTexture
I'd like to handle cubemap textures, but reloadTexture function is supposed to be applied only for Texture2D targets. Can we provide to it one more argument with a type TwoDimensionalTextureTarget t, so it will be more generalized?
I'd rather not break existing users of reloadTexture. Is TexInfo enough for working with cubemaps? If not, perhaps we could replace that concrete argument with a type subject to a class constraint. That way, we could have something like a TexInfoCube type from which we could pull out the right texture target.