Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ConstantVelocityMotion.h
Go to the documentation of this file.
1#pragma once
2
4#include "Math/TVector3.h"
5
6namespace ph
7{
8
10{
11public:
12 // TODO: remove
13 explicit ConstantVelocityMotion(const math::Vector3R& velocity);
14
15 void storeCooked(
16 CookedMotion& out_motion,
17 const CookingContext& ctx,
18 const MotionCookConfig& config) const override;
19
20 std::unique_ptr<math::Transform> genLocalToWorld(
21 const Time& start,
22 const Time& end) const override;
23
24private:
25 math::Vector3R m_velocity;
26
27public:
28 // TODO: SDL interface
29};
30
31}// end namespace ph
Definition ConstantVelocityMotion.h:10
void storeCooked(CookedMotion &out_motion, const CookingContext &ctx, const MotionCookConfig &config) const override
Store data suitable for rendering into out_motion.
Definition ConstantVelocityMotion.cpp:16
std::unique_ptr< math::Transform > genLocalToWorld(const Time &start, const Time &end) const override
Definition ConstantVelocityMotion.cpp:31
ConstantVelocityMotion(const math::Vector3R &velocity)
Definition ConstantVelocityMotion.cpp:11
Definition CookedMotion.h:22
Information about the world being cooked.
Definition CookingContext.h:24
Definition CookedMotion.h:11
Definition MotionSource.h:20
Definition Time.h:9
The root for all renderer implementations.
Definition EEngineProject.h:6