Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

File Dialog in OpenGL/GLUT

867 views
Skip to first unread message

David Glass

unread,
Mar 15, 2001, 10:29:01 AM3/15/01
to
Hi.

I'm starting a project with opengl I would like to have a GUI with a file
dialog widget. From what I've been able to find out, PUI, part of PLIB, is
my
only choice. But even with that I'm not too sure. Does PUI provide a
windows-like open as / save as dialog?

Also, I do not need to have a widget (a separate window container), and I'd
be
happy drawing the dialog on-screen, so can anybody point me to an example or
code snipet I could use?

Thanks

Paul Martz

unread,
Mar 15, 2001, 12:22:29 PM3/15/01
to
Certainly there are plenty of toolkits available that support this: MFC,
Motif, Xt, etc. It's really not an OpenGL issue, unless you want to limit
your dialogs to being rendered with OpenGL commands, which is really not
necessary.
--
-Paul Martz (paul_...@hp.com)
Hewlett Packard TCD Personal Workstations Lab
OpenGL FAQ: http://www.opengl.org/developers/faqs/technical.html
http://www.frii.com/~martz/oglfaq


"David Glass" <beac...@MailAndNews.com> wrote in message
news:3AB1...@MailAndNews.com...

David Glass

unread,
Mar 15, 2001, 2:55:35 PM3/15/01
to
I was trying for a platform independent solution and was under the
impression
the the PUI would provide this. Am I mistaken?

Also, I am using tcl/tk right now, but would like to try something else and
I
thought that GLUT/PLIB would be an adequeate replacement. The most
complicated ui widget that I need is a file list box that can browse the
local
directory.


>===== Original Message From "Paul Martz" <paul_...@hp.com> =====

yomgui

unread,
Mar 16, 2001, 6:50:18 AM3/16/01
to
my choice is to use graphapp for that.

http://www.cs.usyd.edu.au/~loki/graphapp/

just look at the fonctions askfilename and askfilesave

--
企痢𤨡
oim 3d - surface viewer - http://bigfoot.com/~oim
kryptyomic - encryption scheme - http://bigfoot.com/~kryptyomic

Yomgui Oim

unread,
Nov 13, 2015, 7:39:06 AM11/13/15
to
http://tinyfiledialogs.sourceforge.net

tiny file dialogs (cross-platform C C++)
Native Boxes InputBox PasswordBox ColorPicker WIN OSX GTK+ QT CONSOLE

v2.2
A single C file (add it to your C or C++ project) with 6 modal function calls
- message box & question box
- input box & password box
- save file dialog
- open file dialog & multiple files
- select folder dialog
- color picker.

Complement to OpenGL GLFW GLUT GLUI VTK SFML SDL Ogre3D Unity3D
CPW GLOW GLT NGL NUI or any GUI-less program

There is NO INIT & NO MAIN LOOP

The dialogs can be forced into console mode

Windows
- native code & some vbs create the graphic dialogs
- enhanced console mode can use dialog.exe from
http://andrear.altervista.org/home/cdialog.php
- basic console input

Unix (command line call attempts)
- applescript
- zenity
- kdialog
- Xdialog
- python2 tkinter
- dialog (opens a console if needed)
- whiptail, gdialog, gxmessage
- basic console input
The same executable can run across desktops & distributions

VisualStudio MinGW Mac Linux Bsd Solaris
0 new messages