Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
2.4 KiB

  1. /***************************************************************************\
  2. *
  3. * File: DxManager.inl
  4. *
  5. * History:
  6. * 1/18/2000: JStall: Created
  7. *
  8. * Copyright (C) 2000 by Microsoft Corporation. All rights reserved.
  9. *
  10. \***************************************************************************/
  11. #if !defined(SERVICES__DxManager_inl__INCLUDED)
  12. #define SERVICES__DxManager_inl__INCLUDED
  13. /***************************************************************************\
  14. *****************************************************************************
  15. *
  16. * class DxManager
  17. *
  18. *****************************************************************************
  19. \***************************************************************************/
  20. //------------------------------------------------------------------------------
  21. inline BOOL
  22. DxManager::IsInit() const
  23. {
  24. return m_hDllDxDraw != NULL;
  25. }
  26. //------------------------------------------------------------------------------
  27. inline BOOL
  28. DxManager::IsDxTxInit() const
  29. {
  30. return m_pdxXformFac != NULL;
  31. }
  32. //------------------------------------------------------------------------------
  33. inline IDXTransformFactory *
  34. DxManager::GetTransformFactory() const
  35. {
  36. AssertMsg(IsDxTxInit(), "DxTx must first be initialized");
  37. AssertMsg(m_pdxXformFac != NULL, "Should have valid TxF");
  38. return m_pdxXformFac;
  39. }
  40. //------------------------------------------------------------------------------
  41. inline IDXSurfaceFactory *
  42. DxManager::GetSurfaceFactory() const
  43. {
  44. AssertMsg(IsDxTxInit(), "DxTx must first be initialized");
  45. AssertMsg(m_pdxSurfFac != NULL, "Should have valid SxF");
  46. return m_pdxSurfFac;
  47. }
  48. /***************************************************************************\
  49. *****************************************************************************
  50. *
  51. * class DxSurface
  52. *
  53. *****************************************************************************
  54. \***************************************************************************/
  55. //------------------------------------------------------------------------------
  56. inline IDXSurface *
  57. DxSurface::GetSurface() const
  58. {
  59. Assert(m_pdxSurface != NULL);
  60. return m_pdxSurface;
  61. }
  62. //------------------------------------------------------------------------------
  63. inline SIZE
  64. DxSurface::GetSize() const
  65. {
  66. return m_sizePxl;
  67. }
  68. #endif // SERVICES__DxManager_inl__INCLUDED