From ba11bb80c96fc9c9124ba2fa929425f558f86824 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 7 Jan 2023 19:27:05 -0500 Subject: Rename create/destroy events to realize/unrealize As evidence that this was confusing, the documentation for these was an outright lie, and I've burned quite a bit of time in the past few days trying to rework things based around that flawed understanding. These names make it clear what these events actually are. If we need actual create/destroy events with a broader scope, they'll have to be added, but I suspect those aren't actually useful anyway. --- test/test_realize.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/test_realize.c') diff --git a/test/test_realize.c b/test/test_realize.c index cf2cde6..4bdafae 100644 --- a/test/test_realize.c +++ b/test/test_realize.c @@ -22,7 +22,7 @@ typedef enum { START, - CREATED, + REALIZED, } State; typedef struct { @@ -42,9 +42,9 @@ onEvent(PuglView* view, const PuglEvent* event) } switch (event->type) { - case PUGL_CREATE: + case PUGL_REALIZE: assert(test->state == START); - test->state = CREATED; + test->state = REALIZED; break; default: break; @@ -77,7 +77,7 @@ main(int argc, char** argv) // Create initially invisible window assert(!puglRealize(test.view)); assert(!puglGetVisible(test.view)); - while (test.state < CREATED) { + while (test.state < REALIZED) { assert(!puglUpdate(test.world, -1.0)); } -- cgit v1.2.1