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
7a8146e0
Kaydet (Commit)
7a8146e0
authored
Nis 16, 2014
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
non-desktop: Attempt to get rid of glew.
Change-Id: I883ff114ebd98234fcc9f41d69de96aadedadf4b
üst
c553a2fd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
9 deletions
+26
-9
svdoopengl.hxx
include/svx/svdoopengl.hxx
+3
-2
viewobjectcontactofopenglobj.cxx
svx/source/sdr/contact/viewobjectcontactofopenglobj.cxx
+3
-2
svdoopengl.cxx
svx/source/svdraw/svdoopengl.cxx
+20
-5
No files found.
include/svx/svdoopengl.hxx
Dosyayı görüntüle @
7a8146e0
...
...
@@ -26,10 +26,11 @@ class IOpenGLRenderer;
class
SVX_DLLPUBLIC
SdrOpenGLObj
:
public
SdrObject
,
public
IOpenGLInfoProvider
{
public
:
SdrOpenGLObj
();
virtual
~
SdrOpenGLObj
();
virtual
sdr
::
contact
::
ViewContact
*
CreateObjectSpecificViewContact
()
SAL_OVERRIDE
;
OpenGLContext
&
getOpenGLContext
();
OpenGLContext
*
getOpenGLContext
();
virtual
void
NbcResize
(
const
Point
&
rRef
,
const
Fraction
&
xFact
,
const
Fraction
&
yFact
)
SAL_OVERRIDE
;
...
...
@@ -40,7 +41,7 @@ public:
private
:
OpenGLContext
ma
Context
;
OpenGLContext
*
mp
Context
;
boost
::
scoped_ptr
<
IOpenGLRenderer
>
mpRenderer
;
};
...
...
svx/source/sdr/contact/viewobjectcontactofopenglobj.cxx
Dosyayı görüntüle @
7a8146e0
...
...
@@ -21,8 +21,9 @@ ViewObjectContactOfOpenGLObj::ViewObjectContactOfOpenGLObj(
ObjectContact
&
rObjectContact
,
ViewContact
&
rViewContact
)
:
ViewObjectContactOfSdrObj
(
rObjectContact
,
rViewContact
)
{
OpenGLContext
&
rContext
=
static_cast
<
SdrOpenGLObj
&>
(
static_cast
<
ViewContactOfSdrObj
&>
(
rViewContact
).
GetSdrObject
()).
getOpenGLContext
();
rContext
.
init
(
getWindow
());
OpenGLContext
*
pContext
=
static_cast
<
SdrOpenGLObj
&>
(
static_cast
<
ViewContactOfSdrObj
&>
(
rViewContact
).
GetSdrObject
()).
getOpenGLContext
();
if
(
pContext
)
pContext
->
init
(
getWindow
());
}
ViewObjectContactOfOpenGLObj
::~
ViewObjectContactOfOpenGLObj
()
...
...
svx/source/svdraw/svdoopengl.cxx
Dosyayı görüntüle @
7a8146e0
...
...
@@ -7,13 +7,26 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <config_features.h>
#include <svx/svdoopengl.hxx>
#include <svx/sdr/contact/viewcontactofopenglobj.hxx>
#include <vcl/opengl/IOpenGLRenderer.hxx>
SdrOpenGLObj
::
SdrOpenGLObj
()
:
SdrObject
(),
IOpenGLInfoProvider
(),
mpContext
(
NULL
)
{
#if HAVE_FEATURE_DESKTOP
mpContext
=
new
OpenGLContext
;
#endif
}
SdrOpenGLObj
::~
SdrOpenGLObj
()
{
delete
mpContext
;
}
sdr
::
contact
::
ViewContact
*
SdrOpenGLObj
::
CreateObjectSpecificViewContact
()
...
...
@@ -21,17 +34,19 @@ sdr::contact::ViewContact* SdrOpenGLObj::CreateObjectSpecificViewContact()
return
new
sdr
::
contact
::
ViewContactOfOpenGLObj
(
*
this
);
}
OpenGLContext
&
SdrOpenGLObj
::
getOpenGLContext
()
OpenGLContext
*
SdrOpenGLObj
::
getOpenGLContext
()
{
return
m
a
Context
;
return
m
p
Context
;
}
void
SdrOpenGLObj
::
NbcResize
(
const
Point
&
rRef
,
const
Fraction
&
xFact
,
const
Fraction
&
yFact
)
{
SdrObject
::
NbcResize
(
rRef
,
xFact
,
yFact
);
//now pass the information to the OpenGL context
maContext
.
setWinSize
(
aOutRect
.
GetSize
());
// now pass the information to the OpenGL context
if
(
mpContext
)
mpContext
->
setWinSize
(
aOutRect
.
GetSize
());
SAL_WARN
(
"svx.opengl"
,
"resized opengl drawinglayer object"
);
}
...
...
@@ -48,7 +63,7 @@ IOpenGLRenderer* SdrOpenGLObj::getRenderer()
bool
SdrOpenGLObj
::
isOpenGLInitialized
()
{
return
m
aContext
.
isInitialized
();
return
m
pContext
&&
mpContext
->
isInitialized
();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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