#include "glheader.h"
#include "imports.h"
#include "context.h"
#include "extensions.h"
#include "simple_list.h"
#include "mtypes.h"
Defines | |
#define | F(x) offsetof(struct gl_extensions, x) |
#define | ON GL_TRUE |
#define | OFF GL_FALSE |
Functions | |
void | _mesa_enable_sw_extensions (GLcontext *ctx) |
Enable all extensions suitable for a software-only renderer. | |
void | _mesa_enable_imaging_extensions (GLcontext *ctx) |
Enable GL_ARB_imaging and all the EXT extensions that are subsets of it. | |
void | _mesa_enable_1_3_extensions (GLcontext *ctx) |
Enable all OpenGL 1.3 features and extensions. | |
void | _mesa_enable_1_4_extensions (GLcontext *ctx) |
Enable all OpenGL 1.4 features and extensions. | |
void | _mesa_enable_1_5_extensions (GLcontext *ctx) |
Enable all OpenGL 1.5 features and extensions. | |
void | _mesa_enable_2_0_extensions (GLcontext *ctx) |
Enable all OpenGL 2.0 features and extensions. | |
void | _mesa_enable_2_1_extensions (GLcontext *ctx) |
Enable all OpenGL 2.1 features and extensions. | |
static GLboolean | set_extension (GLcontext *ctx, const char *name, GLboolean state) |
Either enable or disable the named extension. | |
void | _mesa_enable_extension (GLcontext *ctx, const char *name) |
Enable the named extension. | |
void | _mesa_disable_extension (GLcontext *ctx, const char *name) |
Disable the named extension. | |
GLboolean | _mesa_extension_is_enabled (GLcontext *ctx, const char *name) |
Test if the named extension is enabled in this context. | |
static char * | append (const char *a, const char *b) |
Append string 'b' onto string 'a'. | |
static const char * | get_extension_override (GLcontext *ctx) |
Check the MESA_EXTENSION_OVERRIDE env var. | |
void | _mesa_init_extensions (GLcontext *ctx) |
Run through the default_extensions array above and set the ctx->Extensions.ARB/EXT_* flags accordingly. | |
GLubyte * | _mesa_make_extension_string (GLcontext *ctx) |
Construct the GL_EXTENSIONS string. | |
Variables | |
struct { | |
GLboolean enabled | |
const char * name | |
int flag_offset | |
} | default_extensions [] |
#define F | ( | x | ) | offsetof(struct gl_extensions, x) |
#define OFF GL_FALSE |
#define ON GL_TRUE |
void _mesa_disable_extension | ( | GLcontext * | ctx, | |
const char * | name | |||
) |
Disable the named extension.
XXX is this really needed???
void _mesa_enable_1_3_extensions | ( | GLcontext * | ctx | ) |
Enable all OpenGL 1.3 features and extensions.
A convenience function to be called by drivers.
void _mesa_enable_1_4_extensions | ( | GLcontext * | ctx | ) |
Enable all OpenGL 1.4 features and extensions.
A convenience function to be called by drivers.
void _mesa_enable_1_5_extensions | ( | GLcontext * | ctx | ) |
Enable all OpenGL 1.5 features and extensions.
A convenience function to be called by drivers.
void _mesa_enable_2_0_extensions | ( | GLcontext * | ctx | ) |
Enable all OpenGL 2.0 features and extensions.
A convenience function to be called by drivers.
void _mesa_enable_2_1_extensions | ( | GLcontext * | ctx | ) |
Enable all OpenGL 2.1 features and extensions.
A convenience function to be called by drivers.
void _mesa_enable_extension | ( | GLcontext * | ctx, | |
const char * | name | |||
) |
Enable the named extension.
Typically called by drivers.
void _mesa_enable_imaging_extensions | ( | GLcontext * | ctx | ) |
Enable GL_ARB_imaging and all the EXT extensions that are subsets of it.
void _mesa_enable_sw_extensions | ( | GLcontext * | ctx | ) |
Enable all extensions suitable for a software-only renderer.
This is a convenience function used by the XMesa, OSMesa, GGI drivers, etc.
GLboolean _mesa_extension_is_enabled | ( | GLcontext * | ctx, | |
const char * | name | |||
) |
Test if the named extension is enabled in this context.
void _mesa_init_extensions | ( | GLcontext * | ctx | ) |
Run through the default_extensions array above and set the ctx->Extensions.ARB/EXT_* flags accordingly.
To be called during context initialization.
GLubyte* _mesa_make_extension_string | ( | GLcontext * | ctx | ) |
Construct the GL_EXTENSIONS string.
Called the first time that glGetString(GL_EXTENSIONS) is called.
static char* append | ( | const char * | a, | |
const char * | b | |||
) | [static] |
Append string 'b' onto string 'a'.
Free 'a' and return new string.
static const char* get_extension_override | ( | GLcontext * | ctx | ) | [static] |
Check the MESA_EXTENSION_OVERRIDE env var.
For extension names that are recognized, turn them on. For extension names that are recognized and prefixed with '-', turn them off. Return a string of the unknown/leftover names.
static GLboolean set_extension | ( | GLcontext * | ctx, | |
const char * | name, | |||
GLboolean | state | |||
) | [static] |
Either enable or disable the named extension.
struct { ... } default_extensions[] [static] |
GLboolean enabled |
int flag_offset |
const char* name |