1 /***********************************************************************
5 File OpenGl_togl_project_raster :
12 HISTORIQUE DES MODIFICATIONS :
13 --------------------------------
14 24-05-96 : CAL ; Creation
15 12-06-98 : CAL ; Modification respecter l'origine top-left.
17 ************************************************************************/
19 /*----------------------------------------------------------------------*/
23 #include <OpenGl_tgl_all.hxx>
24 #include <OpenGl_telem_util.hxx>
25 #include <OpenGl_cmn_varargs.hxx>
26 #include <OpenGl_tsm_ws.hxx>
28 //For right copution of projection befor dumping to pixmap
29 int call_togl_adopt_to_rect( int wsid, int width, int height ) {
34 result = TsmSetWSAttri (wsid, WSWidth, &key);
35 if (result != TSuccess)
39 result = TsmSetWSAttri (wsid, WSHeight, &key);
40 if (result != TSuccess)
46 int call_togl_project_raster
62 TsmGetWSAttri (wsid, WSHeight, &key);
65 result = TelProjectionRaster (wsid, x, y, z, &xr, &yr);
67 if (result == TSuccess) {