mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Also move colorutil.cpp/h linking build fix experiment Delete a bunch of unused CMakeLists.txt files CMakeLists.txt linking fix Don't include NativeApp.h from any headers. Android.mk buildfix Half of the UWP fix Buildfix Minor project file cleanup Buildfixes Guess what? More buildfixes!
18 lines
605 B
C++
18 lines
605 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
uint32_t whiteAlpha(float alpha);
|
|
uint32_t blackAlpha(float alpha);
|
|
uint32_t colorAlpha(uint32_t color, float alpha);
|
|
uint32_t colorBlend(uint32_t color, uint32_t color2, float alpha);
|
|
uint32_t alphaMul(uint32_t color, float alphaMul);
|
|
uint32_t rgba(float r, float g, float b, float alpha);
|
|
uint32_t rgba_clamp(float r, float g, float b, float alpha);
|
|
|
|
typedef unsigned int Color;
|
|
|
|
#define COLOR(i) (((i&0xFF) << 16) | (i & 0xFF00) | ((i & 0xFF0000) >> 16) | 0xFF000000)
|
|
inline Color darkenColor(Color color) {
|
|
return (color & 0xFF000000) | ((color >> 1) & 0x7F7F7F);
|
|
}
|