Pārlūkot izejas kodu

[c][cpp] Update docs of spPhysics enum

Mario Zechner 1 gadu atpakaļ
vecāks
revīzija
7e1d5e5273
1 mainītis faili ar 9 papildinājumiem un 4 dzēšanām
  1. 9 4
      spine-c/spine-c/include/spine/Physics.h

+ 9 - 4
spine-c/spine-c/include/spine/Physics.h

@@ -34,11 +34,16 @@
 extern "C" {
 #endif
 
+/** Determines how physics and other non-deterministic updates are applied. */
 typedef enum {
-    SP_PHYSICS_NONE,
-    SP_PHYSICS_RESET,
-    SP_PHYSICS_UPDATE,
-    SP_PHYSICS_POSE
+  /** Physics are not updated or applied. */
+  SP_PHYSICS_NONE,
+  /** Physics are reset to the current pose. */
+  SP_PHYSICS_RESET,
+  /** Physics are updated and the pose from physics is applied. */
+  SP_PHYSICS_UPDATE,
+  /** Physics are not updated but the pose from physics is applied. */
+  SP_PHYSICS_POSE
 } spPhysics;
 
 #ifdef __cplusplus