summaryrefslogtreecommitdiff
path: root/cogl/cogl-context.h
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2010-06-02 15:16:14 +0100
committerNeil Roberts <neil@linux.intel.com>2010-06-22 11:47:33 +0100
commit2e5b4a5b81d92909ad90e554c57c94b7c3f82f57 (patch)
treec89ed166e408cd3a56a0af61689b620b267aeb9f /cogl/cogl-context.h
parent9a1aa08fda8983420e543056ed8e54397058486e (diff)
downloadcogl-2e5b4a5b81d92909ad90e554c57c94b7c3f82f57.tar.gz
cogl: Add a struct for winsys-specific data to CoglContext
This creates a separate struct to store the fields of the context that are specific to the winsys. This is all stored in one file but ideally this could work more like the CoglContextDriver struct and have a different header for each winsys.
Diffstat (limited to 'cogl/cogl-context.h')
-rw-r--r--cogl/cogl-context.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cogl/cogl-context.h b/cogl/cogl-context.h
index 1ed1499d..83c8bfd6 100644
--- a/cogl/cogl-context.h
+++ b/cogl/cogl-context.h
@@ -26,6 +26,7 @@
#include "cogl-internal.h"
#include "cogl-context-driver.h"
+#include "cogl-context-winsys.h"
#include "cogl-primitives.h"
#include "cogl-clip-stack.h"
#include "cogl-matrix-stack.h"
@@ -167,6 +168,7 @@ typedef struct
GSList *texture_types;
CoglContextDriver drv;
+ CoglContextWinsys winsys;
} CoglContext;
CoglContext *