QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
qgsimagetexture.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  qgs3dsceneexporter.h
3  --------------------------------------
4  Date : July 2020
5  Copyright : (C) 2020 by Belgacem Nedjima
6  Email : gb underscore nedjima at esi dot dz
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #include "qgsimagetexture.h"
17 
18 
19 QgsImageTexture::QgsImageTexture( const QImage &image, Qt3DCore::QNode *parent )
20  : Qt3DRender::QPaintedTextureImage( parent )
21  , mImage( image )
22 {
23  setSize( mImage.size() );
24 }
QgsImageTexture::QgsImageTexture
QgsImageTexture(const QImage &image, Qt3DCore::QNode *parent=nullptr)
Constructor.
Definition: qgsimagetexture.cpp:19
Qt3DRender
Definition: qgs3dmapscene.h:28
qgsimagetexture.h