| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- // Copyright (C) 2009-2016, Panagiotis Christopoulos Charitos.
- // All rights reserved.
- // Code licensed under the BSD License.
- // http://www.anki3d.org/LICENSE
- #pragma once
- #include <anki/scene/SceneNode.h>
- #include <anki/Math.h>
- #include <anki/collision/Obb.h>
- namespace anki
- {
- /// @addtogroup scene
- /// @{
- /// Proxy used in realtime reflections.
- class ReflectionProxy : public SceneNode
- {
- friend class ReflectionProxyMoveFeedbackComponent;
- public:
- ReflectionProxy(SceneGraph* scene)
- : SceneNode(scene)
- {
- }
- ~ReflectionProxy()
- {
- m_quadsLSpace.destroy(getSceneAllocator());
- }
- /// Create the proxy. The points form a quad and they should be in local
- /// space.
- ANKI_USE_RESULT Error create(const CString& name, const CString& proxyMesh);
- private:
- DArray<Array<Vec4, 4>> m_quadsLSpace; ///< Quads in local space.
- Obb m_boxLSpace;
- Obb m_boxWSpace;
- void onMoveUpdate(const MoveComponent& move);
- };
- /// @}
- } // end namespace anki
|