Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supply texture target to reloadTexture #22

Open
triplepointfive opened this issue Nov 4, 2015 · 1 comment
Open

Supply texture target to reloadTexture #22

triplepointfive opened this issue Nov 4, 2015 · 1 comment

Comments

@triplepointfive
Copy link

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?

@acowley
Copy link
Owner

acowley commented Nov 8, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants