bdd@calmasd.Prime.COM (Brian Donahue) (02/10/90)
I would like to use SunView's menus in conjunction with SunCore's 3d graphics & picking. In other words, i would like sunview menus to "popup" in the suncore window. I had a feeling that all i needed to do is to call initialize_view_surface() (a suncore funtion) with the "right stuff" (like the file descriptor, etc. of the Sunview window that i've created) in the vwsurf struct. This is what i tried (it didnt work...): struct vwsurf vwsurf = DEFAULT_VWSURF(pixwindd); . . . base_frame = window_create((Window)0, FRAME, FRAME_LABEL, "Hack", FRAME_ARGS, argc, argv, 0); menu = menu_create( MENU_ACTION_ITEM, "Line", insert_line, MENU_ACTION_ITEM, "Circle", insert_circ, 0); window_set( base_frame, WIN_MENU, menu, 0 ); initialize_core( DYNAMICB, SYNCHRONOUS, THREED); strcpy( vwsurf.screenname, "/dev/fb" ); name = (char *) window_get( base_frame, WIN_DEVICE_NAME ); strcpy( vwsurf.windowname, name ); vwsurf.windowfd = (int) window_get( base_frame, WIN_FD ); initialize_view_surface( &vwsurf, FALSE); Questions: A) Can SunView and SunCore be used together? (eg. can this be done?) B) Has anyone done this? Can you do popups in a suncore window?? C) If so, could you send me a code segment? and, yes, i have looked in both the sunview and suncore manuals, niether of which mention the other except that: "The Sun implementations of graphics standards - ...CORE -- include extensions to run within windows" thanks much for any pointers, bd -- Brian Donahue Calma San Diego R&D ...{ucbvax|decvax}!sdcsvax!calmasd!bdd bdd@calmasd.Prime.COM