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
88c169ea
Commit
88c169ea
authored
Aug 20, 2016
by
Philipp Adolf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused method addRegular
parent
8298651c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
16 deletions
+0
-16
mesh.cpp
QTProject/mesh.cpp
+0
-15
mesh.h
QTProject/mesh.h
+0
-1
No files found.
QTProject/mesh.cpp
View file @
88c169ea
...
...
@@ -22,21 +22,6 @@ Mesh::SubdivEntry::~SubdivEntry()
*/
}
void
Mesh
::
SubdivEntry
::
addRegular
(
QVector
<
unsigned
int
>&
Indices
){
indicesRegular
=
Indices
;
indices
.
clear
();
for
(
int
var
=
0
;
var
<
12
;
++
var
)
{
qDebug
()
<<
indicesRegular
[
var
];
}
f
->
glGenBuffers
(
1
,
&
IB_Regular
);
f
->
glBindBuffer
(
GL_ELEMENT_ARRAY_BUFFER
,
IB_Regular
);
f
->
glBufferData
(
GL_ELEMENT_ARRAY_BUFFER
,
sizeof
(
unsigned
int
)
*
indicesRegular
.
size
(),
&
indicesRegular
[
0
],
GL_STATIC_DRAW
);
}
void
Mesh
::
SubdivEntry
::
updateIndices
()
{
f
->
glDeleteBuffers
(
1
,
&
IB_handle
);
f
->
glGenBuffers
(
1
,
&
IB_handle
);
...
...
QTProject/mesh.h
View file @
88c169ea
...
...
@@ -73,7 +73,6 @@ public:
QVector
<
unsigned
int
>&
Indices_irregular
);
void
init
(
QOpenGLFunctions_4_3_Core
*
f
,
GLuint
VB_handle
,
QVector
<
Vertex
>&
Vertices
,
QVector
<
unsigned
int
>&
Indices_irregular
,
QVector
<
unsigned
int
>&
patches
);
void
addRegular
(
QVector
<
unsigned
int
>&
Indices
);
void
updateIndices
();
};
...
...
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