From 4bc0ae22c68d8eaea488c58318d9d59d2c171b52 Mon Sep 17 00:00:00 2001 From: Shaun Reed Date: Mon, 2 Jan 2023 22:19:38 -0500 Subject: [PATCH] Format --- src/app/qtkwidget.cpp | 6 +++--- src/app/toolbox.h | 5 ++--- src/example-client/examplewidget.cpp | 2 +- src/qtk/input.cpp | 12 ++++++------ src/qtk/model.h | 3 ++- src/qtk/modelmesh.cpp | 2 +- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/app/qtkwidget.cpp b/src/app/qtkwidget.cpp index 5735db4..7824558 100644 --- a/src/app/qtkwidget.cpp +++ b/src/app/qtkwidget.cpp @@ -23,8 +23,7 @@ using namespace Qtk; * Constructors, Destructors ******************************************************************************/ -QtkWidget::QtkWidget(QWidget * parent) : - QtkWidget(parent, "QtkWidget") {} +QtkWidget::QtkWidget(QWidget * parent) : QtkWidget(parent, "QtkWidget") {} QtkWidget::QtkWidget(QWidget * parent, const QString & name) : QtkWidget(parent, name, Q_NULLPTR) {} @@ -246,7 +245,8 @@ void QtkWidget::messageLogged(const QOpenGLDebugMessage & msg) { * Private Methods ******************************************************************************/ -void QtkWidget::teardownGL() { /* Nothing to teardown yet... */ } +void QtkWidget::teardownGL() { /* Nothing to teardown yet... */ +} void QtkWidget::updateCameraInput() { Input::update(); diff --git a/src/app/toolbox.h b/src/app/toolbox.h index 7181cf0..a3c7e1c 100644 --- a/src/app/toolbox.h +++ b/src/app/toolbox.h @@ -23,15 +23,14 @@ namespace Qtk { public: /************************************************************************* - * Contructors / Destructors - *************************************************************************/ + * Contructors / Destructors + *************************************************************************/ explicit ToolBox(QWidget * parent = nullptr); ~ToolBox(); private: - /************************************************************************* * Private Members ************************************************************************/ diff --git a/src/example-client/examplewidget.cpp b/src/example-client/examplewidget.cpp index e72cc8c..ddbd6f2 100644 --- a/src/example-client/examplewidget.cpp +++ b/src/example-client/examplewidget.cpp @@ -12,7 +12,7 @@ ExampleWidget::ExampleWidget(QWidget * parent) : QOpenGLWidget(parent), mScene(new ExampleScene) { - QSurfaceFormat format; + QSurfaceFormat format; format.setRenderableType(QSurfaceFormat::OpenGL); format.setProfile(QSurfaceFormat::CoreProfile); format.setVersion(4, 6); diff --git a/src/qtk/input.cpp b/src/qtk/input.cpp index 91f7a71..366787d 100644 --- a/src/qtk/input.cpp +++ b/src/qtk/input.cpp @@ -19,12 +19,12 @@ using namespace Qtk; * Static Helper Structs ******************************************************************************/ - /** - * Struct to hold key input state. When a key is pressed we construct this and - * store it within a KeyContainer (or ButtonContainer for mouse buttons). - * - * @tparam T Qt::Key or Qt::MouseButton input type for this instance. - */ +/** + * Struct to hold key input state. When a key is pressed we construct this and + * store it within a KeyContainer (or ButtonContainer for mouse buttons). + * + * @tparam T Qt::Key or Qt::MouseButton input type for this instance. + */ template struct InputInstance : std::pair { typedef std::pair base_class; diff --git a/src/qtk/model.h b/src/qtk/model.h index 641d220..f7654f4 100644 --- a/src/qtk/model.h +++ b/src/qtk/model.h @@ -97,7 +97,8 @@ namespace Qtk { * @param location The uniform location * @param value The value to assign to the uniform */ - template inline void setUniform(const char * location, T value) { + template + inline void setUniform(const char * location, T value) { for(auto & mesh : mMeshes) { mesh.mProgram->bind(); mesh.mProgram->setUniformValue(location, value); diff --git a/src/qtk/modelmesh.cpp b/src/qtk/modelmesh.cpp index 341f282..a5dd800 100644 --- a/src/qtk/modelmesh.cpp +++ b/src/qtk/modelmesh.cpp @@ -6,8 +6,8 @@ ## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ## ##############################################################################*/ -#include "scene.h" #include "modelmesh.h" +#include "scene.h" using namespace Qtk;