19 lines
313 B
C
19 lines
313 B
C
#pragma once
|
|
#include <gint/display.h>
|
|
|
|
#define BAR_WIDTH 12
|
|
#define BAR_Y 32
|
|
#define BAR_HEIGHT (DHEIGHT - BAR_Y * 2)
|
|
#define BAR_BASE_FILL 0.5
|
|
|
|
struct Bar {
|
|
int x;
|
|
int y;
|
|
int height;
|
|
float fill;
|
|
};
|
|
|
|
struct Bar bar_init(int x);
|
|
void bar_update(struct Bar *bar);
|
|
void bar_draw(struct Bar bar);
|