Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3509 Members - Latest Member: lioneltenel

26. May 2012, 08:40:56 pm
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)Best way to group HUD widgets?
Pages: [1]
Print
Author Topic: Best way to group HUD widgets?  (Read 748 times)
Dori
Enjoying the stay
*
Offline Offline

Posts: 90


View Profile
« on: 20. March 2007, 05:21:15 pm »

What is the best way to group HUD widgets to so it will be easy to remove the group?
I was thinking about making a panel and set the background to null and then add the widget to that panel but has it any performance issues?
Logged
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #1 on: 20. March 2007, 05:50:45 pm »

I was thinking about making a panel and set the background to null and then add the widget to that panel but has it any performance issues?
It shouldn't be too much.. Hmm wait there is the glScissor which would be called uselessly..
Marvin ?
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #2 on: 20. March 2007, 07:42:11 pm »

The glScissor is not too expensive. You won't probably notice the performance impact. But I could provide a method to disable the scissor. Please tell me, how big the performance impact is on your system.

Marvin
Logged
Dori
Enjoying the stay
*
Offline Offline

Posts: 90


View Profile
« Reply #3 on: 20. March 2007, 08:41:58 pm »

But isn't there a better way to do this?
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #4 on: 20. March 2007, 09:09:53 pm »

But isn't there a better way to do this?

Definitely not. It is the way, the HUD system is designed for.

But you could write a class, that provides methods to add Widgets and a method to detach them from their parent WidgetContainer by one call. But you would loose all the benefit, that a parent container gives you (like positioning of the whole group).

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic