| 1 |
/** |
| 2 |
* \file varray.h |
| 3 |
* Vertex arrays. |
| 4 |
* |
| 5 |
* \if subset |
| 6 |
* (No-op) |
| 7 |
* |
| 8 |
* \endif |
| 9 |
*/ |
| 10 |
|
| 11 |
/* |
| 12 |
* Mesa 3-D graphics library |
| 13 |
* Version: 4.1 |
| 14 |
* |
| 15 |
* Copyright (C) 1999-2002 Brian Paul All Rights Reserved. |
| 16 |
* |
| 17 |
* Permission is hereby granted, free of charge, to any person obtaining a |
| 18 |
* copy of this software and associated documentation files (the "Software"), |
| 19 |
* to deal in the Software without restriction, including without limitation |
| 20 |
* the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 21 |
* and/or sell copies of the Software, and to permit persons to whom the |
| 22 |
* Software is furnished to do so, subject to the following conditions: |
| 23 |
* |
| 24 |
* The above copyright notice and this permission notice shall be included |
| 25 |
* in all copies or substantial portions of the Software. |
| 26 |
* |
| 27 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
| 28 |
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 29 |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 30 |
* BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN |
| 31 |
* AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| 32 |
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 33 |
*/ |
| 34 |
|
| 35 |
|
| 36 |
#ifndef VARRAY_H |
| 37 |
#define VARRAY_H |
| 38 |
|
| 39 |
|
| 40 |
#include "mtypes.h" |
| 41 |
|
| 42 |
#if _HAVE_FULL_GL |
| 43 |
|
| 44 |
extern void GLAPIENTRY |
| 45 |
_mesa_VertexPointer(GLint size, GLenum type, GLsizei stride, |
| 46 |
const GLvoid *ptr); |
| 47 |
|
| 48 |
extern void GLAPIENTRY |
| 49 |
_mesa_UnlockArraysEXT( void ); |
| 50 |
|
| 51 |
extern void GLAPIENTRY |
| 52 |
_mesa_LockArraysEXT(GLint first, GLsizei count); |
| 53 |
|
| 54 |
|
| 55 |
extern void GLAPIENTRY |
| 56 |
_mesa_NormalPointer(GLenum type, GLsizei stride, const GLvoid *ptr); |
| 57 |
|
| 58 |
|
| 59 |
extern void GLAPIENTRY |
| 60 |
_mesa_ColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *ptr); |
| 61 |
|
| 62 |
|
| 63 |
extern void GLAPIENTRY |
| 64 |
_mesa_IndexPointer(GLenum type, GLsizei stride, const GLvoid *ptr); |
| 65 |
|
| 66 |
|
| 67 |
extern void GLAPIENTRY |
| 68 |
_mesa_TexCoordPointer(GLint size, GLenum type, GLsizei stride, |
| 69 |
const GLvoid *ptr); |
| 70 |
|
| 71 |
|
| 72 |
extern void GLAPIENTRY |
| 73 |
_mesa_EdgeFlagPointer(GLsizei stride, const GLvoid *ptr); |
| 74 |
|
| 75 |
|
| 76 |
extern void GLAPIENTRY |
| 77 |
_mesa_VertexPointerEXT(GLint size, GLenum type, GLsizei stride, |
| 78 |
GLsizei count, const GLvoid *ptr); |
| 79 |
|
| 80 |
|
| 81 |
extern void GLAPIENTRY |
| 82 |
_mesa_NormalPointerEXT(GLenum type, GLsizei stride, GLsizei count, |
| 83 |
const GLvoid *ptr); |
| 84 |
|
| 85 |
|
| 86 |
extern void GLAPIENTRY |
| 87 |
_mesa_ColorPointerEXT(GLint size, GLenum type, GLsizei stride, GLsizei count, |
| 88 |
const GLvoid *ptr); |
| 89 |
|
| 90 |
|
| 91 |
extern void GLAPIENTRY |
| 92 |
_mesa_IndexPointerEXT(GLenum type, GLsizei stride, GLsizei count, |
| 93 |
const GLvoid *ptr); |
| 94 |
|
| 95 |
|
| 96 |
extern void GLAPIENTRY |
| 97 |
_mesa_TexCoordPointerEXT(GLint size, GLenum type, GLsizei stride, |
| 98 |
GLsizei count, const GLvoid *ptr); |
| 99 |
|
| 100 |
|
| 101 |
extern void GLAPIENTRY |
| 102 |
_mesa_EdgeFlagPointerEXT(GLsizei stride, GLsizei count, const GLboolean *ptr); |
| 103 |
|
| 104 |
|
| 105 |
extern void GLAPIENTRY |
| 106 |
_mesa_FogCoordPointerEXT(GLenum type, GLsizei stride, const GLvoid *ptr); |
| 107 |
|
| 108 |
|
| 109 |
extern void GLAPIENTRY |
| 110 |
_mesa_SecondaryColorPointerEXT(GLint size, GLenum type, |
| 111 |
GLsizei stride, const GLvoid *ptr); |
| 112 |
|
| 113 |
|
| 114 |
extern void GLAPIENTRY |
| 115 |
_mesa_VertexAttribPointerNV(GLuint index, GLint size, GLenum type, |
| 116 |
GLsizei stride, const GLvoid *pointer); |
| 117 |
|
| 118 |
|
| 119 |
extern void GLAPIENTRY |
| 120 |
_mesa_VertexAttribPointerARB(GLuint index, GLint size, GLenum type, |
| 121 |
GLboolean normalized, GLsizei stride, |
| 122 |
const GLvoid *pointer); |
| 123 |
|
| 124 |
|
| 125 |
extern void GLAPIENTRY |
| 126 |
_mesa_InterleavedArrays(GLenum format, GLsizei stride, const GLvoid *pointer); |
| 127 |
|
| 128 |
|
| 129 |
extern void GLAPIENTRY |
| 130 |
_mesa_MultiDrawArraysEXT( GLenum mode, GLint *first, |
| 131 |
GLsizei *count, GLsizei primcount ); |
| 132 |
|
| 133 |
extern void GLAPIENTRY |
| 134 |
_mesa_MultiDrawElementsEXT( GLenum mode, const GLsizei *count, GLenum type, |
| 135 |
const GLvoid **indices, GLsizei primcount ); |
| 136 |
|
| 137 |
|
| 138 |
extern void GLAPIENTRY |
| 139 |
_mesa_MultiModeDrawArraysIBM( const GLenum * mode, const GLint * first, |
| 140 |
const GLsizei * count, |
| 141 |
GLsizei primcount, GLint modestride ); |
| 142 |
|
| 143 |
|
| 144 |
extern void GLAPIENTRY |
| 145 |
_mesa_MultiModeDrawElementsIBM( const GLenum * mode, const GLsizei * count, |
| 146 |
GLenum type, const GLvoid * const * indices, |
| 147 |
GLsizei primcount, GLint modestride ); |
| 148 |
|
| 149 |
|
| 150 |
extern void |
| 151 |
_mesa_init_varray( GLcontext * ctx ); |
| 152 |
|
| 153 |
#else |
| 154 |
|
| 155 |
/** No-op */ |
| 156 |
#define _mesa_init_varray( c ) ((void)0) |
| 157 |
|
| 158 |
#endif |
| 159 |
|
| 160 |
#endif |