guisan icon indicating copy to clipboard operation
guisan copied to clipboard

Black screen

Open paulgheorghecristian opened this issue 3 years ago • 3 comments

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?

paulgheorghecristian avatar Jul 12 '20 15:07 paulgheorghecristian

FWIW I attempted to build the sdl2widgets example (@ ceea04aaf7cbab101a149b6f4a64a99719d959a5) 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.

warriorstar-orion avatar Mar 13 '21 21:03 warriorstar-orion

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.

gbaudic avatar Nov 19 '21 19:11 gbaudic

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

kallisti5 avatar Jan 27 '22 14:01 kallisti5