mesa: Include missing headers in vtxfmt.h.
[mesa.git] / src / mesa / main / vtxfmt.h
1 /**
2 * \file vtxfmt.h
3 *
4 * \author Keith Whitwell <keith@tungstengraphics.com>
5 * \author Gareth Hughes
6 */
7
8 /*
9 * Mesa 3-D graphics library
10 * Version: 6.1
11 *
12 * Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
13 *
14 * Permission is hereby granted, free of charge, to any person obtaining a
15 * copy of this software and associated documentation files (the "Software"),
16 * to deal in the Software without restriction, including without limitation
17 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
18 * and/or sell copies of the Software, and to permit persons to whom the
19 * Software is furnished to do so, subject to the following conditions:
20 *
21 * The above copyright notice and this permission notice shall be included
22 * in all copies or substantial portions of the Software.
23 *
24 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
25 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
27 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
28 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
29 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 */
31
32
33 #ifndef _VTXFMT_H_
34 #define _VTXFMT_H_
35
36 #include "compiler.h"
37 #include "mtypes.h"
38
39 #if FEATURE_beginend
40
41 extern void _mesa_init_exec_vtxfmt( GLcontext *ctx );
42
43 extern void _mesa_install_exec_vtxfmt( GLcontext *ctx, const GLvertexformat *vfmt );
44 extern void _mesa_install_save_vtxfmt( GLcontext *ctx, const GLvertexformat *vfmt );
45
46 extern void _mesa_restore_exec_vtxfmt( GLcontext *ctx );
47
48 #else /* FEATURE_beginend */
49
50 static INLINE void
51 _mesa_init_exec_vtxfmt( GLcontext *ctx )
52 {
53 }
54
55 static INLINE void
56 _mesa_install_exec_vtxfmt( GLcontext *ctx, const GLvertexformat *vfmt )
57 {
58 }
59
60 static INLINE void
61 _mesa_install_save_vtxfmt( GLcontext *ctx, const GLvertexformat *vfmt )
62 {
63 }
64
65 static INLINE void
66 _mesa_restore_exec_vtxfmt( GLcontext *ctx )
67 {
68 }
69
70 #endif /* FEATURE_beginend */
71
72 #endif /* _VTXFMT_H_ */