mesa: initial bits for GL_EXT_vertex_array_bgra
authorBrian Paul <brianp@vmware.com>
Fri, 23 Jan 2009 18:23:12 +0000 (11:23 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 23 Jan 2009 18:23:12 +0000 (11:23 -0700)
src/mesa/main/extensions.c
src/mesa/main/mtypes.h

index 188e01c8a4a376353a5ada072b32bb826e9af522..bdc382bf9d984a37fcb89dbcae330f7ba3c2a9df 100644 (file)
@@ -129,6 +129,7 @@ static const struct {
    { OFF, "GL_EXT_texture_sRGB",               F(EXT_texture_sRGB) },
    { OFF, "GL_EXT_timer_query",                F(EXT_timer_query) },
    { ON,  "GL_EXT_vertex_array",               F(EXT_vertex_array) },
+   { OFF, "GL_EXT_vertex_array_bgra",          F(EXT_vertex_array_bgra) },
    { OFF, "GL_EXT_vertex_array_set",           F(EXT_vertex_array_set) },
    { OFF, "GL_3DFX_texture_compression_FXT1",  F(TDFX_texture_compression_FXT1) },
    { OFF, "GL_APPLE_client_storage",           F(APPLE_client_storage) },
index f1da638ae669fc99333b3caddcb7c27607661bb4..5c31f66ed18834b9cef839ebdf6402a237c946d2 100644 (file)
@@ -1661,6 +1661,7 @@ struct gl_client_array
 {
    GLint Size;                  /**< components per element (1,2,3,4) */
    GLenum Type;                 /**< datatype: GL_FLOAT, GL_INT, etc */
+   GLenum Format;               /**< default: GL_RGBA, but may be GL_BGRA */
    GLsizei Stride;             /**< user-specified stride */
    GLsizei StrideB;            /**< actual stride in bytes */
    const GLubyte *Ptr;          /**< Points to array data */
@@ -2611,6 +2612,7 @@ struct gl_extensions
    GLboolean EXT_texture_sRGB;
    GLboolean EXT_timer_query;
    GLboolean EXT_vertex_array;
+   GLboolean EXT_vertex_array_bgra;
    GLboolean EXT_vertex_array_set;
    /* vendor extensions */
    GLboolean APPLE_client_storage;