040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#ifdef HAVE_DIX_CONFIG_H
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#include <dix-config.h>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#endif
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#ifndef _glxcmds_h_
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define _glxcmds_h_
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/*
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** License Applicability. Except to the extent portions of this file are
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** made subject to an alternative license as permitted in the SGI Free
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** Software License B, Version 1.1 (the "License"), the contents of this
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** file are subject only to the provisions of the License. You may not use
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** this file except in compliance with the License. You may obtain a copy
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync**
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** http://oss.sgi.com/projects/FreeB
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync**
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** Note that, as provided in the License, the Software is distributed on an
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync**
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** Original Code. The Original Code is: OpenGL Sample Implementation,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** Copyright in any portions created by third parties is as indicated
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** elsewhere herein. All Rights Reserved.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync**
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** Additional Notice Provisions: The application programming interfaces
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** established by SGI in conjunction with the Original Code are The
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** Window System(R) (Version 1.3), released October 19, 1998. This software
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** was created using the OpenGL(R) version 1.2.1 Sample Implementation
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** published by SGI, but has not been independently verified as being
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync** compliant with the OpenGL(R) version 1.2.1 Specification.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync**
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync*/
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/* relate contexts with drawables */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncextern void __glXAssociateContext(__GLXcontext *glxc);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncextern void __glXDeassociateContext(__GLXcontext *glxc);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/* drawable management */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncextern void __glXRefDrawable(__GLXdrawable *glxPriv);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncextern void __glXUnrefDrawable(__GLXdrawable *glxPriv);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncextern GLboolean __glXDrawableInit(__GLXdrawable *drawable,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync __GLXscreen *screen,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync DrawablePtr pDraw, int type, XID drawID,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync __GLXconfig *config);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/* context helper routines */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncextern __GLXcontext *__glXLookupContextByTag(__GLXclientState*, GLXContextTag);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/* init helper routines */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncextern void *__glXglDDXScreenInfo(void);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncextern void *__glXglDDXExtensionInfo(void);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#endif /* _glxcmds_h_ */