aboutsummaryrefslogtreecommitdiffstats
path: root/gui/lineshader.h
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2018-11-16 13:25:51 +0000
committerDavid Shah <dave@ds0.me>2018-11-16 13:25:51 +0000
commit9c52afcf5fabd888ec7d89e506ebe00c5a1a3640 (patch)
tree1235428896dcae4bbd8daf6be34a21a7510e2d8c /gui/lineshader.h
parent20aa0a0eedbce02f50e134772dcd2b4a5be830e4 (diff)
downloadnextpnr-9c52afcf5fabd888ec7d89e506ebe00c5a1a3640.tar.gz
nextpnr-9c52afcf5fabd888ec7d89e506ebe00c5a1a3640.tar.bz2
nextpnr-9c52afcf5fabd888ec7d89e506ebe00c5a1a3640.zip
clangformat
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'gui/lineshader.h')
-rw-r--r--gui/lineshader.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/gui/lineshader.h b/gui/lineshader.h
index eb0f9e09..98042051 100644
--- a/gui/lineshader.h
+++ b/gui/lineshader.h
@@ -20,12 +20,12 @@
#ifndef LINESHADER_H
#define LINESHADER_H
-#include <array>
#include <QOpenGLBuffer>
#include <QOpenGLFunctions>
#include <QOpenGLShaderProgram>
#include <QOpenGLVertexArrayObject>
#include <QOpenGLWidget>
+#include <array>
#include "log.h"
#include "nextpnr.h"
@@ -169,9 +169,7 @@ class LineShader
} uniforms_;
public:
- LineShader(QObject *parent) : parent_(parent), program_(nullptr)
- {
- }
+ LineShader(QObject *parent) : parent_(parent), program_(nullptr) {}
static constexpr const char *vertexShaderSource_ =
"#version 110\n"
@@ -194,12 +192,10 @@ class LineShader
// Must be called on initialization.
bool compile(void);
- void update_vbos(enum GraphicElement::style_t style,
- const LineShaderData &line);
+ void update_vbos(enum GraphicElement::style_t style, const LineShaderData &line);
// Render a LineShaderData with a given M/V/P transformation.
- void draw(enum GraphicElement::style_t style, const QColor &color,
- float thickness, const QMatrix4x4 &projection);
+ void draw(enum GraphicElement::style_t style, const QColor &color, float thickness, const QMatrix4x4 &projection);
};
NEXTPNR_NAMESPACE_END