Skip to content
Permalink
Browse files

Added QgsImageTexture documentations

  • Loading branch information
NEDJIMAbelgacem committed Jul 22, 2020
1 parent 752a271 commit 21082315867f025072ec81aba7fecec099746ae6
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/3d/qgsimagetexture.h
@@ -24,13 +24,16 @@
class QgsImageTexture : public Qt3DRender::QPaintedTextureImage
{
public:
//! Constructor
QgsImageTexture( const QImage &image, Qt3DCore::QNode *parent = nullptr );

//! paints on the current QImage using painter
void paint( QPainter *painter ) override
{
painter->drawImage( mImage.rect(), mImage, mImage.rect() );
}

//! Returns the image
QImage getImage() const { return mImage; }

private:

0 comments on commit 2108231

Please sign in to comment.
You can’t perform that action at this time.