[glass] Field2D: Embed standard field images (#5159)

This commit is contained in:
Peter Johnson
2023-05-12 21:31:38 -07:00
committed by GitHub
parent 102e4f2566
commit 27fb47ab10
10 changed files with 154 additions and 30 deletions

View File

@@ -0,0 +1,20 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#pragma once
#include <span>
#include <string_view>
namespace fields {
struct Field {
const char* name;
std::string_view (*getJson)();
std::string_view (*getImage)();
};
std::span<const Field> GetFields();
} // namespace fields