RenderingInfo.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. #region File Description
  2. //-----------------------------------------------------------------------------
  3. // RenderingInfo.cs
  4. //
  5. // Microsoft XNA Community Game Platform
  6. // Copyright (C) Microsoft Corporation. All rights reserved.
  7. //-----------------------------------------------------------------------------
  8. #endregion
  9. #region Using Statements
  10. using System;
  11. using Microsoft.Xna.Framework;
  12. #endregion
  13. namespace MovipaLibrary
  14. {
  15. /// <summary>
  16. /// This class manages animation information of a rendering movie.
  17. /// This information includes the total number of frames and textures,
  18. /// the size of the frame drawn in one texture, and the replay rate information.
  19. /// With these pieces of information, animations can be drawn in sequence textures.
  20. ///
  21. /// レンダリングムービーのアニメーション情報を持ちます。
  22. /// 連番テクスチャで描画が出来るように、総フレーム数と、総テクスチャ数、
  23. /// 1枚のテクスチャに描かれているフレームのサイズと、再生レートの情報があります。
  24. /// </summary>
  25. public class RenderingInfo : AnimationInfo
  26. {
  27. #region Fields
  28. private string format;
  29. private uint totalTexture;
  30. private uint totalFrame;
  31. private Point imageSize;
  32. private uint frameRate;
  33. #endregion
  34. #region Property
  35. /// <summary>
  36. /// Obtains or sets the asset name format.
  37. ///
  38. /// アセット名のフォーマットを取得または設定します。
  39. /// </summary>
  40. public string Format
  41. {
  42. get { return format; }
  43. set { format = value; }
  44. }
  45. /// <summary>
  46. /// Obtains or sets the total number of textures.
  47. ///
  48. /// 総テクスチャ数を取得または設定します。
  49. /// </summary>
  50. public UInt32 TotalTexture
  51. {
  52. get { return totalTexture; }
  53. set { totalTexture = value; }
  54. }
  55. /// <summary>
  56. /// Obtains or sets the total number of frames.
  57. ///
  58. /// 総フレーム数を取得または設定します。
  59. /// </summary>
  60. public UInt32 TotalFrame
  61. {
  62. get { return totalFrame; }
  63. set { totalFrame = value; }
  64. }
  65. /// <summary>
  66. /// Obtains or sets the image size of the frame.
  67. ///
  68. /// フレームの画像サイズを取得または設定します。
  69. /// </summary>
  70. public Point ImageSize
  71. {
  72. get { return imageSize; }
  73. set { imageSize = value; }
  74. }
  75. /// <summary>
  76. /// Obtains or sets the frame rate.
  77. ///
  78. /// フレームレートを取得または設定します。
  79. /// </summary>
  80. public uint FrameRate
  81. {
  82. get { return frameRate; }
  83. set { frameRate = value; }
  84. }
  85. #endregion
  86. }
  87. }