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
3830059b
Kaydet (Commit)
3830059b
authored
Ara 01, 2016
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
get vertices count without jumping through hoops
Change-Id: I0cab6b2f9fffc8cf9fc5059b8dc48fa9407e42b5
üst
8ca055f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
TransitionImpl.cxx
slideshow/source/engine/opengl/TransitionImpl.cxx
+1
-2
TransitionImpl.hxx
slideshow/source/engine/opengl/TransitionImpl.hxx
+7
-0
No files found.
slideshow/source/engine/opengl/TransitionImpl.cxx
Dosyayı görüntüle @
3830059b
...
...
@@ -1998,9 +1998,8 @@ void GlitterTransition::prepareTransition( sal_Int32 glLeavingSlideTex, sal_Int3
// Upload the center of each hexagon.
const
Primitive
&
primitive
=
getScene
().
getLeavingSlide
()[
0
];
int
nbVertices
=
primitive
.
getVerticesByteSize
()
/
sizeof
(
Vertex
);
std
::
vector
<
ThreeFloats
>
vertices
;
for
(
int
i
=
2
;
i
<
nbVertices
;
i
+=
18
)
{
for
(
int
i
=
2
;
i
<
primitive
.
getVerticesCount
()
;
i
+=
18
)
{
const
glm
::
vec3
&
center
=
primitive
.
getVertex
(
i
);
for
(
int
j
=
0
;
j
<
18
;
++
j
)
vertices
.
push_back
({
center
.
x
,
center
.
y
,
center
.
z
});
...
...
slideshow/source/engine/opengl/TransitionImpl.hxx
Dosyayı görüntüle @
3830059b
...
...
@@ -33,6 +33,7 @@
#include <GL/glew.h>
#include <limits>
#include <memory>
#include <vector>
...
...
@@ -335,6 +336,12 @@ public:
*/
const
glm
::
vec3
&
getVertex
(
int
n
)
const
{
return
Vertices
[
n
].
position
;}
int
getVerticesCount
()
const
{
assert
(
Vertices
.
size
()
<
std
::
numeric_limits
<
int
>::
max
());
return
int
(
unsigned
(
Vertices
.
size
()));
}
/** accessor for the size of the vertices data
@return
...
...
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