Re: [Plib-users] Question re PUI sizes & frames
Brought to you by:
sjbaker
From: John F. F. <joh...@cy...> - 2008-05-11 19:33:45
|
James, If I remember correctly, PUI uses pixels as its units of distance. The origin is the lower left-hand corner of the screen (or group), the x-axis extends to the right, and the y-axis extends upwards. Yes, you do have to create the frame first, before creating the buttons. It is possible, though, to resize the frame after the buttons have been created. - John -----Original Message----- From: James Frye Sent: Sunday, May 11, 2008 11:45 AM To: PLIB Users Subject: [Plib-users] Question re PUI sizes & frames Hi, I'm making some progress on modifying PUI to work with VR, but have a couple more questions. After a few modifications (such as replacing the bitmapped text with GLUT vector fonts), I've got groups containing buttons and such that I can move around & rotate at will. Now I want to add a nice frame around a group, but it seems that I have to create the frame before creating the objects that go in it. IOW the code needs to look something like group = new puGroup (size...) frame = new puFrame (x1, y1, x2, y2); button1 = new puButton (x, y, label); button2 = new puButton (x, y, label); group->close (); The problem is how to know the dimensions for frame before I create at least one button, and find its size? That leads to a larger question: what does PUI use as its internal coordinate system? At some point I'll need to add scaling of the PUI coordinate system to the VR one, so that the menus appear at virtual world sizes. I'd rather not do this by trial & error, but I don't understand the internal coordinates from the code. Thanks, James ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/j avaone _______________________________________________ plib-users mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-users |