asf_data.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. //----------------------------------------------------------------------------
  19. // Axes
  20. //----------------------------------------------------------------------------
  21. enum Axis_Names
  22. {
  23. ROTATE_X,
  24. ROTATE_Y,
  25. ROTATE_Z,
  26. TRANSLATE_X,
  27. TRANSLATE_Y,
  28. TRANSLATE_Z,
  29. TRANSLATE_LENGTH
  30. };
  31. //----------------------------------------------------------------------------
  32. // ASF_Data_Chunk
  33. //----------------------------------------------------------------------------
  34. struct ASF_Data_Chunk
  35. {
  36. ASF_Data_Chunk () : Number_of_axes (0) {}
  37. void add_axis ( Axis_Names new_axis )
  38. {
  39. if ( Number_of_axes < 7 )
  40. {
  41. Axis [Number_of_axes] = new_axis;
  42. ++ Number_of_axes;
  43. }
  44. }
  45. unsigned Number_of_axes;
  46. Axis_Names Axis [ 7 ];
  47. };
  48. //----------------------------------------------------------------------------
  49. // Position_Key_Scale_Chunk
  50. //----------------------------------------------------------------------------
  51. struct Position_Key_Scale_Chunk
  52. {
  53. float Position_Key_Scale;
  54. };