Blender  V2.93
BKE_colorband.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
17  * All rights reserved.
18  */
19 #pragma once
20 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 struct ColorBand;
30 
32 #define MAXCOLORBAND 32
33 
34 void BKE_colorband_init(struct ColorBand *coba, bool rangetype);
36  const float (*array)[4],
37  const int array_len,
38  bool filter_sample);
39 struct ColorBand *BKE_colorband_add(bool rangetype);
40 bool BKE_colorband_evaluate(const struct ColorBand *coba, float in, float out[4]);
41 void BKE_colorband_evaluate_table_rgba(const struct ColorBand *coba, float **array, int *size);
42 struct CBData *BKE_colorband_element_add(struct ColorBand *coba, float position);
43 bool BKE_colorband_element_remove(struct ColorBand *coba, int index);
44 void BKE_colorband_update_sort(struct ColorBand *coba);
45 
46 #ifdef __cplusplus
47 }
48 #endif
struct ColorBand * BKE_colorband_add(bool rangetype)
Definition: colorband.c:312
void BKE_colorband_init(struct ColorBand *coba, bool rangetype)
Definition: colorband.c:38
bool BKE_colorband_element_remove(struct ColorBand *coba, int index)
Definition: colorband.c:644
struct CBData * BKE_colorband_element_add(struct ColorBand *coba, float position)
Definition: colorband.c:618
void BKE_colorband_update_sort(struct ColorBand *coba)
Definition: colorband.c:596
bool BKE_colorband_evaluate(const struct ColorBand *coba, float in, float out[4])
void BKE_colorband_evaluate_table_rgba(const struct ColorBand *coba, float **array, int *size)
void BKE_colorband_init_from_table_rgba(struct ColorBand *coba, const float(*array)[4], const int array_len, bool filter_sample)
Definition: colorband.c:293
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition: btDbvt.cpp:52