Cleanup for coding style

Add strict mode to check_style_guide script
This commit is contained in:
Alexander Bock
2017-11-08 10:35:39 -06:00
parent d94408224c
commit b50b52d351
387 changed files with 1907 additions and 2132 deletions

View File

@@ -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();