Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qssglightmapper_p.h>
Classes | |
struct | BakingControl |
Public Types | |
enum class | BakingStatus { None , Progress , Warning , Error , Cancelled , Complete } |
enum class | LightmapAsset { LightmapImage , MeshWithLightmapUV , LightmapImageList } |
typedef std::function< void(BakingStatus, std::optional< QString >, BakingControl *) | Callback) |
Public Member Functions | |
QSSGLightmapper (QSSGRhiContext *rhiCtx, QSSGRenderer *renderer) | |
~QSSGLightmapper () | |
void | reset () |
void | setOptions (const QSSGLightmapperOptions &options) |
void | setOutputCallback (Callback callback) |
qsizetype | add (const QSSGBakedLightingModel &model) |
bool | bake () |
Static Public Member Functions | |
static QString | lightmapAssetPathForLoad (const QSSGRenderModel &model, LightmapAsset asset) |
static QString | lightmapAssetPathForSave (const QSSGRenderModel &model, LightmapAsset asset, const QString &outputFolder={}) |
static QString | lightmapAssetPathForSave (LightmapAsset asset, const QString &outputFolder={}) |
Definition at line 31 of file qssglightmapper_p.h.
typedef std::function<void(BakingStatus, std::optional<QString>, BakingControl*) QSSGLightmapper::Callback) |
Definition at line 47 of file qssglightmapper_p.h.
|
strong |
Enumerator | |
---|---|
None | |
Progress | |
Warning | |
Error | |
Cancelled | |
Complete |
Definition at line 34 of file qssglightmapper_p.h.
|
strong |
Enumerator | |
---|---|
LightmapImage | |
MeshWithLightmapUV | |
LightmapImageList |
Definition at line 57 of file qssglightmapper_p.h.
QT_BEGIN_NAMESPACE QSSGLightmapper::QSSGLightmapper | ( | QSSGRhiContext * | rhiCtx, |
QSSGRenderer * | renderer ) |
Definition at line 1774 of file qssglightmapper.cpp.
QSSGLightmapper::~QSSGLightmapper | ( | ) |
Definition at line 1778 of file qssglightmapper.cpp.
qsizetype QSSGLightmapper::add | ( | const QSSGBakedLightingModel & | model | ) |
Definition at line 1794 of file qssglightmapper.cpp.
Referenced by QSSGLayerRenderData::maybeBakeLightmap().
bool QSSGLightmapper::bake | ( | ) |
Definition at line 1799 of file qssglightmapper.cpp.
References qWarning.
Referenced by QSSGLayerRenderData::maybeBakeLightmap().
|
static |
Definition at line 1807 of file qssglightmapper.cpp.
References model, and QStringLiteral.
Referenced by QSSGBufferManager::loadLightmap(), and QSSGBufferManager::loadMesh().
|
static |
Definition at line 1828 of file qssglightmapper.cpp.
References model, and QStringLiteral.
|
static |
Definition at line 1848 of file qssglightmapper.cpp.
References QStringLiteral.
void QSSGLightmapper::reset | ( | ) |
Definition at line 1782 of file qssglightmapper.cpp.
Referenced by QSSGLayerRenderData::~QSSGLayerRenderData(), and QSSGLayerRenderData::maybeBakeLightmap().
void QSSGLightmapper::setOptions | ( | const QSSGLightmapperOptions & | options | ) |
Definition at line 1786 of file qssglightmapper.cpp.
Referenced by QSSGLayerRenderData::maybeBakeLightmap().
Definition at line 1790 of file qssglightmapper.cpp.
Referenced by QSSGLayerRenderData::maybeBakeLightmap().