Blender V5.0
DNA_colorband_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "DNA_defs.h"
12
13/* -------------------------------------------------------------------- */
16
18enum {
22};
23
25enum {
31};
32
34enum {
39};
40
42
43/* -------------------------------------------------------------------- */
46
47#ifndef DNA_USHORT_FIX
48# define DNA_USHORT_FIX
54typedef unsigned short dna_ushort_fix;
55#endif
56
57typedef struct CBData {
58 float r, g, b, a, pos;
59 int cur;
61
66typedef struct ColorBand {
67 short tot, cur;
70 char _pad[1];
71
74
unsigned short dna_ushort_fix
@ COLBAND_HUE_FAR
@ COLBAND_HUE_CW
@ COLBAND_HUE_NEAR
@ COLBAND_HUE_CCW
@ COLBAND_BLEND_RGB
@ COLBAND_BLEND_HSL
@ COLBAND_BLEND_HSV
@ COLBAND_INTERP_LINEAR
@ COLBAND_INTERP_CONSTANT
@ COLBAND_INTERP_B_SPLINE
@ COLBAND_INTERP_EASE
@ COLBAND_INTERP_CARDINAL
CBData data[32]