Use a shorter/simpler license convention, stops the header taking so much space. Follow the SPDX license specification: https://spdx.org/licenses - C/C++/objc/objc++ - Python - Shell Scripts - CMake, GNUmakefile While most of the source tree has been included - `./extern/` was left out. - `./intern/cycles` & `./intern/atomic` are also excluded because they use different header conventions. doc/license/SPDX-license-identifiers.txt has been added to list SPDX all used identifiers. See P2788 for the script that automated these edits. Reviewed By: brecht, mont29, sergey Ref D14069
33 lines
664 B
C
33 lines
664 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later
|
|
* Copyright 2018 Blender Foundation. */
|
|
|
|
/** \file
|
|
* \ingroup shader_fx
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "MEM_guardedalloc.h"
|
|
|
|
#include "BLI_utildefines.h"
|
|
|
|
#include "BKE_shader_fx.h"
|
|
|
|
#include "FX_shader_types.h"
|
|
#include "FX_shader_util.h"
|
|
|
|
void shaderfx_type_init(ShaderFxTypeInfo *types[])
|
|
{
|
|
#define INIT_FX_TYPE(typeName) (types[eShaderFxType_##typeName] = &shaderfx_Type_##typeName)
|
|
INIT_FX_TYPE(Blur);
|
|
INIT_FX_TYPE(Colorize);
|
|
INIT_FX_TYPE(Flip);
|
|
INIT_FX_TYPE(Glow);
|
|
INIT_FX_TYPE(Pixel);
|
|
INIT_FX_TYPE(Rim);
|
|
INIT_FX_TYPE(Shadow);
|
|
INIT_FX_TYPE(Swirl);
|
|
INIT_FX_TYPE(Wave);
|
|
#undef INIT_FX_TYPE
|
|
}
|