home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!purdue!yuma!yuma.acns.colostate.edu!jamison
- From: jamison@yuma.acns.colostate.edu (Jamie Gulden)
- Newsgroups: comp.sys.sgi
- Subject: HELP: GL question (about swinopen)
- Message-ID: <Jul21.202806.32725@yuma.ACNS.ColoState.EDU>
- Date: 21 Jul 92 20:28:06 GMT
- Sender: news@yuma.ACNS.ColoState.EDU (News Account)
- Distribution: usa
- Organization: Colorado State University, Fort Collins, CO 80523
- Lines: 46
-
-
- Sorry to be begging for help but this program is supposed to be
- running at the Showcase Expo next week (yeah I know...)
-
-
- When you open a sub window with swinopen is its configuration
- completely independent from its parent?
-
- What I'm trying to do: open the parent window as RGB, singlebuffered
- to use for a menu area. Open a sub-window as RGB, doublebuffered,
- z-buffered, and with different viewing matricies. Is this supposed
- to work? It doesn't seem to be (for me at least)
-
-
- here's the code I'm trying to use:
-
- /* open and initialize main (menu) window */
- prefposition((long)100,(long)1100,(long)100,(long)949);
- main_window = winopen("ShowCase");
- RGBmode();
- drawmode( NORMALDRAW );
- gconfig();
-
- ortho2( -0.5, 1001 - 0.5, -0.5, 850 - 0.5 );
- viewport( 0, 1001 - 1, 0, 850 - 1);
- cpack(0xff404040);
- clear();
- linewidth( 3 );
- qenter( REDRAW, main_window );
- gflush();
-
- /* open and initialize graphics window */
- gr_window = swinopen( main_window );
- winposition(200,1000,0,800);
- RGBmode();
- doublebuffer();
- zbuffer(TRUE);
- drawmode( NORMALDRAW );
- glcompat(GLC_ZRANGEMAP, 0);
- gconfig();
- /* projection and viewing is set elsewhere but different from
- * the main window */
-
- Thanks for any help, Jamie
- jamison@vangogh.vis.colostate.edu
- CSU Computer Visualization Laboratory (303)491-1578
-