Skip to main content
GameDev.net gamedev.net
🔒 Locked

Directory Structure in openGL

Started by Srinidhi May 9, 2006 at 10:54 AM 1 replies 1.2k views
Original Post
Srinidhi
Srinidhi
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...
Second_Strike
Second_Strike
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)
Srinidhi
Srinidhi
I want the directory structure layout...with my own names in it...which can be expanded and collapsed etc....

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.