mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-04 18:11:01 -05:00
Add ability to configure horizontal field of view per window instead (#3584)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -204,7 +204,15 @@ private:
|
||||
|
||||
properties::IntProperty _framerateLimit;
|
||||
std::chrono::high_resolution_clock::time_point _lastFrameTime;
|
||||
properties::FloatProperty _horizFieldOfView;
|
||||
|
||||
struct Window : properties::PropertyOwner {
|
||||
Window(PropertyOwnerInfo info, int id);
|
||||
|
||||
properties::FloatProperty horizFieldOfView;
|
||||
};
|
||||
|
||||
properties::PropertyOwner _windowing;
|
||||
std::vector<std::unique_ptr<Window>> _windows;
|
||||
|
||||
properties::Vec3Property _globalRotation;
|
||||
properties::Vec3Property _screenSpaceRotation;
|
||||
|
||||
Reference in New Issue
Block a user