mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-18 17:59:51 -06:00
Cleanup for coding style
Add strict mode to check_style_guide script
This commit is contained in:
@@ -109,7 +109,7 @@ glm::vec2 SGCTWindowWrapper::mousePosition() const {
|
||||
sgct::Engine::instance()->getMousePos(id, &posX, &posY);
|
||||
return glm::vec2(posX, posY);
|
||||
}
|
||||
|
||||
|
||||
uint32_t SGCTWindowWrapper::mouseButtons(int maxNumber) const {
|
||||
int id = sgct::Engine::instance()->getCurrentWindowPtr()->getId();
|
||||
uint32_t result = 0;
|
||||
@@ -117,11 +117,11 @@ uint32_t SGCTWindowWrapper::mouseButtons(int maxNumber) const {
|
||||
bool button = (sgct::Engine::instance()->getMouseButton(id, i) != 0);
|
||||
if (button)
|
||||
result |= (1 << i);
|
||||
|
||||
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
glm::ivec2 SGCTWindowWrapper::currentWindowSize() const {
|
||||
auto window = sgct::Engine::instance()->getCurrentWindowPtr();
|
||||
switch (window->getStereoMode()) {
|
||||
@@ -141,7 +141,7 @@ glm::ivec2 SGCTWindowWrapper::currentWindowSize() const {
|
||||
window->getYResolution());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
glm::ivec2 SGCTWindowWrapper::currentWindowResolution() const {
|
||||
int x, y;
|
||||
auto window = sgct::Engine::instance()->getCurrentWindowPtr();
|
||||
|
||||
Reference in New Issue
Block a user