Initial commit

This commit is contained in:
2025-11-01 23:54:33 -05:00
commit f397068f8d
44 changed files with 13027 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
#pragma once
#include "Image.hpp"
namespace Tesses::Framework::Graphics
{
class DeviceInfo {
public:
uint8_t Device;
std::string Name;
std::vector<Size> Resolutions;
};
class Device {
private:
std::shared_ptr<HiddenFieldData> field;
public:
Device(uint8_t device, const Size& sz, uint8_t fps=10);
void Open();
std::shared_ptr<Image> ReadFrame();
void Close();
~Device();
static bool IsEnabled();
static std::vector<DeviceInfo> GetDevices();
static void GetDevices(std::vector<DeviceInfo>& devices);
};
}