Blender V2.61 - r43446
Functions

gpencil.c File Reference

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stddef.h>
#include <math.h>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "DNA_gpencil_types.h"
#include "BKE_global.h"
#include "BKE_gpencil.h"
#include "BKE_library.h"
#include "BKE_main.h"

Go to the source code of this file.

Functions

void free_gpencil_strokes (bGPDframe *gpf)
void free_gpencil_frames (bGPDlayer *gpl)
void free_gpencil_layers (ListBase *list)
void free_gpencil_data (bGPdata *gpd)
bGPDframegpencil_frame_addnew (bGPDlayer *gpl, int cframe)
bGPDlayergpencil_layer_addnew (bGPdata *gpd)
bGPdatagpencil_data_addnew (const char name[])
bGPDframegpencil_frame_duplicate (bGPDframe *src)
bGPDlayergpencil_layer_duplicate (bGPDlayer *src)
bGPdatagpencil_data_duplicate (bGPdata *src)
void gpencil_frame_delete_laststroke (bGPDlayer *gpl, bGPDframe *gpf)
bGPDframegpencil_layer_getframe (bGPDlayer *gpl, int cframe, short addnew)
void gpencil_layer_delframe (bGPDlayer *gpl, bGPDframe *gpf)
bGPDlayergpencil_layer_getactive (bGPdata *gpd)
void gpencil_layer_setactive (bGPdata *gpd, bGPDlayer *active)
void gpencil_layer_delactive (bGPdata *gpd)

Detailed Description

Definition in file gpencil.c.


Function Documentation

void free_gpencil_data ( bGPdata gpd)

Definition at line 111 of file gpencil.c.

References free_gpencil_layers(), and bGPdata::layers.

Referenced by free_libblock(), gpencil_undo_finish(), and gpencil_undo_push().

void free_gpencil_frames ( bGPDlayer gpl)
void free_gpencil_layers ( ListBase list)
void free_gpencil_strokes ( bGPDframe gpf)
bGPdata* gpencil_data_addnew ( const char  name[]) [read]
bGPdata* gpencil_data_duplicate ( bGPdata src) [read]
bGPDframe* gpencil_frame_addnew ( bGPDlayer gpl,
int  cframe 
) [read]
void gpencil_frame_delete_laststroke ( bGPDlayer gpl,
bGPDframe gpf 
)
bGPDframe* gpencil_frame_duplicate ( bGPDframe src) [read]
bGPDlayer* gpencil_layer_addnew ( bGPdata gpd) [read]
void gpencil_layer_delactive ( bGPdata gpd)
void gpencil_layer_delframe ( bGPDlayer gpl,
bGPDframe gpf 
)
bGPDlayer* gpencil_layer_duplicate ( bGPDlayer src) [read]
bGPDlayer* gpencil_layer_getactive ( bGPdata gpd) [read]
bGPDframe* gpencil_layer_getframe ( bGPDlayer gpl,
int  cframe,
short  addnew 
) [read]
void gpencil_layer_setactive ( bGPdata gpd,
bGPDlayer active 
)