mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-03 04:22:09 +08:00
8bb63abe4f
* fixup ui * works * new formate * more cleanup * works I assume we need a library somehow * more readable * fix lead sign * put on road * transformations lib Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> old-commit-hash: ab0456c0eb41090fd9292d8643975e93983ae85e
11 lines
553 B
C++
11 lines
553 B
C++
#pragma once
|
|
#include "ui.hpp"
|
|
|
|
bool calib_frame_to_full_frame(const UIState *s, float in_x, float in_y, float in_z, vertex_data *out);
|
|
void ui_draw(UIState *s);
|
|
void ui_draw_image(const UIState *s, const Rect &r, const char *name, float alpha);
|
|
void ui_draw_rect(NVGcontext *vg, const Rect &r, NVGcolor color, int width, float radius = 0);
|
|
void ui_fill_rect(NVGcontext *vg, const Rect &r, const NVGpaint &paint, float radius = 0);
|
|
void ui_fill_rect(NVGcontext *vg, const Rect &r, const NVGcolor &color, float radius = 0);
|
|
void ui_nvg_init(UIState *s);
|