ReactOS 0.4.15-dev-7961-gdcf9eb0
api.h
Go to the documentation of this file.
1/* $Id: api.h,v 1.4 1998/02/04 00:38:24 brianp Exp $ */
2
3/*
4 * Mesa 3-D graphics library
5 * Version: 2.4
6 * Copyright (C) 1995-1997 Brian Paul
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This library 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. See the GNU
16 * Library General Public License for more details.
17 *
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the Free
20 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 */
22
23
24/*
25 * $Log: api.h,v $
26 * Revision 1.4 1998/02/04 00:38:24 brianp
27 * WIN32 patch from Oleg Letsinsky
28 *
29 * Revision 1.3 1998/02/04 00:13:35 brianp
30 * updated for Cygnus (Stephane Rehel)
31 *
32 * Revision 1.2 1997/11/25 03:20:09 brianp
33 * simple clean-ups for multi-threading (John Stone)
34 *
35 * Revision 1.1 1997/08/22 01:42:26 brianp
36 * Initial revision
37 *
38 */
39
40
41/*
42 * The original api.c file has been split into two files: api1.c and api2.c
43 * because some compilers complained that api.c was too big.
44 *
45 * This header contains stuff only included by api1.c and api2.c
46 */
47
48
49#ifndef API_H
50#define API_H
51
52
53/*
54 * Single/multiple thread context selection.
55 */
56#ifdef THREADS
57
58/* Get the context associated with the calling thread */
59#define GET_CONTEXT GLcontext *CC = gl_get_thread_context()
60
61#else
62
63/* CC is a global pointer for all threads in the address space */
64#define GET_CONTEXT
65
66#endif /* THREADS */
67
68
69/*
70 * An optimization in a few performance-critical functions.
71 */
72#define SHORTCUT
73
74
75/*
76 * Windows 95/NT DLL stuff.
77 */
78#if !defined(WIN32) && !defined(WINDOWS_NT) && !defined(__CYGWIN32__)
79#define APIENTRY
80#endif
81
82
83#endif