Files
spice2x.github.io/src/spice2x/games/shared/printer.h
T
bicarusandCopilot fdc7adff7f add card connect support (#923)
There are no servers to test this, but:

* touch, touch with mouse
* in theory card reader should work
* printer works (RGB, front and back)
* test/service button, lights

What is (painfully) missing:
* windowed mode

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-11 01:04:14 -07:00

33 lines
864 B
C++

#pragma once
#include <vector>
#include <string>
#include <cstdint>
#include <initializer_list>
#include <windows.h>
namespace games::shared {
// settings
extern std::vector<std::string> PRINTER_PATH;
extern std::vector<std::string> PRINTER_FORMAT;
extern int PRINTER_JPG_QUALITY;
extern bool PRINTER_CLEAR;
extern bool PRINTER_OVERWRITE_FILE;
void printer_attach();
struct PrinterImage {
const uint8_t *data;
int width;
int height;
int components;
std::string suffix;
};
void printer_init_output(std::initializer_list<std::string> suffixes = {""});
bool printer_write_images(std::initializer_list<PrinterImage> images);
bool printer_write_image(const uint8_t *data, int width, int height, int components,
const std::string &suffix = "");
}