cr_current.h revision fcded3b75bf930c68355adc3e3757e35e9cabde4
/* Copyright (c) 2001, Stanford University
* All rights reserved.
*
* See the file LICENSE.txt for information on redistributing this software.
*/
#ifndef CR_STATE_CURRENT_H
#define CR_STATE_CURRENT_H
#include "state/cr_currentpointers.h"
#ifdef __cplusplus
extern "C" {
#endif
#define VERT_ATTRIB_POS 0
#define VERT_ATTRIB_WEIGHT 1
#define VERT_ATTRIB_NORMAL 2
#define VERT_ATTRIB_COLOR0 3
#define VERT_ATTRIB_COLOR1 4
#define VERT_ATTRIB_FOG 5
#define VERT_ATTRIB_SIX 6
#define VERT_ATTRIB_SEVEN 7
#define VERT_ATTRIB_TEX0 8
#define VERT_ATTRIB_TEX1 9
#define VERT_ATTRIB_TEX2 10
#define VERT_ATTRIB_TEX3 11
#define VERT_ATTRIB_TEX4 12
#define VERT_ATTRIB_TEX5 13
#define VERT_ATTRIB_TEX6 14
#define VERT_ATTRIB_TEX7 15
#define VERT_ATTRIB_MAX 16
typedef struct {
/* Regardless of NV_vertex_program, we use this array */
typedef struct {
/* Pre-transform values */
/* Regardless of NV_vertex_program, we use this array */
/* Post-transform values */
} CRVertex;
typedef struct {
/* Regardless of NV_vertex_program, we use this array */
/* XXX this isn't really "current" state - move someday */
DECLEXPORT(void) crStateCurrentRecover( void );
DECLEXPORT(GLuint) crStateNeedDummyZeroVertexArray(CRContext *g, CRCurrentStatePointers *current, GLfloat *pZva);
#ifdef __cplusplus
}
#endif
#endif /* CR_STATE_CURRENT_H */