Blender  V2.93
DNA_linestyle_defaults.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 
21 #pragma once
22 
23 /* Struct members on own line. */
24 /* clang-format off */
25 
26 /* -------------------------------------------------------------------- */
30 #define _DNA_DEFAULT_FreestyleLineStyle \
31  { \
32  .panel = LS_PANEL_STROKES, \
33  .r = 0, \
34  .g = 0, \
35  .b = 0, \
36  .alpha = 1.0f, \
37  .thickness = 3.0f, \
38  .thickness_position = LS_THICKNESS_CENTER, \
39  .thickness_ratio = 0.5f, \
40  .flag = LS_SAME_OBJECT | LS_NO_SORTING | LS_TEXTURE, \
41  .chaining = LS_CHAINING_PLAIN, \
42  .rounds = 3, \
43  .min_angle = DEG2RADF(0.0f), \
44  .max_angle = DEG2RADF(0.0f), \
45  .min_length = 0.0f, \
46  .max_length = 10000.0f, \
47  .split_length = 100, \
48  .chain_count = 10, \
49  .sort_key = LS_SORT_KEY_DISTANCE_FROM_CAMERA, \
50  .integration_type = LS_INTEGRATION_MEAN, \
51  .texstep = 1.0f, \
52  .pr_texture = TEX_PR_TEXTURE, \
53  .caps = LS_CAPS_BUTT, \
54  }
55 
58 /* clang-format on */