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
194aa735
Commit
194aa735
authored
Sep 01, 2016
by
Kai Westerkamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug output
parent
14f6e020
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
main.cpp
QTProject/main.cpp
+4
-1
mesh.cpp
QTProject/mesh.cpp
+1
-1
No files found.
QTProject/main.cpp
View file @
194aa735
...
@@ -5,7 +5,10 @@
...
@@ -5,7 +5,10 @@
int
main
(
int
argc
,
char
*
argv
[])
int
main
(
int
argc
,
char
*
argv
[])
{
{
QApplication
a
(
argc
,
argv
);
QApplication
a
(
argc
,
argv
);
QLoggingCategory
::
setFilterRules
(
"subdiv.trace.debug=false
\n
"
);
QLoggingCategory
::
setFilterRules
(
"mesh.debug=false
\n
"
"mesh.render.debug=false
\n
"
"subdiv.debug=true
\n
"
"subdiv.trace.debug=false
\n
"
);
// If you want to enable debug output for some categories use something like this:
// If you want to enable debug output for some categories use something like this:
//QLoggingCategory::setFilterRules("*.debug=false\n"
//QLoggingCategory::setFilterRules("*.debug=false\n"
...
...
QTProject/mesh.cpp
View file @
194aa735
...
@@ -476,7 +476,7 @@ void Mesh::renderMesh(QOpenGLShaderProgram *shader, int index, int subdivision,
...
@@ -476,7 +476,7 @@ void Mesh::renderMesh(QOpenGLShaderProgram *shader, int index, int subdivision,
f
->
glBindBuffer
(
GL_ELEMENT_ARRAY_BUFFER
,
depthEntry
->
IB_regular_handle
);
f
->
glBindBuffer
(
GL_ELEMENT_ARRAY_BUFFER
,
depthEntry
->
IB_regular_handle
);
f
->
glPatchParameteri
(
GL_PATCH_VERTICES
,
12
);
f
->
glPatchParameteri
(
GL_PATCH_VERTICES
,
12
);
f
->
glDrawElements
(
GL_PATCHES
,
depthEntry
->
indices_regular
.
size
(),
GL_UNSIGNED_INT
,
0
);
f
->
glDrawElements
(
GL_PATCHES
,
depthEntry
->
indices_regular
.
size
(),
GL_UNSIGNED_INT
,
0
);
qCDebug
(
log_mesh
)
<<
"Patches "
<<
entry
->
indices_regular
.
size
()
/
12
<<
" Subdivision Level: "
<<
subdivision
;
// qCDebug(log_mesh_render
)<<"Patches "<<entry->indices_regular.size()/12<<" Subdivision Level: "<< subdivision;
}
}
}
}
}
else
{
}
else
{
...
...
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