16#ifndef QGSTERRAINTILELOADER_H
17#define QGSTERRAINTILELOADER_H
38class QgsTerrainEntity;
39class QgsTerrainTileEntity;
53class QgsTerrainTileLoader :
public QgsChunkLoader
59 QgsTerrainTileLoader( QgsTerrainEntity *terrain, QgsChunkNode *mNode );
66 Qt3DRender::QTexture2D *createTexture( QgsTerrainTileEntity *entity );
68 void createTextureComponent( QgsTerrainTileEntity *entity,
bool isShadingEnabled,
const QgsPhongMaterialSettings &shadingMaterial,
bool useTexture );
70 QgsTerrainEntity *terrain() {
return mTerrain; }
73 virtual void onTextureLoaded();
76 void onImageReady(
int jobId,
const QImage &image );
79 QgsTerrainEntity *mTerrain =
nullptr;
81 QString mTileDebugText;
82 int mTextureJobId = -1;
A rectangle specified with double values.