Blender  V2.93
BKE_linestyle.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) 2010 Blender Foundation.
17  * All rights reserved.
18  */
19 
20 #pragma once
21 
27 #include "DNA_linestyle_types.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 #define LS_MODIFIER_TYPE_COLOR 1
34 #define LS_MODIFIER_TYPE_ALPHA 2
35 #define LS_MODIFIER_TYPE_THICKNESS 3
36 #define LS_MODIFIER_TYPE_GEOMETRY 4
37 
38 struct ColorBand;
39 struct Main;
40 struct ViewLayer;
41 struct bContext;
42 
44 FreestyleLineStyle *BKE_linestyle_new(struct Main *bmain, const char *name);
45 
47 
49  const char *name,
50  int type);
52  const char *name,
53  int type);
55  const char *name,
56  int type);
58  const char *name,
59  int type);
60 
62  const LineStyleModifier *m,
63  const int flag);
65  const LineStyleModifier *m,
66  const int flag);
68  const LineStyleModifier *m,
69  const int flag);
71  const LineStyleModifier *m,
72  const int flag);
73 
75  LineStyleModifier *modifier);
77  LineStyleModifier *modifier);
79  LineStyleModifier *modifier);
81  LineStyleModifier *modifier);
82 
84  LineStyleModifier *modifier,
85  int direction);
87  LineStyleModifier *modifier,
88  int direction);
90  LineStyleModifier *modifier,
91  int direction);
93  LineStyleModifier *modifier,
94  int direction);
95 
98  struct ColorBand *color_ramp);
99 
100 bool BKE_linestyle_use_textures(FreestyleLineStyle *linestyle, const bool use_shading_nodes);
101 
103 
104 #ifdef __cplusplus
105 }
106 #endif
int BKE_linestyle_alpha_modifier_remove(FreestyleLineStyle *linestyle, LineStyleModifier *modifier)
Definition: linestyle.c:1273
bool BKE_linestyle_use_textures(FreestyleLineStyle *linestyle, const bool use_shading_nodes)
Definition: linestyle.c:2031
FreestyleLineStyle * BKE_linestyle_active_from_view_layer(struct ViewLayer *view_layer)
Definition: linestyle.c:818
int BKE_linestyle_color_modifier_remove(FreestyleLineStyle *linestyle, LineStyleModifier *modifier)
Definition: linestyle.c:1034
void BKE_linestyle_modifier_list_color_ramps(FreestyleLineStyle *linestyle, ListBase *listbase)
Definition: linestyle.c:1941
LineStyleModifier * BKE_linestyle_geometry_modifier_add(FreestyleLineStyle *linestyle, const char *name, int type)
Definition: linestyle.c:1650
LineStyleModifier * BKE_linestyle_geometry_modifier_copy(FreestyleLineStyle *linestyle, const LineStyleModifier *m, const int flag)
bool BKE_linestyle_thickness_modifier_move(FreestyleLineStyle *linestyle, LineStyleModifier *modifier, int direction)
Definition: linestyle.c:1928
char * BKE_linestyle_path_to_color_ramp(FreestyleLineStyle *linestyle, struct ColorBand *color_ramp)
Definition: linestyle.c:1972
LineStyleModifier * BKE_linestyle_color_modifier_copy(FreestyleLineStyle *linestyle, const LineStyleModifier *m, const int flag)
Definition: linestyle.c:942
bool BKE_linestyle_color_modifier_move(FreestyleLineStyle *linestyle, LineStyleModifier *modifier, int direction)
Definition: linestyle.c:1916
LineStyleModifier * BKE_linestyle_thickness_modifier_add(FreestyleLineStyle *linestyle, const char *name, int type)
Definition: linestyle.c:1347
LineStyleModifier * BKE_linestyle_color_modifier_add(FreestyleLineStyle *linestyle, const char *name, int type)
Definition: linestyle.c:884
void BKE_linestyle_default_shader(const struct bContext *C, FreestyleLineStyle *linestyle)
int BKE_linestyle_thickness_modifier_remove(FreestyleLineStyle *linestyle, LineStyleModifier *modifier)
Definition: linestyle.c:1562
bool BKE_linestyle_alpha_modifier_move(FreestyleLineStyle *linestyle, LineStyleModifier *modifier, int direction)
Definition: linestyle.c:1922
FreestyleLineStyle * BKE_linestyle_new(struct Main *bmain, const char *name)
Definition: linestyle.c:807
bool BKE_linestyle_geometry_modifier_move(FreestyleLineStyle *linestyle, LineStyleModifier *modifier, int direction)
Definition: linestyle.c:1934
LineStyleModifier * BKE_linestyle_thickness_modifier_copy(FreestyleLineStyle *linestyle, const LineStyleModifier *m, const int flag)
Definition: linestyle.c:1441
LineStyleModifier * BKE_linestyle_alpha_modifier_add(FreestyleLineStyle *linestyle, const char *name, int type)
Definition: linestyle.c:1104
void BKE_linestyle_init(struct FreestyleLineStyle *linestyle)
Definition: linestyle.c:802
LineStyleModifier * BKE_linestyle_alpha_modifier_copy(FreestyleLineStyle *linestyle, const LineStyleModifier *m, const int flag)
int BKE_linestyle_geometry_modifier_remove(FreestyleLineStyle *linestyle, LineStyleModifier *modifier)
Definition: linestyle.c:1903
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
#define C
Definition: RandGen.cpp:39
FreestyleLineStyle linestyle
Definition: BKE_main.h:116