WVR_EXPORT WVR_Arena_t WVR_GetArena()

Function to return the currently supported play area dimensions info.

The play area dimensions depends on the shape of the play area. For rectangle, check rectangle; for round, check round.

The supported play area shape and dimensions. (refer to WVR_Arena)
API Level 1

How to use

Here is an example for the function:

#include <wvr/wvr_arena.h>
WVR_Arena_t arenaData = WVR_GetArena();
if (arenaData.shape == WVR_ArenaShape_Rectangle) {
    float play_area_range_width_x = arena.area.rectangle.width;
    float play_area_range_depth_z = arena.area.rectangle.length;
} else if (arenaData.shape == WVR_ArenaShape_Round) {
    float play_area_range_diameter = arena.area.round.diameter;

// somewhere listen Arena changed event
if (event.common.type == WVR_EventType_ArenaChanged) {  // got Arena changed event
    arenaData = WVR_GetArena();  // re-load it again