version.h revision b8e80941
1848b8605Smrg/* 2848b8605Smrg * Mesa 3-D graphics library 3848b8605Smrg * 4848b8605Smrg * Copyright (C) 1999-2008 Brian Paul All Rights Reserved. 5848b8605Smrg * Copyright (C) 2009 VMware, Inc. All Rights Reserved. 6848b8605Smrg * 7848b8605Smrg * Permission is hereby granted, free of charge, to any person obtaining a 8848b8605Smrg * copy of this software and associated documentation files (the "Software"), 9848b8605Smrg * to deal in the Software without restriction, including without limitation 10848b8605Smrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 11848b8605Smrg * and/or sell copies of the Software, and to permit persons to whom the 12848b8605Smrg * Software is furnished to do so, subject to the following conditions: 13848b8605Smrg * 14848b8605Smrg * The above copyright notice and this permission notice shall be included 15848b8605Smrg * in all copies or substantial portions of the Software. 16848b8605Smrg * 17848b8605Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 18848b8605Smrg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19848b8605Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 20848b8605Smrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 21848b8605Smrg * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 22848b8605Smrg * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 23848b8605Smrg * OTHER DEALINGS IN THE SOFTWARE. 24848b8605Smrg */ 25848b8605Smrg 26848b8605Smrg 27848b8605Smrg#ifndef VERSION_H 28848b8605Smrg#define VERSION_H 29848b8605Smrg 30b8e80941Smrg#include <stdbool.h> 31b8e80941Smrg#include "glheader.h" 32b8e80941Smrg#include "menums.h" 33848b8605Smrg 34b8e80941Smrgstruct gl_context; 35b8e80941Smrgstruct gl_constants; 36b8e80941Smrgstruct gl_extensions; 37848b8605Smrg 38848b8605Smrgextern GLuint 39848b8605Smrg_mesa_get_version(const struct gl_extensions *extensions, 40848b8605Smrg struct gl_constants *consts, gl_api api); 41848b8605Smrg 42848b8605Smrgextern void 43848b8605Smrg_mesa_compute_version(struct gl_context *ctx); 44848b8605Smrg 45848b8605Smrgextern bool 46848b8605Smrg_mesa_override_gl_version_contextless(struct gl_constants *consts, 47848b8605Smrg gl_api *apiOut, GLuint *versionOut); 48848b8605Smrg 49848b8605Smrgextern void 50848b8605Smrg_mesa_override_gl_version(struct gl_context *ctx); 51848b8605Smrg 52848b8605Smrgextern void 53848b8605Smrg_mesa_override_glsl_version(struct gl_constants *consts); 54848b8605Smrg 55b8e80941Smrgextern void 56b8e80941Smrg_mesa_get_driver_uuid(struct gl_context *ctx, GLint *uuid); 57b8e80941Smrg 58b8e80941Smrgextern void 59b8e80941Smrg_mesa_get_device_uuid(struct gl_context *ctx, GLint *uuid); 60b8e80941Smrg 61848b8605Smrgextern int 62b8e80941Smrg_mesa_get_shading_language_version(const struct gl_context *ctx, 63b8e80941Smrg int index, 64b8e80941Smrg char **versionOut); 65848b8605Smrg 66848b8605Smrg#endif /* VERSION_H */ 67