Jump to content
  • Advertisement
Sign in to follow this  
Srinidhi

OpenGL Directory Structure in openGL

This topic is 4548 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Can anybody explain me how I can build a directory structure in openGL.. I dont need folder icons i just need text that can be expanded...

Share this post


Link to post
Share on other sites
Advertisement
What exactly do you mean? You can check out (windows specific) http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/listing_the_files_in_a_directory.asp
on how to get a directory listing. After that if you want to show that information using OpenGL you just need to print it to the screen (see Nehe's tutorial). For expansion and collapsing, you would need to use picking for when the user clicks the mouse on a folder name, then reprint the information with the next level for that folder (or without it, depending on whether is was already expanded)

Share this post


Link to post
Share on other sites
I want the directory structure layout...with my own names in it...which can be expanded and collapsed etc....

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!