2 * Mesa 3-D graphics library
4 * Copyright (C) 2010 VMware, Inc. All Rights Reserved.
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
13 * The above copyright notice and this permission notice shall be included
14 * in all copies or substantial portions of the Software.
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 #ifndef TRANSFORM_FEEDBACK_H
26 #define TRANSFORM_FEEDBACK_H
32 _mesa_validate_primitive_mode(GLcontext
*ctx
, GLenum mode
);
35 _mesa_validate_transform_feedback_buffers(GLcontext
*ctx
);
38 _mesa_init_transform_feedback(GLcontext
*ctx
);
41 _mesa_free_transform_feedback(GLcontext
*ctx
);
44 extern void GLAPIENTRY
45 _mesa_BeginTransformFeedback(GLenum mode
);
47 extern void GLAPIENTRY
48 _mesa_EndTransformFeedback(void);
50 extern void GLAPIENTRY
51 _mesa_BindBufferRange(GLenum target
, GLuint index
,
52 GLuint buffer
, GLintptr offset
, GLsizeiptr size
);
54 extern void GLAPIENTRY
55 _mesa_BindBufferBase(GLenum target
, GLuint index
, GLuint buffer
);
57 extern void GLAPIENTRY
58 _mesa_BindBufferOffsetEXT(GLenum target
, GLuint index
, GLuint buffer
,
61 extern void GLAPIENTRY
62 _mesa_TransformFeedbackVaryings(GLuint program
, GLsizei count
,
63 const GLchar
**varyings
, GLenum bufferMode
);
65 extern void GLAPIENTRY
66 _mesa_GetTransformFeedbackVarying(GLuint program
, GLuint index
,
67 GLsizei bufSize
, GLsizei
*length
,
68 GLsizei
*size
, GLenum
*type
, GLchar
*name
);
71 #endif /* TRANSFORM_FEEDBACK_H */