26 lines
692 B
C
26 lines
692 B
C
/**
|
|
* Copyright (c) 2021 Dominic Masters
|
|
*
|
|
* This software is released under the MIT License.
|
|
* https://opensource.org/licenses/MIT
|
|
*/
|
|
|
|
#pragma once
|
|
#include "../../../libs.h"
|
|
#include "../../../ui/label.h"
|
|
#include "../../../ui/image.h"
|
|
#include "../../../display/framebuffer.h"
|
|
#include "../../../display/camera.h"
|
|
|
|
#define POKER_PLAYER_UI_IMAGE_SIZE 64
|
|
#define POKER_PLAYER_UI_IMAGE_RESOLUTION POKER_PLAYER_UI_IMAGE_SIZE * 2
|
|
#define POKER_PLAYER_UI_IMAGE_DIST 0.8f
|
|
#define POKER_PLAYER_UI_IMAGE_Y 0.1f
|
|
#define POKER_PLAYER_UI_PADDING 8
|
|
#define POKER_PLAYER_UI_CHIPS_ANIMATION_SPEED 0.5f
|
|
|
|
typedef struct {
|
|
label_t label;
|
|
framebuffer_t frame;
|
|
primitive_t quad;
|
|
} pokerplayerui_t; |