1 /* $Id: glw.h,v 1.1 2006/10/30 20:17:16 r1ch Exp $
2  *
3  * used to be glw_linux.h
4  *
5  * Copyright (C) 1997-2001 Id Software, Inc.
6  * Copyright (c) 2002 The Quakeforge Project.
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  *
17  * See the GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22  */
23 
24 /* os code merge, i like my way better -- jaq
25 #ifndef __linux__
26 #error You shouldnt be including this file on non-Linux platforms
27 #endif
28 */
29 
30 #ifndef __GLW_H__
31 #define __GLW_H__
32 
33 #if defined (__linux__)  || defined (__bsd__) || defined (__sgi) || defined (__FreeBSD__) || defined (__NetBSD__) || defined (__sun__)
34 
35 typedef struct
36 {
37 	void *OpenGLLib; // instance of OpenGL library
38 
39 	FILE *log_fp;
40 } glwstate_t;
41 
42 extern glwstate_t glw_state;
43 
44 #endif /* __linux__ */
45 
46 #endif /* __GLW_H__ */
47