1 /* $Id: vbfill.h,v 1.7 1997/06/20 02:30:56 brianp Exp $ */ 2 3 /* 4 * Mesa 3-D graphics library 5 * Version: 2.3 6 * Copyright (C) 1995-1996 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: vbfill.h,v $ 26 * Revision 1.7 1997/06/20 02:30:56 brianp 27 * added Color4ubv API pointer 28 * 29 * Revision 1.6 1997/06/20 02:30:22 brianp 30 * changed color components from GLfixed to GLubyte 31 * 32 * Revision 1.5 1997/04/24 01:50:53 brianp 33 * optimized glColor3f, glColor3fv, glColor4fv 34 * 35 * Revision 1.4 1997/04/16 23:55:33 brianp 36 * added optimized glTexCoord2f code 37 * 38 * Revision 1.3 1997/04/14 22:18:23 brianp 39 * added optimized glVertex3fv code 40 * 41 * Revision 1.2 1997/04/07 03:00:19 brianp 42 * added vertex[23] functions 43 * 44 * Revision 1.1 1997/04/02 03:13:56 brianp 45 * Initial revision 46 * 47 */ 48 49 50 #ifndef VBFILL_H 51 #define VBFILL_H 52 53 54 #include "types.h" 55 56 57 extern void gl_Normal3f( GLcontext *ctx, GLfloat nx, GLfloat ny, GLfloat nz ); 58 59 extern void gl_Normal3fv( GLcontext *ctx, const GLfloat *normal ); 60 61 62 extern void gl_Indexf( GLcontext *ctx, GLfloat c ); 63 64 extern void gl_Indexi( GLcontext *ctx, GLint c ); 65 66 67 extern void gl_Color3f( GLcontext *ctx, 68 GLfloat red, GLfloat green, GLfloat blue ); 69 70 extern void gl_Color3fv( GLcontext *ctx, const GLfloat *c ); 71 72 extern void gl_Color4f( GLcontext *ctx, 73 GLfloat red, GLfloat green, 74 GLfloat blue, GLfloat alpha ); 75 76 extern void gl_Color4fv( GLcontext *ctx, const GLfloat *c ); 77 78 extern void gl_Color4ub( GLcontext *ctx, 79 GLubyte red, GLubyte green, 80 GLubyte blue, GLubyte alpha ); 81 82 extern void gl_Color4ub8bit( GLcontext *ctx, 83 GLubyte red, GLubyte green, 84 GLubyte blue, GLubyte alpha ); 85 86 extern void gl_Color4ubv( GLcontext *ctx, const GLubyte *c ); 87 88 extern void gl_Color4ubv8bit( GLcontext *ctx, const GLubyte *c ); 89 90 91 extern void gl_ColorMat3f( GLcontext *ctx, 92 GLfloat red, GLfloat green, GLfloat blue ); 93 94 extern void gl_ColorMat3fv( GLcontext *ctx, const GLfloat *c ); 95 96 extern void gl_ColorMat3ub( GLcontext *ctx, 97 GLubyte red, GLubyte green, GLubyte blue ); 98 99 extern void gl_ColorMat4f( GLcontext *ctx, 100 GLfloat red, GLfloat green, 101 GLfloat blue, GLfloat alpha ); 102 103 extern void gl_ColorMat4fv( GLcontext *ctx, const GLfloat *c ); 104 105 extern void gl_ColorMat4ub( GLcontext *ctx, 106 GLubyte red, GLubyte green, 107 GLubyte blue, GLubyte alpha ); 108 109 110 extern void gl_TexCoord2f( GLcontext *ctx, GLfloat s, GLfloat t ); 111 112 extern void gl_TexCoord4f( GLcontext *ctx, 113 GLfloat s, GLfloat t, GLfloat r, GLfloat q ); 114 115 116 extern void gl_EdgeFlag( GLcontext *ctx, GLboolean flag ); 117 118 119 120 extern void gl_vertex2f_nop( GLcontext *ctx, GLfloat x, GLfloat y ); 121 122 extern void gl_vertex3f_nop( GLcontext *ctx, GLfloat x, GLfloat y, GLfloat z ); 123 124 extern void gl_vertex4f_nop( GLcontext *ctx, 125 GLfloat x, GLfloat y, GLfloat z, GLfloat w ); 126 127 extern void gl_vertex3fv_nop( GLcontext *ctx, const GLfloat *v ); 128 129 130 131 extern void gl_set_vertex_function( GLcontext *ctx ); 132 133 extern void gl_set_color_function( GLcontext *ctx ); 134 135 136 137 extern void gl_eval_vertex( GLcontext *ctx, 138 const GLfloat vertex[4], const GLfloat normal[3], 139 const GLubyte color[4], GLuint index, 140 const GLfloat texcoord[4] ); 141 142 143 extern void gl_Begin( GLcontext *ctx, GLenum p ); 144 145 extern void gl_End( GLcontext *ctx ); 146 147 148 #endif 149 150