We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
olc::Renderable
In your source code I notice the structure Sprite does not implement Clone trait. Is that intentional?
Sprite
Clone
Because to create a renderable, you must store Sprite and Decal pointer.
Maybe define a function that returns Decal from a Sprite reference will do.
Decal
Because the lifetime of those pointers are inside the class Renderable.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In your source code I notice the structure
Sprite
does not implementClone
trait. Is that intentional?Because to create a renderable, you must store
Sprite and Decal pointer.
Maybe define a function that returns
Decal
from aSprite
reference will do.Because the lifetime of those pointers are inside the class Renderable.
The text was updated successfully, but these errors were encountered: