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

Provide basic texture creation methods #53

Open
shinmili opened this issue Mar 26, 2021 · 0 comments
Open

Provide basic texture creation methods #53

shinmili opened this issue Mar 26, 2021 · 0 comments

Comments

@shinmili
Copy link

All of three major implementations of piston2d-graphics interface, gfx, opengl and glium, have their own empty or from_path functions to create a texture. They are basically doing the same thing: prepare memory and call CreateTexture::create.

I think these functions can be CreateTexture's provided methods, and that will boost piston's backend-agnostic feature.

There are minor differences to be discussed in current backend implementations (such as how they report errors, opengl omitting factory because it is (), or Flips in gfx vs glium, ...), but first I want to check if anyone is interested.

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

No branches or pull requests

2 participants