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

     FONCTION :
     ----------
        Include OpenGl_txgl :


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

     HISTORIQUE DES MODIFICATIONS   :
     --------------------------------
       xx-xx-xx : xxx ; Creation.
       07-02-96 : FMN ; Suppression code inutile:
			- TxglLink() et TxglUnlink()
			Ajout prototype de TxglGetBackDither()
       18-07-96 : FMN ; Suppression code inutile: TxglSetWindow().
       29-01-97 : FMN ; Suppression de TxglSetDbuff().

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

#ifndef  OPENGL_TXGL_H
#define  OPENGL_TXGL_H

#define RIC120302	/* GG  ; Add NEW TxglSetWindow function
//			Add NEW TxglGetContext function
*/

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

#ifndef WNT
# include <X11/Xlib.h>
# include <GL/glx.h>
#else
# define STRICT
# include <windows.h>
# define Display    char
# define Window     HWND
# define GLXContext HGLRC
#endif  /* WNT */

/*----------------------------------------------------------------------*/
/*
 * Prototypes fonctions externes
 */

extern  Window  TxglCreateWindow( Display*, Window, /* x, y, w, h, bw, bgcol */
                       Tint, Tint, Tint, Tint, Tint, Tfloat, Tfloat, Tfloat );
extern  TStatus TxglWinset( Display*, Window );
#ifdef RIC120302
extern  Window  TxglSetWindow( Display*, Window, GLXContext );
extern  GLXContext TxglGetContext( Window );
#endif
extern  Window  TxglGetSubWindow( Display*, Window );
extern  void    TxglDestroyWindow( Display *, Window );
extern  int     TxglGetDither(void);
extern  int	TxglGetBackDither(void);

/*----------------------------------------------------------------------*/

#endif
