Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
OpenGL
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
C-Fu
OpenGL
Commits
32b0a95a
Commit
32b0a95a
authored
Dec 30, 2016
by
Anakin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use import data
parent
e863c68a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
QtMeshViewer/Source/GeometryEngine.cpp
QtMeshViewer/Source/GeometryEngine.cpp
+11
-11
No files found.
QtMeshViewer/Source/GeometryEngine.cpp
View file @
32b0a95a
...
...
@@ -103,22 +103,22 @@ void GeometryEngine::initCubeGeometry()
23
,
20
,
21
};
//// Transfer vertex data to VBO 0
//m_arrayBuf.bind();
//m_arrayBuf.allocate(m_models->first()->segmList.front()->vertices.data(), m_models->first()->segmList.front()->vertices.size() * sizeof(VertexData));
//// Transfer index data to VBO 1
//m_indexBuf.bind();
//m_indexBuf.allocate(m_models->first()->segmList.front()->indices.data(), m_models->first()->segmList.front()->indices.size() * sizeof(GLushort));
// Transfer vertex data to VBO 0
m_arrayBuf
.
bind
();
m_arrayBuf
.
allocate
(
vertices
.
data
(),
vertices
.
size
()
*
sizeof
(
VertexData
));
m_arrayBuf
.
allocate
(
m_models
->
first
()
->
segmList
.
front
()
->
vertices
.
data
(),
m_models
->
first
()
->
segmList
.
front
()
->
vertices
.
size
()
*
sizeof
(
VertexData
));
// Transfer index data to VBO 1
m_indexBuf
.
bind
();
m_indexBuf
.
allocate
(
indices
.
data
(),
indices
.
size
()
*
sizeof
(
GLushort
));
m_indexBuf
.
allocate
(
m_models
->
first
()
->
segmList
.
front
()
->
indices
.
data
(),
m_models
->
first
()
->
segmList
.
front
()
->
indices
.
size
()
*
sizeof
(
GLushort
));
//// Transfer vertex data to VBO 0
//m_arrayBuf.bind();
//m_arrayBuf.allocate(vertices.data(), vertices.size() * sizeof(VertexData));
//// Transfer index data to VBO 1
//m_indexBuf.bind();
//m_indexBuf.allocate(indices.data(), indices.size() * sizeof(GLushort));
// load the texture
initTexture
();
...
...
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