Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - provener

#1
Hello,

I'm migrating an app from SFML to SDL, and I'd very much like to keep my TGUI interfaces. The primary layout for my app is a set of panels on one side of the screen, with a tgui::Canvas on the other side for drawing sf::Drawables:

Code (cpp) Select
  auto main_hud = tgui::HorizontalLayout::create();
  // add side panels...
  this.primary_canvas_ = tgui::Canvas::create();
  main_hud->add(primary_canvas_, 1.0f);
  main_hud->add(side_panels, 0.8f);


In TGUI 0.9.1, it appears as if tgui::Canvas is hidden behind ifdef guards for the SFML backend exclusively.

What is the proper way, with the SDL backend, to reserve an area of the GUI window for directly rendering, say, SDL_Textures to? And additionally, is it possible to have multiple such areas of the GUI window?

Cheers!