8#include "../Thirdparty/thirdparty.h"
9#include <boost/describe.hpp>
13 FCT::UniformVar{FCT::UniformType::ProjectionMatrix},
14 FCT::UniformVar{FCT::UniformType::ViewMatrix}
18 template<
class Archive>
19 void serialize(Archive& ar,
const unsigned int version) {
28 template<
class Archive>
29 void serialize(Archive& ar,
const unsigned int version) {
36 FCT::Vec3 scale = FCT::Vec3(1.0f, 1.0f, 1.0f);
37 template<
class Archive>
38 void serialize(Archive& ar,
const unsigned int version) {
47 float nearPlane = 0.1f;
48 float farPlane = 1000.0f;
49 template<
class Archive>
50 void serialize(Archive& ar,
const unsigned int version) {
59 FCT::Mat4 rotationMatrix;
64 FCT::UniformVar{FCT::UniformType::ModelMatrix,
"modelMatrix"}
90 other.uniform =
nullptr;
91 other.ownsUniform =
false;
102 other.uniform =
nullptr;
103 other.ownsUniform =
false;
#define ENGINE_API
定义 EnginePCH.h:14
BOOST_DESCRIBE_STRUCT(PositionComponent,(),(position)) struct ENGINE_API RotationComponent
定义 Camera.h:23
constexpr FCT::UniformSlot ModelUniformSlot
定义 Camera.h:62
constexpr FCT::UniformSlot CameraUniformSlot
定义 Camera.h:11
CacheModelMatrix(const CacheModelMatrix &)=delete
bool ownsUniform
定义 Camera.h:70
CacheModelMatrix()=delete
FCT::Uniform * uniform
定义 Camera.h:68
~CacheModelMatrix()
定义 Camera.h:78
CacheModelMatrix & operator=(CacheModelMatrix &&other) noexcept
定义 Camera.h:94
CacheModelMatrix & operator=(const CacheModelMatrix &)=delete
CacheModelMatrix(CacheModelMatrix &&other) noexcept
定义 Camera.h:88
CacheModelMatrix(FCT::Context *ctx)
定义 Camera.h:73
void serialize(Archive &ar, const unsigned int version)
定义 Camera.h:19
FCT::Vec3 position
定义 Camera.h:17