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

Impossible to create an equivalent class of olc::Renderable #4

Open
AnotherCoder1 opened this issue Oct 9, 2024 · 0 comments
Open

Comments

@AnotherCoder1
Copy link

AnotherCoder1 commented Oct 9, 2024

In your source code I notice the structure Sprite does not implement Clone trait. Is that intentional?

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.

Because the lifetime of those pointers are inside the class Renderable.

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

1 participant