1 #include <OpenGl_tgl_subrvis.hxx>
2 #include <OpenGl_tsm.hxx>
3 #include <OpenGl_tsm_ws.hxx>
4 #include <OpenGl_tgl_all.hxx>
5 #include <OpenGl_tgl_funcs.hxx>
7 #include <InterfaceGraphic_Graphic3d.hxx>
8 #include <InterfaceGraphic_Visual3d.hxx>
9 #include <InterfaceGraphic_telem.hxx>
12 call_togl_gradient_background
15 tel_colour tcolor1, tel_colour tcolor2
18 call_subr_set_gradient_background ( ws, type, tcolor1, tcolor2 );
23 void EXPORT call_togl_set_gradient_type
28 tsm_bg_gradient gradient;
32 /* check if gradient background is already created */
33 TsmGetWSAttri( ws, WSBgGradient, &cmnData );
34 gradient = (tsm_bg_gradient)cmnData.pdata;
35 if ( gradient->type != 0 ) {
38 gradient->type = TSM_GT_NONE;
40 gradient->type = TSM_GT_HOR;
43 gradient->type = TSM_GT_VER;
46 gradient->type = TSM_GT_DIAG1;
49 gradient->type = TSM_GT_DIAG1;
52 gradient->type = TSM_GT_CORNER1;
55 gradient->type = TSM_GT_CORNER2;
58 gradient->type = TSM_GT_CORNER3;
61 gradient->type = TSM_GT_CORNER4;
64 gradient->type = TSM_GT_NONE;
68 /* setting flag to update changes */
69 cmnKey.ldata = TNotDone;
70 TsmSetWSAttri( ws, WSUpdateState, &cmnKey );
72 /* storing background texture */
73 cmnData.pdata = gradient;
74 TsmSetWSAttri( ws, WSBgGradient, &cmnData );