Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
PreCookReport.h
Go to the documentation of this file.
1#pragma once
2
3#include "SDL/SdlResourceId.h"
4
5#include <Common/primitive_type.h>
6
7namespace ph::math { class Transform; }
8
9namespace ph
10{
11
12class PreCookReport final
13{
14public:
15 explicit PreCookReport(SdlResourceId rawResourceId);
16
19
21 const math::Transform* localToWorld,
22 const math::Transform* worldToLocal);
23
24 bool isCookable() const;
27
28private:
29 SdlResourceId m_rawResourceId;
30 const math::Transform* m_baseLocalToWorld;
31 const math::Transform* m_baseWorldToLocal;
32 uint32 m_isCookable : 1;
33};
34
35}// end namespace ph
Definition PreCookReport.h:13
PreCookReport & markAsCookable()
Definition PreCookReport.cpp:17
const math::Transform * getBaseLocalToWorld() const
Definition PreCookReport.cpp:43
PreCookReport & setBaseTransforms(const math::Transform *localToWorld, const math::Transform *worldToLocal)
Definition PreCookReport.cpp:29
PreCookReport(SdlResourceId rawResourceId)
Definition PreCookReport.cpp:8
PreCookReport & markAsUncookable()
Definition PreCookReport.cpp:23
const math::Transform * getBaseWorldToLocal() const
Definition PreCookReport.cpp:48
bool isCookable() const
Definition PreCookReport.cpp:38
Definition Transform.h:21
Math functions and utilities.
Definition TransformInfo.h:10
The root for all renderer implementations.
Definition EEngineProject.h:6
std::uint64_t SdlResourceId
Definition SdlResourceId.h:8