GameObject.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System;
  2. using System.Threading.Tasks;
  3. using System.Windows.Forms;
  4. using SlimDX;
  5. using SlimDX.D3DCompiler;
  6. using SlimDX.Direct3D11;
  7. using SlimDX.DXGI;
  8. using SlimDX.Windows;
  9. using Device = SlimDX.Direct3D11.Device;
  10. using Resource = SlimDX.Direct3D11.Resource;
  11. using Buffer = SlimDX.Direct3D11.Buffer;
  12. namespace EQ2ModelViewer
  13. {
  14. public class GameObject
  15. {
  16. private struct YawPitchRoll
  17. {
  18. public float Yaw;
  19. public float Pitch;
  20. public float Roll;
  21. };
  22. public Vector3 Position = new Vector3(0.0f, 0.0f, 0.0f);
  23. private YawPitchRoll Rotation = new YawPitchRoll();
  24. GameObject()
  25. {
  26. Rotation.Yaw = 0.0f;
  27. Rotation.Pitch = 0.0f;
  28. Rotation.Roll = 0.0f;
  29. }
  30. private float m_scale;
  31. public float Scale
  32. {
  33. get { return m_scale; }
  34. set { m_scale = value; }
  35. }
  36. private UInt32 m_model;
  37. public UInt32 Model
  38. {
  39. get { return m_model; }
  40. set { m_model = value; }
  41. }
  42. }
  43. }