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
ce81fdb6
Commit
ce81fdb6
authored
Jun 28, 2016
by
Philipp Adolf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use GLuint for precomputed tables
parent
1431f036
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
subdivision.cpp
QTProject/subdivision.cpp
+3
-3
subdivision.h
QTProject/subdivision.h
+3
-3
No files found.
QTProject/subdivision.cpp
View file @
ce81fdb6
...
@@ -52,9 +52,9 @@ Mesh *Subdivision::subdivide(Mesh *mesh) {
...
@@ -52,9 +52,9 @@ Mesh *Subdivision::subdivide(Mesh *mesh) {
input
.
vertex_buffer
=
current_mesh
->
getVertexBuffer
();
input
.
vertex_buffer
=
current_mesh
->
getVertexBuffer
();
input
.
index_buffer
=
current_mesh
->
getIndexBuffer
();
input
.
index_buffer
=
current_mesh
->
getIndexBuffer
();
QVector
<
unsigned
int
>
edgeIndices
;
QVector
<
GLu
int
>
edgeIndices
;
QVector
<
unsigned
int
>
vertexIndices
;
QVector
<
GLu
int
>
vertexIndices
;
QVector
<
unsigned
int
>
vertexIndicesOffsets
;
QVector
<
GLu
int
>
vertexIndicesOffsets
;
precomputeTables
(
input
,
edgeIndices
,
vertexIndices
,
vertexIndicesOffsets
);
precomputeTables
(
input
,
edgeIndices
,
vertexIndices
,
vertexIndicesOffsets
);
runShader
(
input
,
edgeIndices
);
runShader
(
input
,
edgeIndices
);
return
NULL
;
return
NULL
;
...
...
QTProject/subdivision.h
View file @
ce81fdb6
...
@@ -27,9 +27,9 @@ private:
...
@@ -27,9 +27,9 @@ private:
QOpenGLShaderProgram
*
edgeShader
;
QOpenGLShaderProgram
*
edgeShader
;
QOpenGLShaderProgram
*
initComputeShaderProgram
(
QString
&
source
);
QOpenGLShaderProgram
*
initComputeShaderProgram
(
QString
&
source
);
void
precomputeTables
(
Input
input
,
QVector
<
unsigned
int
>
&
edgeIndices_base
,
void
precomputeTables
(
Input
input
,
QVector
<
GLu
int
>
&
edgeIndices_base
,
QVector
<
unsigned
int
>
&
vertexIndices
,
QVector
<
unsigned
int
>
&
vertexIndicesOffsets
);
QVector
<
GLuint
>
&
vertexIndices
,
QVector
<
GLu
int
>
&
vertexIndicesOffsets
);
void
runShader
(
Input
input
,
QVector
<
unsigned
int
>
&
edgeIndices
);
void
runShader
(
Input
input
,
QVector
<
GLu
int
>
&
edgeIndices
);
};
};
#endif
#endif
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