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

Add a way to recreate a Window without invalidating the existing Object #199

Open
DemoXinMC opened this issue Apr 23, 2021 · 3 comments
Open
Labels
Feature New functionality or extending of an existing one

Comments

@DemoXinMC
Copy link
Contributor

Options to recreate a window while reusing the existing Object should be added. While the object on the native side will be changed, the new pointer should be plugged back into the same Window to avoid additional GC overhead or access violations when attempting to work with a Window after recreating it

@DemoXinMC DemoXinMC changed the title Add a way to recreate a Window without invalidating the exist Object Add a way to recreate a Window without invalidating the existing Object Apr 23, 2021
@eXpl0it3r
Copy link
Member

Alternatively: Provide a create function similar to what SFML has on their window.

@eXpl0it3r eXpl0it3r added the Feature New functionality or extending of an existing one label Apr 23, 2021
@Rosst0pher
Copy link
Contributor

Would graphic resources created prior to a window getting recreated still be valid? OGL context thinking sounds.

@DemoXinMC
Copy link
Contributor Author

Would graphic resources created prior to a window getting recreated still be valid? OGL context thinking sounds.

After some investigation, yes, a graphics resource absolutely persists. This feature would ultimately be a minor tweak to allow the recreation of a window without invalidating the .NET object's pointer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New functionality or extending of an existing one
Projects
None yet
Development

No branches or pull requests

3 participants