Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
GraPa
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
GraPa
Commits
5d3de742
Commit
5d3de742
authored
Jan 17, 2016
by
Kai Westerkamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Laptop Läuft
parent
cd0b6201
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
mainwidget.cpp
A5/Animation/mainwidget.cpp
+3
-6
mainwidget.h
A5/Animation/mainwidget.h
+2
-2
No files found.
A5/Animation/mainwidget.cpp
View file @
5d3de742
...
@@ -2,12 +2,7 @@
...
@@ -2,12 +2,7 @@
MainWidget
::
MainWidget
()
MainWidget
::
MainWidget
()
{
{
QSurfaceFormat
format
;
format
.
setDepthBufferSize
(
24
);
format
.
setStencilBufferSize
(
8
);
format
.
setVersion
(
2
,
1
);
format
.
setProfile
(
QSurfaceFormat
::
CoreProfile
);
setFormat
(
format
);
}
}
QSize
MainWidget
::
minimumSizeHint
()
const
QSize
MainWidget
::
minimumSizeHint
()
const
...
@@ -27,6 +22,8 @@ void MainWidget::initializeGL(){
...
@@ -27,6 +22,8 @@ void MainWidget::initializeGL(){
if
(
!
glFunctionsOK
)
if
(
!
glFunctionsOK
)
exit
(
4
);
exit
(
4
);
qDebug
()
<<
"Version"
<<
this
->
format
().
version
();
glClearColor
(
0.0
,
0.0
,
0.0
,
0.0
);
glClearColor
(
0.0
,
0.0
,
0.0
,
0.0
);
glEnable
(
GL_DEPTH_TEST
);
glEnable
(
GL_DEPTH_TEST
);
glDisable
(
GL_CULL_FACE
);
glDisable
(
GL_CULL_FACE
);
...
...
A5/Animation/mainwidget.h
View file @
5d3de742
...
@@ -4,10 +4,10 @@
...
@@ -4,10 +4,10 @@
#include <QObject>
#include <QObject>
#include <QtOpenGL>
#include <QtOpenGL>
#include <QOpenGLWidget>
#include <QOpenGLWidget>
#include <QOpenGLFunctions_
2_1
>
#include <QOpenGLFunctions_
3_3_Core
>
#include <QOpenGLShaderProgram>
#include <QOpenGLShaderProgram>
class
MainWidget
:
public
QOpenGLWidget
,
public
QOpenGLFunctions_
2_1
class
MainWidget
:
public
QOpenGLWidget
,
public
QOpenGLFunctions_
3_3_Core
{
{
Q_OBJECT
Q_OBJECT
public
:
public
:
...
...
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