BsPostProcessSettings.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsCorePrerequisites.h"
  5. #include "BsIReflectable.h"
  6. namespace bs
  7. {
  8. /** @addtogroup Renderer
  9. * @{
  10. */
  11. /** Base class whose implementations contain settings that control post-process operations during rendering. */
  12. struct BS_CORE_EXPORT PostProcessSettings : public IReflectable
  13. {
  14. PostProcessSettings() { }
  15. virtual ~PostProcessSettings() { }
  16. /** @name Internal
  17. * @{
  18. */
  19. /**
  20. * Populates the provided buffer with data that can be used for syncing between two versions of this object.
  21. * Apply the retrieved buffer via _setSyncData().
  22. *
  23. * @param[in] buffer Pre-allocated buffer to store the sync data in. Set to null to calculate the size
  24. * of the required buffer.
  25. * @param[in, out] size Size of the provided allocated buffer. Or if the buffer is null, this parameter will
  26. * contain the required buffer size when the method executes.
  27. */
  28. virtual void _getSyncData(UINT8* buffer, UINT32& size) = 0;
  29. /**
  30. * Updates the stored data from the provided buffer, allowing changes to be transfered between two versions of this
  31. * object. Buffer must be retrieved from _getSyncData().
  32. *
  33. * @param[in] buffer Buffer containing the dirty data.
  34. * @param[in, out] size Size of the provided buffer.
  35. */
  36. virtual void _setSyncData(UINT8* buffer, UINT32 size) = 0;
  37. /** @} */
  38. /************************************************************************/
  39. /* RTTI */
  40. /************************************************************************/
  41. public:
  42. friend class PostProcessSettingsRTTI;
  43. static RTTITypeBase* getRTTIStatic();
  44. RTTITypeBase* getRTTI() const override;
  45. };
  46. /** @} */
  47. }