Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
Unterteilungsalgorithmen
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kai Westerkamp
Unterteilungsalgorithmen
Commits
de4f6e6d
Commit
de4f6e6d
authored
Aug 17, 2016
by
Philipp Adolf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change formatting of mainwidget.h
parent
ad28fd9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
31 deletions
+24
-31
mainwidget.h
QTProject/mainwidget.h
+24
-31
No files found.
QTProject/mainwidget.h
View file @
de4f6e6d
...
...
@@ -17,6 +17,7 @@
class
MainWidget
:
public
QOpenGLWidget
,
public
QOpenGLFunctions_4_3_Core
{
Q_OBJECT
public
:
MainWidget
(
Camera
*
cam
);
...
...
@@ -35,41 +36,33 @@ public slots:
void
subdivide
(
int
level
);
void
setdebugOutput
(
bool
output
);
protected
:
void
initializeGL
();
void
paintGL
();
void
resizeGL
(
int
width
,
int
height
);
void
initializeGL
();
void
paintGL
();
void
resizeGL
(
int
width
,
int
height
);
void
mousePressEvent
(
QMouseEvent
*
event
)
;
void
mouseMoveEvent
(
QMouseEvent
*
event
)
;
void
wheelEvent
(
QWheelEvent
*
event
)
;
void
mousePressEvent
(
QMouseEvent
*
event
)
;
void
mouseMoveEvent
(
QMouseEvent
*
event
)
;
void
wheelEvent
(
QWheelEvent
*
event
)
;
private
:
QVector3D
*
trackballPoint
(
int
x
,
int
y
);
void
rotate
(
QVector3D
*
newPos
);
void
move
(
QPointF
*
newPos
);
Camera
*
cam
;
QOpenGLShaderProgram
*
subdivisionShader
;
QOpenGLShaderProgram
*
regularShader
;
QMatrix4x4
m_projection
;
QTime
startTime
;
QTime
rotTime
;
float
camDistance
;
QVector3D
*
lastSpeherePos
;
QPointF
*
lastScreenPos
;
Subdivision
*
subdivision
;
Mesh
*
mesh
;
QOpenGLShaderProgram
*
initShaderProgram
(
QString
vertSource
,
QString
tesselationControlSource
,
QString
tesselationEvaluationSource
,
QString
geometrySource
,
QString
fragSource
);
QOpenGLShader
*
initGLShader
(
QString
scource
,
QOpenGLShader
::
ShaderType
type
);
Camera
*
cam
;
QOpenGLShaderProgram
*
subdivisionShader
;
QOpenGLShaderProgram
*
regularShader
;
QMatrix4x4
m_projection
;
QTime
startTime
;
QTime
rotTime
;
float
camDistance
;
QVector3D
*
lastSpeherePos
;
QPointF
*
lastScreenPos
;
Subdivision
*
subdivision
;
Mesh
*
mesh
;
QOpenGLShaderProgram
*
initShaderProgram
(
QString
vertSource
,
QString
tesselationControlSource
,
QString
tesselationEvaluationSource
,
QString
geometrySource
,
QString
fragSource
);
QOpenGLShader
*
initGLShader
(
QString
scource
,
QOpenGLShader
::
ShaderType
type
);
QVector3D
*
trackballPoint
(
int
x
,
int
y
);
void
rotate
(
QVector3D
*
newPos
);
void
move
(
QPointF
*
newPos
);
};
#endif // MAINWIDGET_H
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment