/* Helpers.h is part of DualSenseWindows https://github.com/mattdevv/DualSense-Windows Contributors of this file: 11.2020 Ludwig Füchsl Licensed under the MIT License (To be found in repository root directory) */ #pragma once #include #include namespace DS5W { /// /// Convert from 3-Color RGB normalized float to DS5W::Color /// /// Red channel /// Green channel /// Blue channel /// DS5W::Color DS5W_API DS5W::Color color_R32G32B32_FLOAT(float r, float g, float b); /// /// Convert from 4-Color RGBA normalized float to DS5W::Color /// /// Red channel /// Green channel /// Blue channel /// Alpha channel /// DS5W::Color DS5W_API DS5W::Color color_R32G32B32A32_FLOAT(float r, float g, float b, float a); /// /// Convert from 4-Color RGBA byte / UChar to DS5W::Color /// /// Red channel /// Green channel /// Blue channel /// Alpha channel /// DS5W::Color DS5W_API DS5W::Color color_R8G8B8A8_UCHAR(unsigned char r, unsigned char g, unsigned char b, unsigned char a); /// /// Convert from 4-Color RGB byte / UChar to DS5W::Color while using a normalized float for alpha chanel /// /// Red channel /// Green channel /// Blue channel /// Alpha channel /// DS5W::Color DS5W_API DS5W::Color color_R8G8B8_UCHAR_A32_FLOAT(unsigned char r, unsigned char g, unsigned char b, float a); }