From bd68a728691032b918b437113c842e5ec715bc85 Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Tue, 20 Jul 2010 17:57:33 +0000 Subject: A WIP commit for proof-of-concept implementations of line style modifiers. A number of UI elements were newly introduced to control line color, alpha transparency and line thickness by means of base color/alpha/thickness plus modifiers that alter the base values. To begin with, three basic modifiers were prototyped with the aim of putting the new UI framework in practice and evaluating if it works properly. The Parameter Editor mode is still in a work-in-progress state and totally useless from users' viewpoint. --- source/blender/blenkernel/BKE_linestyle.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'source/blender/blenkernel/BKE_linestyle.h') diff --git a/source/blender/blenkernel/BKE_linestyle.h b/source/blender/blenkernel/BKE_linestyle.h index df7808c1a2b..0514cb73e5b 100644 --- a/source/blender/blenkernel/BKE_linestyle.h +++ b/source/blender/blenkernel/BKE_linestyle.h @@ -32,11 +32,27 @@ #ifndef BKE_LINESTYLE_H #define BKE_LINESTYLE_H -#include "DNA_freestyle_types.h" +#include "DNA_linestyle_types.h" + +#define LS_MODIFIER_TYPE_COLOR 1 +#define LS_MODIFIER_TYPE_ALPHA 2 +#define LS_MODIFIER_TYPE_THICKNESS 3 struct Main; FreestyleLineStyle *FRS_new_linestyle(char *name, struct Main *main); void FRS_free_linestyle(FreestyleLineStyle *linestyle); +int FRS_add_linestyle_color_modifier(FreestyleLineStyle *linestyle, int type); +int FRS_add_linestyle_alpha_modifier(FreestyleLineStyle *linestyle, int type); +int FRS_add_linestyle_thickness_modifier(FreestyleLineStyle *linestyle, int type); + +void FRS_remove_linestyle_color_modifier(FreestyleLineStyle *linestyle, LineStyleModifier *modifier); +void FRS_remove_linestyle_alpha_modifier(FreestyleLineStyle *linestyle, LineStyleModifier *modifier); +void FRS_remove_linestyle_thickness_modifier(FreestyleLineStyle *linestyle, LineStyleModifier *modifier); + +void FRS_move_linestyle_color_modifier(FreestyleLineStyle *linestyle, LineStyleModifier *modifier, int direction); +void FRS_move_linestyle_alpha_modifier(FreestyleLineStyle *linestyle, LineStyleModifier *modifier, int direction); +void FRS_move_linestyle_thickness_modifier(FreestyleLineStyle *linestyle, LineStyleModifier *modifier, int direction); + #endif -- cgit v1.2.3