summaryrefslogtreecommitdiff
path: root/src/OpenGl/OpenGl_togl_set_environment.cxx
blob: a8ae42820bcf85e0f46c898836d558915fe64faf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/***********************************************************************

FONCTION :
----------
file OpenGl_togl_set_environment :


REMARQUES:
---------- 


HISTORIQUE DES MODIFICATIONS   :
--------------------------------
xx-xx-xx : xxx ; Creation.
29-04-96 : FMN ; Correction Warning.

************************************************************************/

/*----------------------------------------------------------------------*/
/*
* Includes
*/

#include <string.h>

#include <OpenGl_tgl_all.hxx>
#include <OpenGl_tgl_tox.hxx>
#include <OpenGl_tgl_utilgr.hxx>


void EXPORT
call_togl_set_environment
(
 char * adisplay
 )
{
  if (call_thedisplay == NULL) {
    if (strlen (adisplay) != 0)
      call_util_osd_putenv ((Tchar*)"DISPLAY", (Tchar*)adisplay);
    call_tox_open_display ();
  }
  return;
}