Free Electron
GodotNode.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __godot_GodotNode_h__
8 #define __godot_GodotNode_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /**************************************************************************//**
16  @brief Generic Godot Node
17 
18  @ingroup godot
19 *//***************************************************************************/
20 class FE_DL_EXPORT GodotNode: public godot::MeshInstance
21 {
22  GODOT_CLASS(GodotNode, godot::MeshInstance)
23 
24  public:
25 
26  GodotNode(void);
27  ~GodotNode(void);
28 
29 static void _register_methods(void);
30  void _init(void);
31  void _process(float delta);
32 
33  private:
34  void createOperator(void);
35  void updateMesh(void);
36 
37  float m_time_passed;
38  float m_time_emit;
39 
40  fe::sp<SingleMaster> m_spSingleMaster;
41  TerminalNode m_terminalNode;
42  sp<SurfaceAccessibleI> m_spOutputAccessible;
43 
44  godot::Ref<godot::MeshDataTool> m_refMeshDataTool;
45  godot::Ref<godot::ArrayMesh> m_refMesh;
46 
47 };
48 
49 } /* namespace ext */
50 } /* namespace fe */
51 
52 #endif /* __godot_GodotNode_h__ */
kernel
Definition: namespace.dox:3
Terminal control of an OperatorSurfaceI.
Definition: TerminalNode.h:20
Generic Godot Node.
Definition: GodotNode.h:20