Add random colored borders to browsers and targets that are sufficiently bright, and add function to pass them to GUI

This commit is contained in:
Ylva Selling
2021-05-04 09:14:35 +02:00
parent 70642b0a55
commit 2eecb08bcf
7 changed files with 82 additions and 32 deletions
@@ -51,15 +51,14 @@ namespace openspace {
bool _browserDimIsDirty;
properties::FloatProperty _vfieldOfView;
properties::StringProperty _skyTargetID;
properties::Vec3Property _borderColor;
private:
glm::vec2 _startDimensionsSize;
float _startScale;
properties::Vec2Property _browserDimensions;
bool _camIsSyncedWWT;
ScreenSpaceSkyTarget* _skyTarget;
std::thread _threadWWTMessages;
glm::ivec3 _borderColor;
std::thread _threadWWTMessages;
};
}
@@ -59,7 +59,7 @@ namespace openspace {
GLuint _vertexBuffer = 0;
float _fieldOfView = 100.f;
ScreenSpaceSkyBrowser* _skyBrowser;
glm::vec3 _borderColor;
glm::ivec3 _borderColor;
};
}