Blender  V3.3
GHOST_XrControllerModel.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 /* NOTE: Requires OpenXR headers to be included before this one for OpenXR types (XrInstance,
8  * XrSession, etc.). */
9 
10 #pragma once
11 
12 #include <atomic>
13 #include <future>
14 #include <vector>
15 
17 
22  public:
23  GHOST_XrControllerModel(XrInstance instance, const char *subaction_path);
25 
26  void load(XrSession session);
27  void updateComponents(XrSession session);
28  void getData(GHOST_XrControllerModelData &r_data);
29 
30  private:
31  XrPath m_subaction_path = XR_NULL_PATH;
32  XrControllerModelKeyMSFT m_model_key = XR_NULL_CONTROLLER_MODEL_KEY_MSFT;
33 
34  std::future<void> m_load_task;
35  std::atomic<bool> m_data_loaded = false;
36 
37  std::vector<GHOST_XrControllerModelVertex> m_vertices;
38  std::vector<uint32_t> m_indices;
39  std::vector<GHOST_XrControllerModelComponent> m_components;
40  std::vector<GHOST_XrControllerModelNode> m_nodes;
42  std::vector<int32_t> m_node_state_indices;
43 
44  void loadControllerModel(XrSession session);
45 };
in reality light always falls off quadratically Particle Retrieve the data of the particle that spawned the object instance
void updateComponents(XrSession session)
GHOST_XrControllerModel(XrInstance instance, const char *subaction_path)
void getData(GHOST_XrControllerModelData &r_data)
void load(XrSession session)