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

SDL2 still use libx11 on linux platform, no xcb and wayland support for vulkan backend? #14

Open
suijingfeng opened this issue Jun 16, 2019 · 5 comments

Comments

@suijingfeng
Copy link
Owner

No description provided.

@suijingfeng
Copy link
Owner Author

suijingfeng commented Aug 4, 2019

SDL should only be used to create window and be put on the client side not the renderer side.

@suijingfeng
Copy link
Owner Author

can not keep to use SDL2, have to remove it.

@suijingfeng
Copy link
Owner Author

libx11 is the the top of libxcb, but fedora 30 using wayland by default,
the mouse and keyboard is difficult coding for me ...

@Morlackx
Copy link
Contributor

If this can help you could take a look within UE4 source code under Engine/Source/Runtime/VulkanRHI/Private/Linux/ path. UE4 still use SDL+vulkan support on x11 and wayland.

@suijingfeng
Copy link
Owner Author

It seem that xlib/x11 can be shipped on the top of wayland and SDL2 using libxcb-xlib.
the master branch in this repo can compile and run under fedora 30,
but this do not get a good feeling when play OA as the sdl2 branch does.

I will use SDL2 as less as possible, as using a middle-level lib learn nothing,
I would like use low level library such as Xlib/XCB as much as possible,
which help me learn more knowledge and get a basic understanding how linux and xserver works.

SDL2 is lack of document, I learn nothing about Linux window system when using SDL2, I hate it.

  1. I will add directx12 renderer on windows platform what need a native window handle;
  2. original quake3 doesn't use SDL2;
  3. Vulkan provide platform abstract interface(WSI), creating a window is trivial, the hard part is how to handle mouse and keyboard event.

Thank you @Morlackx, above is my idea and I will take time to reading its code,

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

2 participants