home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / exampleCode / opengl / GLR / glrduck / main.C < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-11  |  1.6 KB  |  63 lines

  1.  
  2. //////////////////////////////////////////////////////////////////////
  3. // This is a driver ViewKit program generated by RapidApp 1.2 
  4.  
  5. //
  6. // This program instantiates a ViewKit VkApp object and creates
  7. // any main window objects that are meant to be shown at startup.
  8. // Although editable code blocks are provided, there should rarely.
  9. // be any reason to modify this file. Make application-specific
  10. // changes in the classes created by the main window classes
  11. // You can add also additional initialization in subclasses of VkApp
  12. //////////////////////////////////////////////////////////////////////
  13. #include <Vk/VkApp.h>
  14. #include <Inventor/Xt/SoXt.h>
  15.  
  16. // Headers for window classes used in this program
  17.  
  18. #include "glrduckMainWindow.h"
  19.  
  20. //---- Start editable code block: headers and declarations
  21.  
  22.  
  23. //---- End editable code block: headers and declarations
  24.  
  25.  
  26. void main ( int argc, char **argv )
  27. {
  28.     //---- Start editable code block: main initialization
  29.  
  30.     //---- End editable code block: main initialization
  31.  
  32.     VkApp       *app;
  33.  
  34.     // Create an application object
  35.  
  36.     app = new VkApp("Glrduck", &argc, argv); 
  37.  
  38.     //---- Start editable code block:  post init
  39.  
  40.     //---- End editable code block:  post init
  41.     SoXt::init(app->baseWidget());
  42.  
  43.     // Create the top level windows
  44.  
  45.     glrduckMainWindow *simpleWindow  = 
  46.       new glrduckMainWindow("glrduckmainwindow");
  47.     simpleWindow->show();
  48.  
  49.     //---- Start editable code block:  event loop
  50.  
  51.     //---- End editable code block:  event loop
  52.  
  53.     app->run ();
  54.  
  55.  
  56. }
  57.  
  58. //---- Start editable code block: End of generated code
  59.  
  60.  
  61. //---- End editable code block: End of generated code
  62.  
  63.