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:
parent
6584c183f0
commit
6a2e21183c
@ -119,6 +119,12 @@ cogl_display_new (CoglRenderer *renderer,
|
||||
return _cogl_display_object_new (display);
|
||||
}
|
||||
|
||||
CoglRenderer *
|
||||
cogl_display_get_renderer (CoglDisplay *display)
|
||||
{
|
||||
return display->renderer;
|
||||
}
|
||||
|
||||
gboolean
|
||||
cogl_display_setup (CoglDisplay *display,
|
||||
GError **error)
|
||||
|
@ -81,6 +81,10 @@ CoglDisplay *
|
||||
cogl_display_new (CoglRenderer *renderer,
|
||||
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
|
||||
gboolean
|
||||
cogl_display_setup (CoglDisplay *display,
|
||||
|
@ -57,6 +57,7 @@ cogl_onscreen_template_new
|
||||
<FILE>cogl-display</FILE>
|
||||
<TITLE>CoglDisplay: Setup a display pipeline</TITLE>
|
||||
cogl_display_new
|
||||
cogl_display_get_renderer
|
||||
cogl_display_setup
|
||||
|
||||
<SUBSECTION>
|
||||
|
Loading…
Reference in New Issue
Block a user