summaryrefslogtreecommitdiff
path: root/src/glitz.h
diff options
context:
space:
mode:
authorDavid Reveman <davidr@novell.com>2006-05-24 12:14:20 +0000
committerDavid Reveman <davidr@novell.com>2006-05-24 12:14:20 +0000
commit2f209ec78e61272ade7f1123af9cfbb458728716 (patch)
tree517bca9f97fbbc4ef10eadf28c70d0f4001877e3 /src/glitz.h
parent0553b1fbf990b67911d53e9a11acbacebde3c8b3 (diff)
Add glitz_drawable_get_gl_string and direct rendering to the feature mask
Diffstat (limited to 'src/glitz.h')
-rw-r--r--src/glitz.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/glitz.h b/src/glitz.h
index 6fe2796..a228559 100644
--- a/src/glitz.h
+++ b/src/glitz.h
@@ -130,6 +130,7 @@ typedef enum {
#define GLITZ_FEATURE_MULTI_DRAW_ARRAYS_MASK (1L << 15)
#define GLITZ_FEATURE_FRAMEBUFFER_OBJECT_MASK (1L << 16)
#define GLITZ_FEATURE_COPY_SUB_BUFFER_MASK (1L << 17)
+#define GLITZ_FEATURE_DIRECT_RENDERING_MASK (1L << 18)
/* glitz_format.c */
@@ -282,6 +283,17 @@ glitz_drawable_get_features (glitz_drawable_t *drawable);
glitz_drawable_format_t *
glitz_drawable_get_format (glitz_drawable_t *drawable);
+typedef enum {
+ GLITZ_GL_STRING_VENDOR,
+ GLITZ_GL_STRING_RENDERER,
+ GLITZ_GL_STRING_VERSION,
+ GLITZ_GL_STRING_EXTENSIONS
+} glitz_gl_string_t;
+
+const char *
+glitz_drawable_get_gl_string (glitz_drawable_t *drawable,
+ glitz_gl_string_t name);
+
/* glitz_surface.c */