Blender  V3.3
Functions
freestyle.c File Reference
#include "MEM_guardedalloc.h"
#include "DNA_collection_types.h"
#include "DNA_freestyle_types.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_string_utils.h"
#include "BKE_freestyle.h"
#include "BKE_lib_id.h"
#include "BKE_linestyle.h"

Go to the source code of this file.

Functions

static FreestyleLineSetalloc_lineset (void)
 
static void copy_lineset (FreestyleLineSet *new_lineset, FreestyleLineSet *lineset, const int flag)
 
static FreestyleModuleConfigalloc_module (void)
 
static void copy_module (FreestyleModuleConfig *new_module, FreestyleModuleConfig *module)
 
void BKE_freestyle_config_init (FreestyleConfig *config)
 
void BKE_freestyle_config_free (FreestyleConfig *config, const bool do_id_user)
 
void BKE_freestyle_config_copy (FreestyleConfig *new_config, const FreestyleConfig *config, const int flag)
 
FreestyleModuleConfigBKE_freestyle_module_add (FreestyleConfig *config)
 
bool BKE_freestyle_module_delete (FreestyleConfig *config, FreestyleModuleConfig *module_conf)
 
bool BKE_freestyle_module_move (FreestyleConfig *config, FreestyleModuleConfig *module_conf, int direction)
 
void BKE_freestyle_lineset_unique_name (FreestyleConfig *config, FreestyleLineSet *lineset)
 
FreestyleLineSetBKE_freestyle_lineset_add (struct Main *bmain, FreestyleConfig *config, const char *name)
 
bool BKE_freestyle_lineset_delete (FreestyleConfig *config, FreestyleLineSet *lineset)
 
FreestyleLineSetBKE_freestyle_lineset_get_active (FreestyleConfig *config)
 
short BKE_freestyle_lineset_get_active_index (FreestyleConfig *config)
 
void BKE_freestyle_lineset_set_active_index (FreestyleConfig *config, short index)
 

Function Documentation

◆ alloc_lineset()

static FreestyleLineSet * alloc_lineset ( void  )
static

Definition at line 157 of file freestyle.c.

References MEM_callocN.

Referenced by BKE_freestyle_config_copy(), and BKE_freestyle_lineset_add().

◆ alloc_module()

static FreestyleModuleConfig * alloc_module ( void  )
static

Definition at line 109 of file freestyle.c.

References MEM_callocN.

Referenced by BKE_freestyle_config_copy(), and BKE_freestyle_module_add().

◆ BKE_freestyle_config_copy()

void BKE_freestyle_config_copy ( FreestyleConfig new_config,
const FreestyleConfig config,
const int  flag 
)

◆ BKE_freestyle_config_free()

void BKE_freestyle_config_free ( FreestyleConfig config,
const bool  do_id_user 
)

◆ BKE_freestyle_config_init()

void BKE_freestyle_config_init ( FreestyleConfig config)

◆ BKE_freestyle_lineset_add()

FreestyleLineSet* BKE_freestyle_lineset_add ( struct Main bmain,
FreestyleConfig config,
const char *  name 
)

◆ BKE_freestyle_lineset_delete()

bool BKE_freestyle_lineset_delete ( FreestyleConfig config,
FreestyleLineSet lineset 
)

◆ BKE_freestyle_lineset_get_active()

FreestyleLineSet* BKE_freestyle_lineset_get_active ( FreestyleConfig config)

◆ BKE_freestyle_lineset_get_active_index()

short BKE_freestyle_lineset_get_active_index ( FreestyleConfig config)

◆ BKE_freestyle_lineset_set_active_index()

void BKE_freestyle_lineset_set_active_index ( FreestyleConfig config,
short  index 
)

◆ BKE_freestyle_lineset_unique_name()

void BKE_freestyle_lineset_unique_name ( FreestyleConfig config,
FreestyleLineSet lineset 
)

◆ BKE_freestyle_module_add()

FreestyleModuleConfig* BKE_freestyle_module_add ( FreestyleConfig config)

◆ BKE_freestyle_module_delete()

bool BKE_freestyle_module_delete ( FreestyleConfig config,
FreestyleModuleConfig module_conf 
)

Definition at line 130 of file freestyle.c.

References BLI_findindex(), BLI_freelinkN(), and FreestyleConfig::modules.

◆ BKE_freestyle_module_move()

bool BKE_freestyle_module_move ( struct FreestyleConfig config,
struct FreestyleModuleConfig module_conf,
int  direction 
)

Reinsert module_conf offset by direction from current position.

Returns
if position of module_conf changed.

Definition at line 139 of file freestyle.c.

References BLI_findindex(), BLI_listbase_link_move(), and FreestyleConfig::modules.

◆ copy_lineset()

static void copy_lineset ( FreestyleLineSet new_lineset,
FreestyleLineSet lineset,
const int  flag 
)
static

◆ copy_module()

static void copy_module ( FreestyleModuleConfig new_module,
FreestyleModuleConfig module 
)
static