| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- // Copyright (C) 2009-2015, Panagiotis Christopoulos Charitos.
- // All rights reserved.
- // Code licensed under the BSD License.
- // http://www.anki3d.org/LICENSE
- #ifndef ANKI_SCENE_STATIC_GEOMETRY_NODE_H
- #define ANKI_SCENE_STATIC_GEOMETRY_NODE_H
- #include "anki/scene/Common.h"
- #include "anki/scene/SceneNode.h"
- #include "anki/scene/SpatialComponent.h"
- #include "anki/scene/RenderComponent.h"
- namespace anki {
- /// @addtogroup scene
- /// @{
- /// Static geometry scene node patch
- class StaticGeometryPatchNode: public SceneNode
- {
- friend class StaticGeometryRenderComponent;
- public:
- StaticGeometryPatchNode(SceneGraph* scene);
- ~StaticGeometryPatchNode();
- ANKI_USE_RESULT Error create(
- const CString& name, const ModelPatchBase* modelPatch);
- private:
- const ModelPatchBase* m_modelPatch;
- ANKI_USE_RESULT Error buildRendering(RenderingBuildData& data);
- };
- /// Static geometry scene node
- class StaticGeometryNode: public SceneNode
- {
- public:
- StaticGeometryNode(SceneGraph* scene);
- ~StaticGeometryNode();
- ANKI_USE_RESULT Error create(
- const CString& name, const CString& filename);
- private:
- ModelResourcePointer m_model;
- };
- /// @}
- } // end namespace anki
- #endif
|