home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sgi / 11129 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  1.7 KB

  1. Path: sparky!uunet!gatech!purdue!yuma!yuma.acns.colostate.edu!jamison
  2. From: jamison@yuma.acns.colostate.edu (Jamie Gulden)
  3. Newsgroups: comp.sys.sgi
  4. Subject: HELP: GL question (about swinopen)
  5. Message-ID: <Jul21.202806.32725@yuma.ACNS.ColoState.EDU>
  6. Date: 21 Jul 92 20:28:06 GMT
  7. Sender: news@yuma.ACNS.ColoState.EDU (News Account)
  8. Distribution: usa
  9. Organization: Colorado State University, Fort Collins, CO  80523
  10. Lines: 46
  11.  
  12.  
  13. Sorry to be begging for help but this program is supposed to be
  14. running at the Showcase Expo next week (yeah I know...)
  15.  
  16.  
  17. When you open a sub window with swinopen is its configuration
  18. completely independent from its parent?
  19.  
  20. What I'm trying to do: open the parent window as RGB, singlebuffered
  21. to use for a menu area.  Open a sub-window as RGB, doublebuffered,
  22. z-buffered, and with different viewing matricies.  Is this supposed
  23. to work?   It doesn't seem to be (for me at least)
  24.  
  25.  
  26. here's the code I'm trying to use:
  27.  
  28.    /* open and initialize main (menu) window */
  29.    prefposition((long)100,(long)1100,(long)100,(long)949);
  30.    main_window = winopen("ShowCase");
  31.    RGBmode();
  32.    drawmode( NORMALDRAW );
  33.    gconfig();
  34.  
  35.    ortho2( -0.5, 1001 - 0.5, -0.5, 850 - 0.5 );
  36.    viewport( 0, 1001 - 1, 0, 850 - 1);
  37.    cpack(0xff404040);
  38.    clear();
  39.    linewidth( 3 );
  40.    qenter( REDRAW, main_window );
  41.    gflush();
  42.  
  43.    /* open and initialize graphics window */
  44.    gr_window = swinopen( main_window );
  45.    winposition(200,1000,0,800);
  46.    RGBmode();
  47.    doublebuffer();
  48.    zbuffer(TRUE);
  49.    drawmode( NORMALDRAW );
  50.    glcompat(GLC_ZRANGEMAP, 0);
  51.    gconfig();
  52.    /* projection and viewing is set elsewhere but different from 
  53.     * the main window */
  54.  
  55. Thanks for any help, Jamie
  56. jamison@vangogh.vis.colostate.edu
  57. CSU Computer Visualization Laboratory  (303)491-1578
  58.