Blender  V3.3
Classes | Typedefs | Functions
BKE_ccg.h File Reference
#include "BLI_compiler_compat.h"
#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.

Classes

struct  CCGKey
 

Typedefs

typedef struct CCGElem CCGElem
 
typedef struct CCGKey CCGKey
 

Functions

void CCG_key (CCGKey *key, const struct CCGSubSurf *ss, int level)
 
void CCG_key_top_level (CCGKey *key, const struct CCGSubSurf *ss)
 
BLI_INLINE floatCCG_elem_co (const CCGKey *key, CCGElem *elem)
 
BLI_INLINE floatCCG_elem_no (const CCGKey *key, CCGElem *elem)
 
BLI_INLINE floatCCG_elem_mask (const CCGKey *key, CCGElem *elem)
 
BLI_INLINE CCGElemCCG_elem_offset (const CCGKey *key, CCGElem *elem, int offset)
 
BLI_INLINE CCGElemCCG_grid_elem (const CCGKey *key, CCGElem *elem, int x, int y)
 
BLI_INLINE floatCCG_grid_elem_co (const CCGKey *key, CCGElem *elem, int x, int y)
 
BLI_INLINE floatCCG_grid_elem_no (const CCGKey *key, CCGElem *elem, int x, int y)
 
BLI_INLINE floatCCG_grid_elem_mask (const CCGKey *key, CCGElem *elem, int x, int y)
 
BLI_INLINE floatCCG_elem_offset_co (const CCGKey *key, CCGElem *elem, int offset)
 
BLI_INLINE floatCCG_elem_offset_no (const CCGKey *key, CCGElem *elem, int offset)
 
BLI_INLINE floatCCG_elem_offset_mask (const CCGKey *key, CCGElem *elem, int offset)
 
BLI_INLINE CCGElemCCG_elem_next (const CCGKey *key, CCGElem *elem)
 
BLI_INLINE floatCCG_elem_co (const CCGKey *UNUSED(key), CCGElem *elem)
 

Typedef Documentation

◆ CCGElem

typedef struct CCGElem CCGElem

Definition at line 1 of file BKE_ccg.h.

◆ CCGKey

typedef struct CCGKey CCGKey

Function Documentation

◆ CCG_elem_co() [1/2]

BLI_INLINE float* CCG_elem_co ( const CCGKey key,
CCGElem elem 
)

◆ CCG_elem_co() [2/2]

BLI_INLINE float* CCG_elem_co ( const CCGKey UNUSEDkey,
CCGElem elem 
)

Definition at line 86 of file BKE_ccg.h.

◆ CCG_elem_mask()

BLI_INLINE float * CCG_elem_mask ( const CCGKey key,
CCGElem elem 
)

◆ CCG_elem_next()

BLI_INLINE CCGElem * CCG_elem_next ( const CCGKey key,
CCGElem elem 
)

Definition at line 144 of file BKE_ccg.h.

References CCG_elem_offset().

◆ CCG_elem_no()

BLI_INLINE float * CCG_elem_no ( const CCGKey key,
CCGElem elem 
)

◆ CCG_elem_offset()

BLI_INLINE CCGElem * CCG_elem_offset ( const CCGKey key,
CCGElem elem,
int  offset 
)

◆ CCG_elem_offset_co()

BLI_INLINE float * CCG_elem_offset_co ( const CCGKey key,
CCGElem elem,
int  offset 
)

◆ CCG_elem_offset_mask()

BLI_INLINE float * CCG_elem_offset_mask ( const CCGKey key,
CCGElem elem,
int  offset 
)

Definition at line 139 of file BKE_ccg.h.

References CCG_elem_mask(), CCG_elem_offset(), and offset.

Referenced by sculpt_undo_restore_mask().

◆ CCG_elem_offset_no()

BLI_INLINE float * CCG_elem_offset_no ( const CCGKey key,
CCGElem elem,
int  offset 
)

Definition at line 134 of file BKE_ccg.h.

References CCG_elem_no(), CCG_elem_offset(), and offset.

◆ CCG_grid_elem()

BLI_INLINE CCGElem * CCG_grid_elem ( const CCGKey key,
CCGElem elem,
int  x,
int  y 
)

◆ CCG_grid_elem_co()

BLI_INLINE float * CCG_grid_elem_co ( const CCGKey key,
CCGElem elem,
int  x,
int  y 
)

◆ CCG_grid_elem_mask()

BLI_INLINE float * CCG_grid_elem_mask ( const CCGKey key,
CCGElem elem,
int  x,
int  y 
)

Definition at line 124 of file BKE_ccg.h.

References CCG_elem_mask(), CCG_grid_elem(), x, and y.

Referenced by multires_disp_run_cb(), and multires_reshape_assign_final_coords_from_ccg().

◆ CCG_grid_elem_no()

BLI_INLINE float * CCG_grid_elem_no ( const CCGKey key,
CCGElem elem,
int  x,
int  y 
)

◆ CCG_key()

void CCG_key ( CCGKey key,
const struct CCGSubSurf ss,
int  level 
)

◆ CCG_key_top_level()

void CCG_key_top_level ( CCGKey key,
const struct CCGSubSurf ss 
)