| 123456789101112131415161718192021222324252627282930 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "Prerequisites/BsPrerequisitesUtil.h"
- #include <windows.h>
- namespace bs
- {
- /** @addtogroup Internal-Utility
- * @{
- */
- /** @addtogroup Platform-Utility-Internal
- * @{
- */
- /** Provides access to various Windows specific utility functions. */
- class BS_UTILITY_EXPORT Win32PlatformUtility
- {
- public:
- /**
- * Creates a new bitmap usable by various Win32 methods from the provided pixel data. Caller must ensure to call
- * DeleteObject() on the bitmap handle when finished.
- */
- static HBITMAP createBitmap(const Color* pixels, UINT32 width, UINT32 height, bool premultiplyAlpha);
- };
- /** @} */
- /** @} */
- }
|