3 ms·
If someone paid me to do something similar, I would probably be building on top of this: https://github.com/Const-me/Vrmac https://github.com/Const-me/Vrmac Th
by Const-me 6y ago
If someone paid me to do something similar, I would probably be building on top of this: https://github.com/Const-me/Vrmac https://github.com/Const-me/Vrmac
There’re two hard problems there.
One is how to render vector graphics and fonts. So far, only web browsers do that in a cross-platform way. Windows has it’s Direct2D and DirectWrite, while Linux has nothing comparable, unfortunately.
Another higher level one is how to build easy to use GUI library on top of that. Have not approached that one. I have a few ideas but did nothing so far to address them, lately I’m too busy with other projects.
- eivarv 6y agoWhy not just wrap/abstract the native platform APIs (like what wxWidgets does)?
- Const-me 6y agoThese native platform APIs don’t use GPU much, or at all. That’s true even on Windows where GPU support is better than anywhere else. wxWidgets wraps Win32 stuff, it does not use WPF (backed by DirectX 9.0c) nor UWP (backed by Direct3D 11+, Direct2D, and DirectWrite). Count of pixels in displays was improving way faster than RAM bandwidth or CPU performance. Currently, this does not matter much on desktops, matters somewhat on laptops, and critically important for many mobile and embedded platforms. When you want to render anything at all at native display resolution and refresh rate, GPU stuff is the only option that works well enough.