/** * Copyright (c) 2021 Dominic Masters * * This software is released under the MIT License. * https://opensource.org/licenses/MIT */ #pragma once #include "../../libs.h" #include "../../util/math.h" #include "../../display/primitive.h" #define POKER_WORLD_SEAT_DISTANCE -1 #define POKER_WORLD_SEAT_ROTATION(n) (n * mathDeg2Rad(45.0f)) #define POKER_WORLD_SEAT_POSITION_X(n) ( \ POKER_WORLD_SEAT_DISTANCE * (float)sin(POKER_WORLD_SEAT_ROTATION(n)) \ ) #define POKER_WORLD_SEAT_POSITION_Y -0.2f #define POKER_WORLD_SEAT_POSITION_Z(n) ( \ POKER_WORLD_SEAT_DISTANCE * (float)cos(POKER_WORLD_SEAT_ROTATION(n)) \ ) typedef struct { primitive_t skywall; } pokerworld_t;