pivot.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /* $Header: /Commando/Code/ww3d2/pivot.h 1 1/22/01 3:36p Greg_h $ */
  19. /***********************************************************************************************
  20. *** Confidential - Westwood Studios ***
  21. ***********************************************************************************************
  22. * *
  23. * Project Name : Commando / G 3D Library *
  24. * *
  25. * $Archive:: /Commando/Code/ww3d2/pivot.h $*
  26. * *
  27. * Author:: Greg_h *
  28. * *
  29. * $Modtime:: 1/08/01 10:04a $*
  30. * *
  31. * $Revision:: 1 $*
  32. * *
  33. *---------------------------------------------------------------------------------------------*
  34. * Functions: *
  35. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  36. #if defined(_MSC_VER)
  37. #pragma once
  38. #endif
  39. #ifndef PIVOT_H
  40. #define PIVOT_H
  41. #include "always.h"
  42. #include "vector3.h"
  43. #include "matrix3d.h"
  44. #include "quat.h"
  45. #include "w3d_file.h"
  46. /*
  47. PivotClass
  48. Each node of the hierarchy tree is represented by a
  49. PivotClass.
  50. */
  51. struct PivotClass
  52. {
  53. public:
  54. PivotClass(void);
  55. ~PivotClass(void) {}
  56. char Name[W3D_NAME_LEN];
  57. int Index;
  58. PivotClass * Parent;
  59. // Base configuration of this pivot
  60. Matrix3D BaseTransform; // base-pose transform (relative to parent).
  61. Matrix3D Transform; // computed transform for this pivot
  62. bool IsVisible; // result of the visibility channel
  63. // User control. When a pivot is 'captured' animation data is ignored and the
  64. // user data is used to control the pivot.
  65. bool IsCaptured;
  66. Matrix3D CapTransform;
  67. bool WorldSpaceTranslation;
  68. void Capture_Update(void);
  69. };
  70. #endif