2
0

BsWin32PlatformUtility.h 866 B

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