Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 26 Feb 2004
Offline Last Active Jul 02 2011 05:18 AM

Topics I've Started

Menu/HUD sprites

05 December 2005 - 09:19 PM

Hello, I'm wondering how to implement HUD/menu sprites in an efficient manner. I'm using immediate mode for them right now (glBegin()...glEnd()) but I've read it's best to avoid that. Display lists seem ideal, but they leave me with a couple of questions: 1. the HUD/menu isn't completely static, meaning I'd have to have a seperate display list for almost every item. Will that create problems? 2. how can I integrate it nicely with my code? Do you write a "register" function, so the engine builds a display list for each item you add to your HUD/menu (grouping the static ones into 1 displaylist)? 3. should I simply stick to immediate mode? 4. how do you personally handle them in your projects? I'd be grateful for any advice on how to handle this best.