Add ability to configure horizontal field of view per window instead (#3584)

This commit is contained in:
Alexander Bock
2025-04-14 19:47:54 +02:00
committed by GitHub
parent 17279d2b4a
commit af20b97dc7
5 changed files with 88 additions and 22 deletions
+4 -2
View File
@@ -99,9 +99,11 @@ struct WindowDelegate {
int (*firstWindowId)() = []() { return 0; };
double (*getHorizFieldOfView)() = []() { return 0.0; };
std::string (*nameForWindow)(int windowIdx) = [](int) { return std::string(); };
void (*setHorizFieldOfView)(float hFovDeg) = [](float) { };
float (*horizFieldOfView)(int windowIdx) = [](int) { return 0.f; };
void (*setHorizFieldOfView)(int windowIdx, float hFovDeg) = [](int, float) {};
void* (*getNativeWindowHandle)(size_t windowIndex) = [](size_t) -> void* {
return nullptr;