aboutsummaryrefslogtreecommitdiffstats
path: root/test/pugl_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-27 00:59:16 +0200
committerDavid Robillard <d@drobilla.net>2019-07-29 01:59:15 +0200
commit5049953041cbc9592f0470eb185e1448b69835d6 (patch)
tree8752948797a3cb00fb411b97902517e0dee625ac /test/pugl_test.c
parent657a30d29edbf28c2d12788114c988156cfd6996 (diff)
downloadpugl-5049953041cbc9592f0470eb185e1448b69835d6.tar.gz
pugl-5049953041cbc9592f0470eb185e1448b69835d6.tar.bz2
pugl-5049953041cbc9592f0470eb185e1448b69835d6.zip
Completely separate backends from platform implementation
This removes PuglContextType and allows the user to pass a backend directly. Normally this would come from one of the two accessors declared in the headers, but it would be possible to add backends without changing any of the existing code at all. Unfortunately, it is not possible to preserve backwards compatibility and achieve the ultimate goal of linking only to the required dependencies, so puglInitContextType() has just been removed.
Diffstat (limited to 'test/pugl_test.c')
-rw-r--r--test/pugl_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/pugl_test.c b/test/pugl_test.c
index dfc06c6..b83263f 100644
--- a/test/pugl_test.c
+++ b/test/pugl_test.c
@@ -24,6 +24,7 @@
#include "pugl/gl.h"
#include "pugl/pugl.h"
+#include "pugl/pugl_gl_backend.h"
#include <locale.h>
#include <math.h>
@@ -171,6 +172,7 @@ main(int argc, char** argv)
puglInitWindowSize(view, 512, 512);
puglInitWindowMinSize(view, 256, 256);
puglInitWindowAspectRatio(view, 1, 1, 16, 9);
+ puglInitBackend(view, puglGlBackend());
puglInitWindowHint(view, PUGL_RESIZABLE, resizable);
puglInitWindowHint(view, PUGL_SAMPLES, samples);