Skip to content

Commit

Permalink
Added installs dirictive
Browse files Browse the repository at this point in the history
  • Loading branch information
florianblume committed Sep 8, 2020
1 parent cec9308 commit 6412c27
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
62 changes: 62 additions & 0 deletions qt3d-widget/include/qt3dwidget.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#ifndef QT3DWIDGET_H
#define QT3DWIDGET_H


#include <Qt3DRender/qt3drender_global.h>

#include <QtCore/QtGlobal>
#include <QOpenGLWidget>
#include <Qt3DCore/QEntity>
#include <Qt3DCore/QAbstractAspect>
#include <Qt3DRender/QFrameGraphNode>
#include <Qt3DExtras/QForwardRenderer>
#include <Qt3DRender/QRenderSettings>
#include <Qt3DRender/QCamera>

#if defined(QT3DWIDGETLIB_LIBRARY)
# define QT3DWIDGETLIB_EXPORT Q_DECL_EXPORT
#else
# define QT3DWIDGETLIB_EXPORT Q_DECL_IMPORT
#endif

class Qt3DWidgetPrivate;

class QT3DWIDGETLIB_EXPORT Qt3DWidget : public QOpenGLWidget {
Q_OBJECT

public:
explicit Qt3DWidget(QWidget *parent = nullptr);
~Qt3DWidget();
void initializeGL() override;
void resizeGL(int w, int h) override;

void registerAspect(Qt3DCore::QAbstractAspect *aspect);
void registerAspect(const QString &name);

void setUpdateFrequency(int milliseconds);

void setRootEntity(Qt3DCore::QEntity *root);

void setActiveFrameGraph(Qt3DRender::QFrameGraphNode *activeFrameGraph);
Qt3DRender::QFrameGraphNode *activeFrameGraph() const;
Qt3DExtras::QForwardRenderer *defaultFrameGraph() const;

Qt3DRender::QCamera *camera() const;
Qt3DRender::QRenderSettings *renderSettings() const;

QSurface *surface() const;

public Q_SLOTS:
void paintGL() override;

Q_SIGNALS:

protected:
Qt3DWidgetPrivate *d_ptr;

private:
Q_DECLARE_PRIVATE(Qt3DWidget)

};

#endif // QT3DWIDGET_H
5 changes: 5 additions & 0 deletions qt3d-widget/qt3d-widget.pro
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ CONFIG += c++11 shared_and_static build_all

DEFINES += QT3DWIDGETLIB_LIBRARY

public_headers.path = include
public_headers.files = include/*.h

INSTALLS += public_headers

DESTDIR += ../../../lib

SOURCES += \
Expand Down

0 comments on commit 6412c27

Please sign in to comment.