mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 16:40:05 +00:00
Creating OpenGL utility class, consolidating number of OpenGL function objects
This commit is contained in:
parent
c6a323247d
commit
59be110c10
10 changed files with 124 additions and 73 deletions
|
|
@ -17,12 +17,14 @@ namespace scwx
|
|||
namespace qt
|
||||
{
|
||||
|
||||
class MapWidgetImpl;
|
||||
|
||||
class MapWidget : public QOpenGLWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
MapWidget(const QMapboxGLSettings&);
|
||||
explicit MapWidget(const QMapboxGLSettings&);
|
||||
~MapWidget();
|
||||
|
||||
private:
|
||||
|
|
@ -41,12 +43,7 @@ private:
|
|||
|
||||
void AddLayers();
|
||||
|
||||
QPointF lastPos_;
|
||||
|
||||
QMapboxGLSettings settings_;
|
||||
std::shared_ptr<QMapboxGL> map_;
|
||||
|
||||
uint64_t frameDraws_ = 0;
|
||||
std::unique_ptr<MapWidgetImpl> p;
|
||||
|
||||
private slots:
|
||||
void mapChanged(QMapboxGL::MapChange);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue