16#ifndef QGSTERRAINTILELOADER_H
17#define QGSTERRAINTILELOADER_H
38class QgsTerrainEntity;
39class QgsTerrainTileEntity;
54class QgsTerrainTileLoader :
public QgsChunkLoader
60 QgsTerrainTileLoader( QgsTerrainEntity *terrain, QgsChunkNode *mNode );
67 Qt3DRender::QTexture2D *createTexture( QgsTerrainTileEntity *entity );
69 void createTextureComponent( QgsTerrainTileEntity *entity,
bool isShadingEnabled,
const QgsPhongMaterialSettings &shadingMaterial,
bool useTexture );
71 QgsTerrainEntity *terrain() {
return mTerrain; }
74 virtual void onTextureLoaded();
77 void onImageReady(
int jobId,
const QImage &image );
80 QgsTerrainEntity *mTerrain =
nullptr;
82 QString mTileDebugText;
83 int mTextureJobId = -1;
A rectangle specified with double values.