added settings window,
connected all slider, lineEdits, checkboxes,..., need to connect everything with the OglViewerWidget now
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "geometryengine.h"
|
||||
|
||||
#include "..\Header\SettingsWindow.h"
|
||||
#include <QOpenGLWidget>
|
||||
#include <QOpenGLFunctions>
|
||||
#include <QMatrix4x4>
|
||||
@@ -40,10 +40,12 @@ private:
|
||||
struct {
|
||||
QVector4D position = { 1,1,1,0 };
|
||||
QVector3D intensities = { 1.0,1.0,1.0 };
|
||||
float attenuationFactor = 0.2f;
|
||||
float attenuationFactor = 0.0f;
|
||||
float ambientCoefficient = 0.005f;
|
||||
} m_light;
|
||||
|
||||
SettingsWindow* m_settings;
|
||||
|
||||
QVector4D m_backgroundColor = {0.5f, 0.8f, 1.0f, 1.0f};
|
||||
|
||||
QOpenGLShaderProgram m_program;
|
||||
@@ -83,6 +85,7 @@ public slots:
|
||||
void changeDirection(int direction);
|
||||
void toggleWireframe();
|
||||
void toggleLight();
|
||||
void showSettings();
|
||||
|
||||
signals:
|
||||
void sendMessage(QString message, int severity);
|
||||
|
||||
Reference in New Issue
Block a user