Blender  V2.93
FX_shader_util.c
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) 2018, Blender Foundation
17  * This is a new part of Blender
18  */
19 
24 #include <stdio.h>
25 
26 #include "MEM_guardedalloc.h"
27 
28 #include "BLI_utildefines.h"
29 
30 #include "BKE_shader_fx.h"
31 
32 #include "FX_shader_types.h"
33 #include "FX_shader_util.h"
34 
36 {
37 #define INIT_FX_TYPE(typeName) (types[eShaderFxType_##typeName] = &shaderfx_Type_##typeName)
39  INIT_FX_TYPE(Colorize);
40  INIT_FX_TYPE(Flip);
41  INIT_FX_TYPE(Glow);
42  INIT_FX_TYPE(Pixel);
43  INIT_FX_TYPE(Rim);
44  INIT_FX_TYPE(Shadow);
45  INIT_FX_TYPE(Swirl);
46  INIT_FX_TYPE(Wave);
47 #undef INIT_FX_TYPE
48 }
#define INIT_FX_TYPE(typeName)
void shaderfx_type_init(ShaderFxTypeInfo *types[])
Read Guarded memory(de)allocation.
Group RGB to Bright Vector Camera Vector Combine Material Light Line Style Layer Add Ambient Diffuse Glossy Refraction Transparent Toon Principled Hair Volume Principled Light Particle Volume Image Sky Noise Wave Voronoi Brick Texture Vector Combine Vertex Separate Vector White RGB Blur
static char ** types
Definition: makesdna.c:164