Main Page
Namespaces
Classes
Files
File List
File Members
src
Graphics
GteTransformController.cpp
Go to the documentation of this file.
1
// David Eberly, Geometric Tools, Redmond WA 98052
2
// Copyright (c) 1998-2017
3
// Distributed under the Boost Software License, Version 1.0.
4
// http://www.boost.org/LICENSE_1_0.txt
5
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
6
// File Version: 3.0.0 (2016/06/19)
7
8
#include <
GTEnginePCH.h
>
9
#include <
Graphics/GteTransformController.h
>
10
#include <
Graphics/GteSpatial.h
>
11
using namespace
gte
;
12
13
14
TransformController::TransformController
(
Transform
const
& localTransform)
15
:
16
mLocalTransform(localTransform)
17
{
18
}
19
20
bool
TransformController::Update
(
double
applicationTime)
21
{
22
if
(!
Controller::Update
(applicationTime))
23
{
24
return
false
;
25
}
26
27
Spatial
* spatial =
reinterpret_cast<
Spatial
*
>
(
mObject
);
28
spatial->
localTransform
=
mLocalTransform
;
29
return
true
;
30
}
31
gte::Controller::mObject
ControlledObject * mObject
Definition:
GteController.h:71
gte::Spatial
Definition:
GteSpatial.h:25
GTEnginePCH.h
gte::TransformController::Update
virtual bool Update(double applicationTime)
Definition:
GteTransformController.cpp:20
gte::Controller::Update
virtual bool Update(double applicationTime)
Definition:
GteController.cpp:32
gte::Transform
Definition:
GteTransform.h:59
gte
Definition:
GLX/GteWICFileIO.h:16
GteSpatial.h
gte::TransformController::TransformController
TransformController(Transform const &localTransform)
Definition:
GteTransformController.cpp:14
GteTransformController.h
gte::Spatial::localTransform
Transform localTransform
Definition:
GteSpatial.h:49
gte::TransformController::mLocalTransform
Transform mLocalTransform
Definition:
GteTransformController.h:32
geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:01