diff options
author | David Robillard <d@drobilla.net> | 2023-01-08 12:54:56 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-01-08 22:31:51 -0500 |
commit | f1524acbd3e708d1764b7f1533d707b22254ae95 (patch) | |
tree | 83a0a08ca2a7360abaca32e2717090e07b21f0aa /test | |
parent | 1e8431373a494c27c74e34bfa7ab0247e3c29677 (diff) | |
download | pugl-f1524acbd3e708d1764b7f1533d707b22254ae95.tar.gz pugl-f1524acbd3e708d1764b7f1533d707b22254ae95.tar.bz2 pugl-f1524acbd3e708d1764b7f1533d707b22254ae95.zip |
Add PUGL_SAMPLE_BUFFERS hint
Towards a more direct and explicit mapping to platform hints, and more
consistent behaviour across platforms. OpenGL applications are generally
expected to be explicit about hints like this.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_gl_hints.c | 2 | ||||
-rw-r--r-- | test/test_utils.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/test/test_gl_hints.c b/test/test_gl_hints.c index 7e91035..64c7342 100644 --- a/test/test_gl_hints.c +++ b/test/test_gl_hints.c @@ -55,6 +55,7 @@ main(void) assert(!puglSetViewHint(view, PUGL_ALPHA_BITS, PUGL_DONT_CARE)); assert(!puglSetViewHint(view, PUGL_DEPTH_BITS, PUGL_DONT_CARE)); assert(!puglSetViewHint(view, PUGL_STENCIL_BITS, PUGL_DONT_CARE)); + assert(!puglSetViewHint(view, PUGL_SAMPLE_BUFFERS, PUGL_DONT_CARE)); assert(!puglSetViewHint(view, PUGL_SAMPLES, PUGL_DONT_CARE)); assert(!puglSetViewHint(view, PUGL_DOUBLE_BUFFER, PUGL_DONT_CARE)); assert(!puglSetViewHint(view, PUGL_REFRESH_RATE, PUGL_DONT_CARE)); @@ -74,6 +75,7 @@ main(void) assert(puglGetViewHint(view, PUGL_ALPHA_BITS) != PUGL_DONT_CARE); assert(puglGetViewHint(view, PUGL_DEPTH_BITS) != PUGL_DONT_CARE); assert(puglGetViewHint(view, PUGL_STENCIL_BITS) != PUGL_DONT_CARE); + assert(puglGetViewHint(view, PUGL_SAMPLE_BUFFERS) != PUGL_DONT_CARE); assert(puglGetViewHint(view, PUGL_SAMPLES) != PUGL_DONT_CARE); assert(puglGetViewHint(view, PUGL_DOUBLE_BUFFER) != PUGL_DONT_CARE); assert(puglGetViewHint(view, PUGL_SWAP_INTERVAL) != PUGL_DONT_CARE); diff --git a/test/test_utils.h b/test/test_utils.h index 85276fb..db3485b 100644 --- a/test/test_utils.h +++ b/test/test_utils.h @@ -275,6 +275,8 @@ puglViewHintString(const PuglViewHint hint) return "Depth bits"; case PUGL_STENCIL_BITS: return "Stencil bits"; + case PUGL_SAMPLE_BUFFERS: + return "Sample buffers"; case PUGL_SAMPLES: return "Samples"; case PUGL_DOUBLE_BUFFER: |