You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a Size property to this crate, use piston-quack to implement it for gfx::TextureHandle
Add an auto impl with a where clause for ImageSize using the Size property.
If this works, then the compiles should allow 1) because the tuple (Size, gfx::TextureHandle) is owned by this crate, and 2) because where clauses can be used as refinements of impls.
The text was updated successfully, but these errors were encountered:
Perhaps, this is for the better. We could return more info from image loading than just a texture handle. For example, a flag saying that the image had alpha in it. Or the number of bits per component.
Edit: actually, all this info is available through gfx::TextureHandle, so it would be nice to return it, after all...
See #24
It might be possible to hack around this by:
Size
property to this crate, use piston-quack to implement it forgfx::TextureHandle
ImageSize
using theSize
property.If this works, then the compiles should allow 1) because the tuple
(Size, gfx::TextureHandle)
is owned by this crate, and 2) because where clauses can be used as refinements of impls.The text was updated successfully, but these errors were encountered: