Source code of Windows XP (NT5)
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.

44 lines
1.2 KiB

  1. #ifndef __RESOURCE_INL__
  2. #define __RESOURCE_INL__
  3. /*==========================================================================;
  4. *
  5. * Copyright (C) 1999-2000 Microsoft Corporation. All Rights Reserved.
  6. *
  7. * File: resource.inl
  8. * Content: Contains inlines from CResource that need to be separated
  9. * to prevent a reference cycle with CD3DBase
  10. *
  11. ***************************************************************************/
  12. #undef DPF_MODNAME
  13. #define DPF_MODNAME "CResource::Sync"
  14. inline void CResource::Sync()
  15. {
  16. static_cast<CD3DBase*>(Device())->Sync(m_qwBatchCount);
  17. } // CResource::Sync
  18. #undef DPF_MODNAME
  19. #define DPF_MODNAME "CResource::Batch"
  20. inline void CResource::Batch()
  21. {
  22. if (IsD3DManaged())
  23. {
  24. Device()->ResourceManager()->Batch(RMHandle(), static_cast<CD3DBase*>(Device())->CurrentBatch());
  25. }
  26. else
  27. {
  28. SetBatchNumber(static_cast<CD3DBase*>(Device())->CurrentBatch());
  29. }
  30. } // CResource::Batch
  31. #undef DPF_MODNAME
  32. #define DPF_MODNAME "CResource::BatchBase"
  33. inline void CResource::BatchBase()
  34. {
  35. SetBatchNumber(static_cast<CD3DBase*>(Device())->CurrentBatch());
  36. } // CResource::BatchBase
  37. #endif //__RESOURCE_INL__