MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / DetachController

Method DetachController

GTE/Graphics/ControlledObject.cpp:35–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void ControlledObject::DetachController(std::shared_ptr<Controller> const& controller)
36{
37 for (auto const& element : mControllers)
38 {
39 if (element == controller)
40 {
41 // Unbind the controller from the object.
42 controller->SetObject(nullptr);
43
44 // Remove the controller from the list.
45 mControllers.remove(controller);
46 return;
47 }
48 }
49}
50
51void ControlledObject::DetachAllControllers()
52{

Callers

nothing calls this directly

Calls 1

SetObjectMethod · 0.45

Tested by

no test coverage detected