Blender V2.61 - r43446
Classes | Typedefs | Functions | Variables

BME_Customdata.c File Reference

#include <string.h>
#include "MEM_guardedalloc.h"
#include "BKE_bmeshCustomData.h"
#include "bmesh_private.h"

Go to the source code of this file.

Classes

struct  BME_LayerTypeInfo

Typedefs

typedef struct BME_LayerTypeInfo BME_LayerTypeInfo

Functions

static const BME_LayerTypeInfoBME_layerType_getInfo (int type)
void BME_CD_Create (BME_CustomData *data, BME_CustomDataInit *init, int initalloc)
void BME_CD_Free (BME_CustomData *data)
void BME_CD_free_block (BME_CustomData *data, void **block)
static void BME_CD_alloc_block (BME_CustomData *data, void **block)
void BME_CD_copy_data (const BME_CustomData *source, BME_CustomData *dest, void *src_block, void **dest_block)
void BME_CD_set_default (BME_CustomData *data, void **block)

Variables

const BME_LayerTypeInfo BMELAYERTYPEINFO [BME_CD_NUMTYPES]

Detailed Description

Definition in file BME_Customdata.c.


Typedef Documentation


Function Documentation

static void BME_CD_alloc_block ( BME_CustomData data,
void **  block 
) [static]
void BME_CD_copy_data ( const BME_CustomData source,
BME_CustomData dest,
void *  src_block,
void **  dest_block 
)
void BME_CD_Create ( BME_CustomData data,
BME_CustomDataInit init,
int  initalloc 
)
void BME_CD_Free ( BME_CustomData data)

Definition at line 103 of file BME_Customdata.c.

References BLI_mempool_destroy(), and BME_CustomData::pool.

void BME_CD_free_block ( BME_CustomData data,
void **  block 
)
void BME_CD_set_default ( BME_CustomData data,
void **  block 
)
static const BME_LayerTypeInfo* BME_layerType_getInfo ( int  type) [static]

Definition at line 59 of file BME_Customdata.c.

References CD_NUMTYPES, and NULL.

Referenced by BME_CD_copy_data(), BME_CD_Create(), BME_CD_free_block(), and BME_CD_set_default().


Variable Documentation

const BME_LayerTypeInfo BMELAYERTYPEINFO[BME_CD_NUMTYPES]
Initial value:
 {
    {sizeof(BME_facetex), "TexFace", NULL, NULL, NULL, NULL},
    {sizeof(BME_looptex), "UV", NULL, NULL, NULL, NULL},
    {sizeof(BME_loopcol), "VCol", NULL, NULL, NULL, NULL},
    {sizeof(BME_DeformVert), "Group", NULL, NULL, NULL, NULL}
}

Definition at line 53 of file BME_Customdata.c.