ff7tk
1.2.0.13
Work with Final Fantasy 7 game data
src
utils
PsColor.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2009 - 2021 Arzel Jérôme <myst6re@gmail.com>
2
// SPDX-License-Identifier: LGPL-3.0-or-later
3
4
#pragma once
5
6
#include <QtCore>
7
#include <QRgb>
8
#include <ff7tkutils_export.h>
9
10
#define COEFF_COLOR 8.2258064516129032258064516129032 // 255/31
11
12
#define psColorAlphaBit(color) \
13
((color >> 15) & 1)
14
#define setPsColorAlphaBit(color, alpha) \
15
((color & 0x7FFF) | (alpha << 15))
16
17
class
FF7TKUTILS_EXPORT
PsColor
18
{
19
public
:
20
static
quint16 toPsColor(
const
QRgb &color);
21
static
QRgb fromPsColor(quint16 color,
bool
useAlpha =
false
);
22
};
PsColor
Definition:
PsColor.h:17
Generated by
1.8.17