aconstlink / motor

Software Framework for Audio/Visual/Interactive Real-Time Applications
MIT License
1 stars 0 forks source link

platform window creation needs to be handled in one place #17

Closed aconstlink closed 5 months ago

aconstlink commented 6 months ago

The win32 window will not update across threads. I do not exactly know how to circumvent this issue but using messages and handles.

The new platform carrier now handles window messages and is required for window creation. Any create_window call needs to put a message so the carrier can create the window in a deferred way. The user can not have a window pointer directly.

This would also fix the problem of not being able to create windows during the lifetime of the application.

Windows creation to look into:

aconstlink commented 6 months ago

with the latest update it is possible to create and destroy windows during run-time on win32 platforms.

aconstlink commented 6 months ago

Doing all window related topics in the win32 carrier makes much more sense and works great.

aconstlink commented 5 months ago

This is basically done. EGL is missing but will do it with this one #30.