On Mon, 01 Apr 2002, psq...@mw... (peter n squire) wrote:
> Date: Mon, 01 Apr 2002 13:50:03 -0500
> To: <pli...@li...>
> From: psq...@mw... (peter n squire)
> Subject: [Plib-users] puFrame Interface
>
> Does any one know if it is possible to create other items on top of a
> puFrame besides just widgets. For example, I would like to display 1,000
> points on top of the frame-- is this a possiblitiy in PUI?
Why not ?
In your display function, just be sure to call puDisplay () *first* and
render your points (or whatever) afterwards.
> Would it be a better idea to just create subwindow instead of using
> a puFrame.
GLUT subwindows and puFrames don't have much in common.
puFrames are usually used to make user interfaces look more aesthetic and
to make them easier to use by grouping elements together or labelling them.
GLUT subwindows allow you to set up a region in a parent window that can
have it's own display mode and (input) callbacks and that can be hidden or
pushed or popped relative to other subwindows. In contrast to puFrames,
subwindows are not primarily used to produce optical effects, but to
*partiton* windows into individual, logical regions that can almost be used
like "real" windows.
I don't know what excactly you plan to do, but if it's really just to
render something on top a puFrame, then there is usually no need to create
a GLUT subwindow, except if you could benefit from the fact that subwindows
can have their own display modes.
- Sebastian
|