Fixing a boatload of warnings

This commit is contained in:
Stefan Högler
2021-04-01 16:40:14 +02:00
parent f042480540
commit d5f0fe644f
84 changed files with 496 additions and 407 deletions
+1 -1
View File
@@ -18,5 +18,5 @@ protected:
Gfx::PGraphics graphics;
Gfx::PViewport target;
};
DEFINE_REF(RenderPath);
DEFINE_REF(RenderPath)
} // namespace Seele
+2 -2
View File
@@ -4,8 +4,8 @@
namespace Seele
{
DECLARE_REF(Scene);
DECLARE_REF(CameraActor);
DECLARE_REF(Scene)
DECLARE_REF(CameraActor)
class SceneRenderPath : public RenderPath
{
public:
+4 -4
View File
@@ -26,7 +26,7 @@ void SceneView::beginFrame()
scene->tick(0);//TODO: update in separate thread
}
void SceneView::keyCallback(KeyCode code, InputAction action, KeyModifier modifier)
void SceneView::keyCallback(KeyCode code, InputAction action, KeyModifier)
{
if(action != InputAction::RELEASE)
{
@@ -56,7 +56,7 @@ void SceneView::mouseMoveCallback(double xPos, double yPos)
}
}
void SceneView::mouseButtonCallback(MouseButton button, InputAction action, KeyModifier modifier)
void SceneView::mouseButtonCallback(MouseButton button, InputAction action, KeyModifier)
{
if(button == MouseButton::MOUSE_BUTTON_1 && action != InputAction::RELEASE)
{
@@ -68,12 +68,12 @@ void SceneView::mouseButtonCallback(MouseButton button, InputAction action, KeyM
}
}
void SceneView::scrollCallback(double xOffset, double yOffset)
void SceneView::scrollCallback(double, double yOffset)
{
activeCamera->getCameraComponent()->mouseScroll(yOffset);
}
void SceneView::fileCallback(int count, const char** paths)
void SceneView::fileCallback(int, const char**)
{
}
+3 -3
View File
@@ -2,8 +2,8 @@
#include "View.h"
namespace Seele
{
DECLARE_REF(Scene);
DECLARE_REF(CameraActor);
DECLARE_REF(Scene)
DECLARE_REF(CameraActor)
class SceneView : public View
{
public:
@@ -20,5 +20,5 @@ private:
virtual void scrollCallback(double xOffset, double yOffset) override;
virtual void fileCallback(int count, const char** paths) override;
};
DEFINE_REF(SceneView);
DEFINE_REF(SceneView)
} // namespace Seele
+1 -1
View File
@@ -2,7 +2,7 @@
#include "RenderPath.h"
namespace Seele
{
DECLARE_REF(Window);
DECLARE_REF(Window)
// A view is a part of the window, which can be anything from a viewport to an editor
class View
{
+1 -1
View File
@@ -22,5 +22,5 @@ private:
PView focusedView;
Gfx::PWindow gfxHandle;
};
DEFINE_REF(Window);
DEFINE_REF(Window)
} // namespace Seele
+1 -1
View File
@@ -28,5 +28,5 @@ private:
Array<PWindow> windows;
static Gfx::PGraphics graphics;
};
DEFINE_REF(WindowManager);
DEFINE_REF(WindowManager)
} // namespace Seele