summaryrefslogtreecommitdiff
path: root/avmedia/source/opengl/oglwindow.hxx
diff options
context:
space:
mode:
authorZolnai Tamás <tamas.zolnai@collabora.com>2014-04-27 12:20:13 +0200
committerZolnai Tamás <tamas.zolnai@collabora.com>2014-04-27 12:34:07 +0200
commite112ac81d1c3a91d46ea660ac4e01e6c94ee900e (patch)
tree284226e20c4c25d0b1d04fc0fc4056aa66ffff33 /avmedia/source/opengl/oglwindow.hxx
parentb5529c8c457f442bfc43305becc0c02d6a09ee80 (diff)
First try to render OpenGL content in a window
Change-Id: Ibb7178330d356806cea2cfc972b361167d5a9340
Diffstat (limited to 'avmedia/source/opengl/oglwindow.hxx')
-rw-r--r--avmedia/source/opengl/oglwindow.hxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/avmedia/source/opengl/oglwindow.hxx b/avmedia/source/opengl/oglwindow.hxx
index d373dd1c8e5a..95767c04d52c 100644
--- a/avmedia/source/opengl/oglwindow.hxx
+++ b/avmedia/source/opengl/oglwindow.hxx
@@ -17,13 +17,16 @@
#include <com/sun/star/media/XPlayerWindow.hpp>
#include <com/sun/star/media/ZoomLevel.hpp>
+#include <libgltf.h>
+#include <vcl/opengl/OpenGLContext.hxx>
+
namespace avmedia { namespace ogl {
class OGLWindow : public ::cppu::WeakImplHelper2 < com::sun::star::media::XPlayerWindow,
com::sun::star::lang::XServiceInfo >
{
public:
- OGLWindow( OGLPlayer& rPlayer );
+ OGLWindow( glTFHandle* pHandle, OpenGLContext* pContext );
virtual ~OGLWindow();
virtual void SAL_CALL update() throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
@@ -39,7 +42,7 @@ public:
virtual void SAL_CALL addEventListener( const com::sun::star::uno::Reference< com::sun::star::lang::XEventListener >& xListener ) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL removeEventListener( const com::sun::star::uno::Reference< com::sun::star::lang::XEventListener >& aListener ) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
- virtual void SAL_CALL setPosSize( sal_Int32 X, sal_Int32 Y, sal_Int32 Width, sal_Int32 Height, sal_Int16 Flags ) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
+ virtual void SAL_CALL setPosSize( sal_Int32 nX, sal_Int32 nY, sal_Int32 nWidth, sal_Int32 nHeight, sal_Int16 nFlags ) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual com::sun::star::awt::Rectangle SAL_CALL getPosSize() throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setVisible( sal_Bool Visible ) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setEnable( sal_Bool Enable ) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
@@ -58,7 +61,9 @@ public:
virtual void SAL_CALL removePaintListener( const com::sun::star::uno::Reference< com::sun::star::awt::XPaintListener >& xListener ) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
private:
- OGLPlayer& m_rPlayer;
+ glTFHandle* m_pHandle;
+ OpenGLContext* m_pContext;
+ bool m_bVisible;
com::sun::star::media::ZoomLevel meZoomLevel;
};