mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-07 04:00:37 -06:00
"t" and "Shift+t" are Lua bindings in common.lua Maybe needs to be part of SettingsEngine instead, but the display code was already in RenderEngine, so it'll do for now on this branch
75 lines
3.7 KiB
C++
75 lines
3.7 KiB
C++
/*****************************************************************************************
|
|
* *
|
|
* OpenSpace *
|
|
* *
|
|
* Copyright (c) 2014-2016 *
|
|
* *
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
|
* software and associated documentation files (the "Software"), to deal in the Software *
|
|
* without restriction, including without limitation the rights to use, copy, modify, *
|
|
* merge, publish, distribute, sublicense, and/or sell copies of the Software, and to *
|
|
* permit persons to whom the Software is furnished to do so, subject to the following *
|
|
* conditions: *
|
|
* *
|
|
* The above copyright notice and this permission notice shall be included in all copies *
|
|
* or substantial portions of the Software. *
|
|
* *
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, *
|
|
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A *
|
|
* PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT *
|
|
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF *
|
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE *
|
|
* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
|
|
****************************************************************************************/
|
|
|
|
#ifndef __SGCTWINDOWWRAPPER_H__
|
|
#define __SGCTWINDOWWRAPPER_H__
|
|
|
|
#include <openspace/engine/wrapper/windowwrapper.h>
|
|
|
|
namespace openspace {
|
|
|
|
/**
|
|
* WindowWrapper subclass wrapping the Simple Graphics Cluster Toolkit, forwarding all
|
|
* method calls to the specific functions in the Engine and SGCTWindow classes.
|
|
* \sa https://c-student.itn.liu.se/wiki/develop:sgct:sgct
|
|
*/
|
|
class SGCTWindowWrapper : public WindowWrapper {
|
|
public:
|
|
void terminate() override;
|
|
void setBarrier(bool enabled) override;
|
|
void clearAllWindows(const glm::vec4& clearColor) override;
|
|
bool windowHasResized() const override;
|
|
|
|
double averageDeltaTime() const override;
|
|
double deltaTime() const override;
|
|
glm::vec2 mousePosition() const override;
|
|
uint32_t mouseButtons(int maxNumber) const override;
|
|
glm::ivec2 currentWindowSize() const override;
|
|
glm::ivec2 currentWindowResolution() const override;
|
|
glm::ivec2 currentDrawBufferResolution() const override;
|
|
int currentNumberOfAaSamples() const override;
|
|
|
|
bool isRegularRendering() const override;
|
|
bool hasGuiWindow() const override;
|
|
bool isGuiWindow() const override;
|
|
|
|
glm::mat4 viewProjectionMatrix() const override;
|
|
glm::mat4 modelMatrix() const override;
|
|
void setNearFarClippingPlane(float near, float far) override;
|
|
void setEyeSeparationDistance(float distance) override;
|
|
|
|
glm::ivec4 viewportPixelCoordinates() const override;
|
|
|
|
bool isExternalControlConnected() const override;
|
|
void sendMessageToExternalControl(const std::vector<char>& message) const override;
|
|
|
|
bool isSimpleRendering() const override;
|
|
|
|
void takeScreenshot() const override;
|
|
};
|
|
|
|
} // namespace openspace
|
|
|
|
#endif // __SGCTWINDOWWRAPPER_H__
|