GLUtil icon indicating copy to clipboard operation
GLUtil copied to clipboard

Supply texture target to reloadTexture

Open triplepointfive opened this issue 10 years ago • 1 comments

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?

triplepointfive avatar Nov 04 '15 17:11 triplepointfive

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.

acowley avatar Nov 08 '15 20:11 acowley