BsWin32PlatformUtility.h 897 B

123456789101112131415161718192021222324252627282930
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "Prerequisites/BsPrerequisitesUtil.h"
  5. #include <windows.h>
  6. namespace bs
  7. {
  8. /** @addtogroup Internal-Utility
  9. * @{
  10. */
  11. /** @addtogroup Platform-Utility-Internal
  12. * @{
  13. */
  14. /** Provides access to various Windows specific utility functions. */
  15. class BS_UTILITY_EXPORT Win32PlatformUtility
  16. {
  17. public:
  18. /**
  19. * Creates a new bitmap usable by various Win32 methods from the provided pixel data. Caller must ensure to call
  20. * DeleteObject() on the bitmap handle when finished.
  21. */
  22. static HBITMAP createBitmap(const Color* pixels, UINT32 width, UINT32 height, bool premultiplyAlpha);
  23. };
  24. /** @} */
  25. /** @} */
  26. }