Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
7dcc31ed
Kaydet (Commit)
7dcc31ed
authored
Agu 02, 2014
tarafından
weigao
Kaydeden (comit)
Markus Mohrhard
Agu 06, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
pick bar path should use the IDs in pick resource
Change-Id: Ifd20a7a9ecb85ffc080204f4f3e9f200b07b9a9c
üst
00f097b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
GL3DRenderer.cxx
chart2/source/view/main/GL3DRenderer.cxx
+7
-7
No files found.
chart2/source/view/main/GL3DRenderer.cxx
Dosyayı görüntüle @
7dcc31ed
...
@@ -930,7 +930,7 @@ void OpenGL3DRenderer::RenderPolygon3D(const Polygon3DInfo& polygon)
...
@@ -930,7 +930,7 @@ void OpenGL3DRenderer::RenderPolygon3D(const Polygon3DInfo& polygon)
{
{
glm
::
mat4
aMVP
=
m_3DProjection
*
m_3DView
*
m_Model
;
glm
::
mat4
aMVP
=
m_3DProjection
*
m_3DView
*
m_Model
;
glUniformMatrix4fv
(
maPickingResources
.
m_MatrixID
,
1
,
GL_FALSE
,
&
aMVP
[
0
][
0
]);
glUniformMatrix4fv
(
maPickingResources
.
m_MatrixID
,
1
,
GL_FALSE
,
&
aMVP
[
0
][
0
]);
glUniform4fv
(
maResources
.
m_2DColorID
,
1
,
&
polygon
.
id
[
0
]);
glUniform4fv
(
ma
Picking
Resources
.
m_2DColorID
,
1
,
&
polygon
.
id
[
0
]);
}
}
GLint
maVertexID
=
mbPickingMode
?
maPickingResources
.
m_2DVertexID
:
maResources
.
m_3DVertexID
;
GLint
maVertexID
=
mbPickingMode
?
maPickingResources
.
m_2DVertexID
:
maResources
.
m_3DVertexID
;
// 1rst attribute buffer : vertices
// 1rst attribute buffer : vertices
...
@@ -1321,7 +1321,7 @@ void OpenGL3DRenderer::RenderExtrudeFlatSurface(const Extrude3DInfo& extrude3D,
...
@@ -1321,7 +1321,7 @@ void OpenGL3DRenderer::RenderExtrudeFlatSurface(const Extrude3DInfo& extrude3D,
{
{
glm
::
mat4
aMVP
=
m_3DProjection
*
m_3DView
*
m_Model
;
glm
::
mat4
aMVP
=
m_3DProjection
*
m_3DView
*
m_Model
;
glUniformMatrix4fv
(
maPickingResources
.
m_MatrixID
,
1
,
GL_FALSE
,
&
aMVP
[
0
][
0
]);
glUniformMatrix4fv
(
maPickingResources
.
m_MatrixID
,
1
,
GL_FALSE
,
&
aMVP
[
0
][
0
]);
glUniform4fv
(
maResources
.
m_2DColorID
,
1
,
&
extrude3D
.
id
[
0
]);
glUniform4fv
(
ma
Picking
Resources
.
m_2DColorID
,
1
,
&
extrude3D
.
id
[
0
]);
}
}
glDrawElements
(
GL_TRIANGLES
,
extrude3D
.
size
[
surIndex
],
GL_UNSIGNED_SHORT
,
reinterpret_cast
<
GLvoid
*>
(
extrude3D
.
startIndex
[
surIndex
]));
glDrawElements
(
GL_TRIANGLES
,
extrude3D
.
size
[
surIndex
],
GL_UNSIGNED_SHORT
,
reinterpret_cast
<
GLvoid
*>
(
extrude3D
.
startIndex
[
surIndex
]));
...
@@ -1365,7 +1365,7 @@ void OpenGL3DRenderer::RenderExtrudeBottomSurface(const Extrude3DInfo& extrude3D
...
@@ -1365,7 +1365,7 @@ void OpenGL3DRenderer::RenderExtrudeBottomSurface(const Extrude3DInfo& extrude3D
{
{
glm
::
mat4
aMVP
=
m_3DProjection
*
m_3DView
*
m_Model
;
glm
::
mat4
aMVP
=
m_3DProjection
*
m_3DView
*
m_Model
;
glUniformMatrix4fv
(
maPickingResources
.
m_MatrixID
,
1
,
GL_FALSE
,
&
aMVP
[
0
][
0
]);
glUniformMatrix4fv
(
maPickingResources
.
m_MatrixID
,
1
,
GL_FALSE
,
&
aMVP
[
0
][
0
]);
glUniform4fv
(
maResources
.
m_2DColorID
,
1
,
&
extrude3D
.
id
[
0
]);
glUniform4fv
(
ma
Picking
Resources
.
m_2DColorID
,
1
,
&
extrude3D
.
id
[
0
]);
}
}
glDrawElements
(
GL_TRIANGLES
,
extrude3D
.
size
[
BOTTOM_SURFACE
],
GL_UNSIGNED_SHORT
,
reinterpret_cast
<
GLvoid
*>
(
extrude3D
.
startIndex
[
BOTTOM_SURFACE
]));
glDrawElements
(
GL_TRIANGLES
,
extrude3D
.
size
[
BOTTOM_SURFACE
],
GL_UNSIGNED_SHORT
,
reinterpret_cast
<
GLvoid
*>
(
extrude3D
.
startIndex
[
BOTTOM_SURFACE
]));
}
}
...
@@ -1410,7 +1410,7 @@ void OpenGL3DRenderer::RenderExtrudeMiddleSurface(const Extrude3DInfo& extrude3D
...
@@ -1410,7 +1410,7 @@ void OpenGL3DRenderer::RenderExtrudeMiddleSurface(const Extrude3DInfo& extrude3D
{
{
glm
::
mat4
aMVP
=
m_3DProjection
*
m_3DView
*
m_Model
;
glm
::
mat4
aMVP
=
m_3DProjection
*
m_3DView
*
m_Model
;
glUniformMatrix4fv
(
maPickingResources
.
m_MatrixID
,
1
,
GL_FALSE
,
&
aMVP
[
0
][
0
]);
glUniformMatrix4fv
(
maPickingResources
.
m_MatrixID
,
1
,
GL_FALSE
,
&
aMVP
[
0
][
0
]);
glUniform4fv
(
maResources
.
m_2DColorID
,
1
,
&
extrude3D
.
id
[
0
]);
glUniform4fv
(
ma
Picking
Resources
.
m_2DColorID
,
1
,
&
extrude3D
.
id
[
0
]);
}
}
glDrawElements
(
GL_TRIANGLES
,
extrude3D
.
size
[
MIDDLE_SURFACE
],
GL_UNSIGNED_SHORT
,
reinterpret_cast
<
GLvoid
*>
(
extrude3D
.
startIndex
[
MIDDLE_SURFACE
]));
glDrawElements
(
GL_TRIANGLES
,
extrude3D
.
size
[
MIDDLE_SURFACE
],
GL_UNSIGNED_SHORT
,
reinterpret_cast
<
GLvoid
*>
(
extrude3D
.
startIndex
[
MIDDLE_SURFACE
]));
}
}
...
@@ -1455,7 +1455,7 @@ void OpenGL3DRenderer::RenderExtrudeTopSurface(const Extrude3DInfo& extrude3D)
...
@@ -1455,7 +1455,7 @@ void OpenGL3DRenderer::RenderExtrudeTopSurface(const Extrude3DInfo& extrude3D)
{
{
glm
::
mat4
aMVP
=
m_3DProjection
*
m_3DView
*
m_Model
;
glm
::
mat4
aMVP
=
m_3DProjection
*
m_3DView
*
m_Model
;
glUniformMatrix4fv
(
maPickingResources
.
m_MatrixID
,
1
,
GL_FALSE
,
&
aMVP
[
0
][
0
]);
glUniformMatrix4fv
(
maPickingResources
.
m_MatrixID
,
1
,
GL_FALSE
,
&
aMVP
[
0
][
0
]);
glUniform4fv
(
maResources
.
m_2DColorID
,
1
,
&
extrude3D
.
id
[
0
]);
glUniform4fv
(
ma
Picking
Resources
.
m_2DColorID
,
1
,
&
extrude3D
.
id
[
0
]);
}
}
glDrawElements
(
GL_TRIANGLES
,
extrude3D
.
size
[
TOP_SURFACE
],
GL_UNSIGNED_SHORT
,
reinterpret_cast
<
GLvoid
*>
(
extrude3D
.
startIndex
[
TOP_SURFACE
]));
glDrawElements
(
GL_TRIANGLES
,
extrude3D
.
size
[
TOP_SURFACE
],
GL_UNSIGNED_SHORT
,
reinterpret_cast
<
GLvoid
*>
(
extrude3D
.
startIndex
[
TOP_SURFACE
]));
}
}
...
@@ -1485,7 +1485,7 @@ void OpenGL3DRenderer::RenderNonRoundedBar(const Extrude3DInfo& extrude3D)
...
@@ -1485,7 +1485,7 @@ void OpenGL3DRenderer::RenderNonRoundedBar(const Extrude3DInfo& extrude3D)
{
{
glm
::
mat4
aMVP
=
m_3DProjection
*
m_3DView
*
m_Model
;
glm
::
mat4
aMVP
=
m_3DProjection
*
m_3DView
*
m_Model
;
glUniformMatrix4fv
(
maPickingResources
.
m_MatrixID
,
1
,
GL_FALSE
,
&
aMVP
[
0
][
0
]);
glUniformMatrix4fv
(
maPickingResources
.
m_MatrixID
,
1
,
GL_FALSE
,
&
aMVP
[
0
][
0
]);
glUniform4fv
(
maResources
.
m_2DColorID
,
1
,
&
extrude3D
.
id
[
0
]);
glUniform4fv
(
ma
Picking
Resources
.
m_2DColorID
,
1
,
&
extrude3D
.
id
[
0
]);
}
}
glDrawArrays
(
GL_TRIANGLES
,
0
,
36
);
glDrawArrays
(
GL_TRIANGLES
,
0
,
36
);
}
}
...
@@ -1549,7 +1549,7 @@ void OpenGL3DRenderer::RenderExtrude3DObject()
...
@@ -1549,7 +1549,7 @@ void OpenGL3DRenderer::RenderExtrude3DObject()
GLuint
normalBuf
=
extrude3DInfo
.
rounded
?
m_CubeNormalBuf
:
m_BoundBoxNormal
;
GLuint
normalBuf
=
extrude3DInfo
.
rounded
?
m_CubeNormalBuf
:
m_BoundBoxNormal
;
if
(
mbPickingMode
)
if
(
mbPickingMode
)
glUniform4fv
(
maResources
.
m_2DColorID
,
1
,
&
extrude3DInfo
.
id
[
0
]);
glUniform4fv
(
ma
Picking
Resources
.
m_2DColorID
,
1
,
&
extrude3DInfo
.
id
[
0
]);
// 1st attribute buffer : vertices
// 1st attribute buffer : vertices
GLint
aVertexID
=
mbPickingMode
?
maPickingResources
.
m_2DVertexID
:
maResources
.
m_3DVertexID
;
GLint
aVertexID
=
mbPickingMode
?
maPickingResources
.
m_2DVertexID
:
maResources
.
m_3DVertexID
;
...
...
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