2002-11-16 05:00:14 +00:00
|
|
|
/* -*-ObjC-*- */
|
|
|
|
/* XGOpenGL - openGL management using glX
|
|
|
|
|
|
|
|
Copyright (C) 2002 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
Author: Frederic De Jaeger
|
|
|
|
Date: Nov 2002
|
|
|
|
|
|
|
|
This file is part of the GNUstep GUI Library.
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
2007-10-29 23:25:10 +00:00
|
|
|
modify it under the terms of the GNU Lesser General Public
|
2002-11-16 05:00:14 +00:00
|
|
|
License as published by the Free Software Foundation; either
|
2008-06-10 04:12:46 +00:00
|
|
|
version 2 of the License, or (at your option) any later version.
|
2007-10-29 23:25:10 +00:00
|
|
|
|
2002-11-16 05:00:14 +00:00
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2007-10-29 23:25:10 +00:00
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Lesser General Public License for more details.
|
2002-11-16 05:00:14 +00:00
|
|
|
|
2007-10-29 23:25:10 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
2002-11-16 05:00:14 +00:00
|
|
|
License along with this library; see the file COPYING.LIB.
|
2007-10-29 23:25:10 +00:00
|
|
|
If not, see <http://www.gnu.org/licenses/> or write to the
|
|
|
|
Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
|
|
|
Boston, MA 02110-1301, USA.
|
2002-11-16 05:00:14 +00:00
|
|
|
*/
|
|
|
|
|
2009-10-25 13:49:19 +00:00
|
|
|
#ifndef _GNUstep_H_XGOpenGL_
|
|
|
|
#define _GNUstep_H_XGOpenGL_
|
2002-11-16 05:00:14 +00:00
|
|
|
|
|
|
|
#include <AppKit/NSOpenGL.h>
|
2002-11-16 19:41:16 +00:00
|
|
|
|
|
|
|
#define id _gs_avoid_id_collision
|
2003-03-24 18:15:56 +00:00
|
|
|
#define BOOL XWINDOWSBOOL
|
2002-11-16 05:00:14 +00:00
|
|
|
#include <GL/glx.h>
|
2002-11-16 19:41:16 +00:00
|
|
|
#undef id
|
2002-12-31 16:49:48 +00:00
|
|
|
#undef BOOL
|
2002-11-16 05:00:14 +00:00
|
|
|
|
|
|
|
@class NSView;
|
|
|
|
@class XGXSubWindow;
|
|
|
|
@class XGGLPixelFormat;
|
|
|
|
|
|
|
|
@interface XGGLContext : NSOpenGLContext
|
|
|
|
{
|
2009-10-25 13:49:19 +00:00
|
|
|
int glxminorversion;
|
2008-01-21 21:27:58 +00:00
|
|
|
GLXContext glx_context;
|
|
|
|
GLXWindow glx_drawable;
|
|
|
|
XGXSubWindow *xSubWindow;
|
|
|
|
XGGLPixelFormat *pixelFormat;
|
2009-03-04 09:58:41 +00:00
|
|
|
BOOL saved_ignores_backing;
|
2002-11-16 05:00:14 +00:00
|
|
|
}
|
2008-01-21 21:27:58 +00:00
|
|
|
|
|
|
|
- (GLXContext)glxcontext;
|
|
|
|
|
2002-11-16 05:00:14 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
@interface XGGLPixelFormat : NSOpenGLPixelFormat
|
|
|
|
{
|
2009-10-25 13:49:19 +00:00
|
|
|
Display * display;
|
|
|
|
long int glxminorversion;
|
2013-07-03 09:36:29 +00:00
|
|
|
GLXFBConfig *fbconfig; int pickedFBConfig;
|
|
|
|
XVisualInfo *visualinfo;
|
2008-01-21 21:27:58 +00:00
|
|
|
int configurationCount;
|
2002-11-16 05:00:14 +00:00
|
|
|
}
|
2008-01-21 21:27:58 +00:00
|
|
|
|
2009-10-25 13:49:19 +00:00
|
|
|
+ (int) glxMinorVersion;
|
|
|
|
- (Display *) display;
|
|
|
|
- (XVisualInfo *) visualinfo;
|
|
|
|
- (GLXContext) createGLXContext: (XGGLContext *)share;
|
2008-01-21 21:27:58 +00:00
|
|
|
- (GLXWindow) drawableForWindow: (Window)xwindowid;
|
|
|
|
|
2002-11-16 05:00:14 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
#endif
|