From 38e79b037827420f09ee9bdf618591022abdfcab Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 6 Mar 2020 21:52:48 +0100 Subject: Move puglSetBackend() to init group --- pugl/pugl.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'pugl') diff --git a/pugl/pugl.h b/pugl/pugl.h index bc168d6..95c2a5f 100644 --- a/pugl/pugl.h +++ b/pugl/pugl.h @@ -591,6 +591,17 @@ puglSetHandle(PuglView* view, PuglHandle handle); PUGL_API PuglHandle puglGetHandle(PuglView* view); +/** + Set the graphics backend to use. + + This needs to be called once before creating the window to set the graphics + backend. There are two backend accessors included with pugl: + puglGlBackend() and puglCairoBackend(), declared in pugl_gl.h and + pugl_cairo.h, respectively. +*/ +PUGL_API PuglStatus +puglSetBackend(PuglView* view, const PuglBackend* backend); + /** Set the function to call when an event occurs. */ @@ -720,17 +731,6 @@ puglGetNativeWindow(PuglView* view); @{ */ -/** - Set the graphics backend to use. - - This needs to be called once before creating the window to set the graphics - backend. There are two backend accessors included with pugl: - puglGlBackend() and puglCairoBackend(), declared in pugl_gl.h and - pugl_cairo.h, respectively. -*/ -PUGL_API PuglStatus -puglSetBackend(PuglView* view, const PuglBackend* backend); - /** Get the drawing context. -- cgit v1.2.1