[sim] Use wpigui for simulator GUI

This commit is contained in:
Peter Johnson
2020-08-26 00:35:44 -07:00
parent b80fde4388
commit 5d1220e629
9 changed files with 73 additions and 396 deletions

View File

@@ -7,15 +7,10 @@
#pragma once
#include <GL/gl3w.h>
#include <imgui.h>
#include <wpi/Twine.h>
namespace halsimgui {
bool LoadTextureFromFile(const wpi::Twine& filename, GLuint* out_texture,
int* out_width, int* out_height);
// get distance^2 between two ImVec's
inline float GetDistSquared(const ImVec2& a, const ImVec2& b) {
float deltaX = b.x - a.x;

View File

@@ -34,6 +34,7 @@ namespace halsimgui {
class HALSimGui {
public:
static void GlobalInit();
static bool Initialize();
static void Main(void*);
static void Exit(void*);