Skip to content

Commit

Permalink
Implement UpdateExample() in examples/src/query.c (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
wgrgwg authored Nov 29, 2023
1 parent 928c04f commit 0a2f6bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/src/query.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ static frSpatialHash *hash;

static frBody *bodies[MAX_OBJECT_COUNT];

static Color primaryColor, secondaryColor;
static Color primaryColor, secondaryColor, greenColor;

/* Private Function Prototypes ============================================= */

Expand Down Expand Up @@ -211,5 +211,6 @@ static frAABB GetCursorBounds(void) {
}

static bool OnHashQuery(int index, void *ctx) {
/* TODO: ... */
frSetBodyUserData(bodies[index], (void *) &secondaryColor);
return true;
}

0 comments on commit 0a2f6bb

Please sign in to comment.