Added first frame (data tables) to the test application.

This commit is contained in:
2025-09-21 23:32:54 +02:00
parent b38fa1b68b
commit 5ebd609507
5 changed files with 147 additions and 5 deletions

View File

@@ -4,12 +4,28 @@
#if !defined(RAID_TEST_APPLICATION_HPP_INCLUDED)
#define RAID_TEST_APPLICATION_HPP_INCLUDED 1
#include <array>
#include "raid/raid.hpp"
#include "./frames/data_table.hpp"
namespace raid_test
{
class Application : public raid::Application
{
private:
struct Frame
{
using render_fn_t = void (*)(bool& open);
const char* title;
render_fn_t render;
};
static constexpr Frame FRAMES[] = {
{.title = DATA_TABLE_TITLE, .render = &renderDataTable}
};
static constexpr std::size_t NUM_FRAMES = sizeof(FRAMES) / sizeof(FRAMES[0]);
bool mShowMetrics = false;
std::array<bool, NUM_FRAMES> mFrameOpen{};
protected:
bool init() override;
void configureImgui() override;