Add rotation class that provides a constant rotation based on in-game time (closes #662)

Refactor functions for rotation, scaling, and translation to take UpdateData rather than current time
This commit is contained in:
Alexander Bock
2018-07-18 15:28:24 -04:00
parent 6ee31384d7
commit 54d1a506c3
33 changed files with 276 additions and 62 deletions
+2
View File
@@ -48,6 +48,7 @@
#include <modules/base/rendering/screenspaceimagelocal.h>
#include <modules/base/rendering/screenspaceimageonline.h>
#include <modules/base/rendering/screenspaceframebuffer.h>
#include <modules/base/rotation/constantrotation.h>
#include <modules/base/rotation/fixedrotation.h>
#include <modules/base/rotation/luarotation.h>
#include <modules/base/rotation/staticrotation.h>
@@ -128,6 +129,7 @@ void BaseModule::internalInitialize(const ghoul::Dictionary&) {
auto fRotation = FactoryManager::ref().factory<Rotation>();
ghoul_assert(fRotation, "Rotation factory was not created");
fRotation->registerClass<ConstantRotation>("ConstantRotation");
fRotation->registerClass<FixedRotation>("FixedRotation");
fRotation->registerClass<LuaRotation>("LuaRotation");
fRotation->registerClass<StaticRotation>("StaticRotation");