OCC22354 Bug in Overlay Text rendering
[occt.git] / src / OpenGl / OpenGl_togl_set_environment.cxx
CommitLineData
7fd59977 1/***********************************************************************
2
3FONCTION :
4----------
5file OpenGl_togl_set_environment :
6
7
8REMARQUES:
9----------
10
11
12HISTORIQUE DES MODIFICATIONS :
13--------------------------------
14xx-xx-xx : xxx ; Creation.
1529-04-96 : FMN ; Correction Warning.
16
17************************************************************************/
18
19/*----------------------------------------------------------------------*/
20/*
21* Includes
22*/
23
24#include <string.h>
25
26#include <OpenGl_tgl_all.hxx>
27#include <OpenGl_tgl_tox.hxx>
28#include <OpenGl_tgl_utilgr.hxx>
29
30
31void EXPORT
32call_togl_set_environment
33(
34 char * adisplay
35 )
36{
37 int status;
38
39 if (call_thedisplay == NULL) {
40 if (strlen (adisplay) != 0)
41 call_util_osd_putenv ((Tchar*)"DISPLAY", (Tchar*)adisplay);
42 status = call_tox_open_display ();
43 }
44 return;
45}