1 /* 2 varrays.h 3 4 OpenGL-specific definitions and prototypes 5 6 Copyright (C) 1996-1997 Id Software, Inc. 7 8 This program is free software; you can redistribute it and/or 9 modify it under the terms of the GNU General Public License 10 as published by the Free Software Foundation; either version 2 11 of the License, or (at your option) any later version. 12 13 This program 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. 16 17 See the GNU General Public License for more details. 18 19 You should have received a copy of the GNU General Public License 20 along with this program; if not, write to: 21 22 Free Software Foundation, Inc. 23 59 Temple Place - Suite 330 24 Boston, MA 02111-1307, USA 25 26 */ 27 28 #ifndef __qf_varrays_h 29 #define __qf_varrays_h 30 31 #ifdef HAVE_WINDOWS_H 32 # include <windows.h> 33 #endif 34 35 #include "QF/GL/types.h" 36 37 typedef struct varray_t2f_c4ub_v3f_s { 38 GLfloat texcoord[2]; 39 GLubyte color[4]; 40 GLfloat vertex[3]; 41 } varray_t2f_c4ub_v3f_t; 42 43 typedef struct varray_t2f_c4f_n3f_v3f_s { 44 GLfloat texcoord[2]; 45 GLfloat color[4]; 46 GLfloat normal[3]; 47 GLfloat vertex[3]; 48 } varray_t2f_c4f_n3f_v3f_t; 49 50 extern qboolean gl_va_capable; 51 extern int vaelements; 52 53 extern varray_t2f_c4ub_v3f_t *gl_spriteVertexArray; 54 55 #endif // __qf_varrays_h 56