display: Add an accessor to get the renderer out of a display

https://bugzilla.gnome.org/show_bug.cgi?id=657347

Reviewed-by: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
Damien Lespiau 2011-08-25 17:35:34 +01:00 committed by Robert Bragg
parent 6584c183f0
commit 6a2e21183c
3 changed files with 11 additions and 0 deletions

View File

@ -119,6 +119,12 @@ cogl_display_new (CoglRenderer *renderer,
return _cogl_display_object_new (display); return _cogl_display_object_new (display);
} }
CoglRenderer *
cogl_display_get_renderer (CoglDisplay *display)
{
return display->renderer;
}
gboolean gboolean
cogl_display_setup (CoglDisplay *display, cogl_display_setup (CoglDisplay *display,
GError **error) GError **error)

View File

@ -81,6 +81,10 @@ CoglDisplay *
cogl_display_new (CoglRenderer *renderer, cogl_display_new (CoglRenderer *renderer,
CoglOnscreenTemplate *onscreen_template); CoglOnscreenTemplate *onscreen_template);
#define cogl_display_get_rendrer cogl_display_get_rendrer_EXP
CoglRenderer *
cogl_display_get_renderer (CoglDisplay *display);
#define cogl_display_setup cogl_display_setup_EXP #define cogl_display_setup cogl_display_setup_EXP
gboolean gboolean
cogl_display_setup (CoglDisplay *display, cogl_display_setup (CoglDisplay *display,

View File

@ -57,6 +57,7 @@ cogl_onscreen_template_new
<FILE>cogl-display</FILE> <FILE>cogl-display</FILE>
<TITLE>CoglDisplay: Setup a display pipeline</TITLE> <TITLE>CoglDisplay: Setup a display pipeline</TITLE>
cogl_display_new cogl_display_new
cogl_display_get_renderer
cogl_display_setup cogl_display_setup
<SUBSECTION> <SUBSECTION>