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

Class rewriting and reimplementation #20

Open
Nebula-Developer opened this issue Jul 26, 2024 · 1 comment
Open

Class rewriting and reimplementation #20

Nebula-Developer opened this issue Jul 26, 2024 · 1 comment
Labels
discussion Something to discuss priority/high Work upon immediately
Milestone

Comments

@Nebula-Developer
Copy link
Owner

There's a few classes and interfaces within Yoru Engine that are due for a rewrite both for efficiency and clearness. The primary ones are both Element and Transform - we need to consider whether parents under Element will be an interface in the case that some elements handle children differently. Additionally, we may make Transform values fall either under an interface, or directly in the Element class.

Positional input will be further discussed in the future. I plan to partially match Yoru Engine's input with the likes of what would be seen in a web browser, but I'm not sure what picking implementation will be implemented.

@Nebula-Developer Nebula-Developer added priority/high Work upon immediately discussion Something to discuss labels Jul 26, 2024
@Nebula-Developer Nebula-Developer added this to the v1.0 Rewrite Release milestone Jul 26, 2024
@Nebula-Developer
Copy link
Owner Author

A few notable changes that are going to be made:

  • AddChild will be added to Application, pointing to its Element.AddChild
  • Mouse picking will be implemented, creating a new virtual method for Elements to handle rendering the positional contact area
  • Additional platform information will be passed, for the likes of platform-specific elements (like touch-controls for mobile) or just generally understanding the applications environmental context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Something to discuss priority/high Work upon immediately
Projects
None yet
Development

No branches or pull requests

1 participant