summaryrefslogtreecommitdiff
path: root/cogl/cogl-onscreen-template-private.h
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2011-08-22 23:55:57 +0100
committerRobert Bragg <robert@linux.intel.com>2011-10-28 19:10:16 +0100
commit98e5a9c777af5d2ead09fcca856da0f346715100 (patch)
tree723531fe78999c8f0ce22d322416955e77d4932f /cogl/cogl-onscreen-template-private.h
parent63461c0f8bffcf818e8d932dfb6cf260f0995470 (diff)
downloadcogl-98e5a9c777af5d2ead09fcca856da0f346715100.tar.gz
Rework how we search for winsys configs
When creating new onscreen framebuffers we need to take the configuration in cogl terms and translate that into a configuration applicable to any given winsys, e.g. an EGLConfig or a GLXFBConfig or a PIXELFORMATDESCRIPTOR. Also when we first create a context we typically have to do a very similar thing because most OpenGL winsys APIs also associate a framebuffer config with the context and all future configs need to be compatible with that. This patch introduces an internal CoglFramebufferConfig to wrap up some of the configuration parameters that are common to CoglOnscreenTemplate and to CoglFramebuffer so we aim to re-use code when dealing with the above two problems. This patch also aims to rework the winsys code so it can be more naturally extended as we start adding more configureability to how onscreen framebuffers are created. Reviewed-by: Neil Roberts <neil@linux.intel.com>
Diffstat (limited to 'cogl/cogl-onscreen-template-private.h')
-rw-r--r--cogl/cogl-onscreen-template-private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cogl/cogl-onscreen-template-private.h b/cogl/cogl-onscreen-template-private.h
index 0f8d2533..21278797 100644
--- a/cogl/cogl-onscreen-template-private.h
+++ b/cogl/cogl-onscreen-template-private.h
@@ -31,7 +31,7 @@ struct _CoglOnscreenTemplate
{
CoglObject _parent;
- CoglSwapChain *swap_chain;
+ CoglFramebufferConfig config;
};
#endif /* __COGL_ONSCREEN_TEMPLATE_PRIVATE_H */