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

Black screen #21

Open
paulgheorghecristian opened this issue Jul 12, 2020 · 4 comments
Open

Black screen #21

paulgheorghecristian opened this issue Jul 12, 2020 · 4 comments
Labels

Comments

@paulgheorghecristian
Copy link

paulgheorghecristian commented Jul 12, 2020

Hello!
I am trying to add this GUI system into my game engine, but all I get is a black screen when calling gui->draw(). Has anyone experienced this?

@warriorstar-orion
Copy link

FWIW I attempted to build the sdl2widgets example (@ ceea04a) on SDL 2.0.8, SDL_ttf 2.0.14, SDL_image 2.0.5, and SDL2_mixer 2.0.4, with OpenGL entirely disabled in my SDL2, and I'm receiving a similar completely black screen (Metal on macOS 11.2).

Probably not much help but I might as well post what I find trying to find truly backend-agnostic SDL GUI libraries.

@gbaudic
Copy link
Contributor

gbaudic commented Nov 19, 2021

When I wrote the code which actually makes use of the SDL2 optimizations (line primitives, rectangles, Textures), which sdl2widgets aims to demonstrate, I also had some rendering issues and I picked the option combination which worked on my machine. I only work on Windows or Linux, so I may have missed something on Mac.
Regarding the use of OpenGL more generally, this was supported by Guichan (the previous installment of this library for SDL 1.2) but it was dropped in this version AFAIK. If you come across this code again, you will likely have to adapt it to Guisan, but this would definitely be a worthy and welcomed addition.

@kallisti5 kallisti5 added the bug label Jan 27, 2022
@kallisti5
Copy link
Owner

So this one is limited to Mac? I personally haven't seen it... but am exclusively Linux and Haiku.

@midwan
Copy link
Collaborator

midwan commented Sep 12, 2024

I haven't seen any issues using the library on macOS, but maybe my implementation is different that what you're testing with?

I'm using it for the GUI of an Amiga emulator: https://github.com/BlitterStudio/amiberry in case you want to take a look (related files are under src/osdep/gui). The application runs on Linux and MacOS currently, behaving the same way in both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants