Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_buffers.h
| Show All 29 Lines | |||||
| struct CCGElem; | struct CCGElem; | ||||
| struct CCGKey; | struct CCGKey; | ||||
| struct DMFlagMat; | struct DMFlagMat; | ||||
| struct GSet; | struct GSet; | ||||
| struct MLoop; | struct MLoop; | ||||
| struct MLoopTri; | struct MLoopTri; | ||||
| struct MPoly; | struct MPoly; | ||||
| struct MVert; | struct MVert; | ||||
| struct MLoopCol; | |||||
| struct PBVH; | struct PBVH; | ||||
| /* Buffers for drawing from PBVH grids. */ | /* Buffers for drawing from PBVH grids. */ | ||||
| typedef struct GPU_PBVH_Buffers GPU_PBVH_Buffers; | typedef struct GPU_PBVH_Buffers GPU_PBVH_Buffers; | ||||
| /* build */ | /* build */ | ||||
| GPU_PBVH_Buffers *GPU_pbvh_mesh_buffers_build(const int (*face_vert_indices)[3], | GPU_PBVH_Buffers *GPU_pbvh_mesh_buffers_build(const int (*face_vert_indices)[3], | ||||
| const struct MPoly *mpoly, | const struct MPoly *mpoly, | ||||
| const struct MLoop *mloop, | const struct MLoop *mloop, | ||||
| const struct MLoopTri *looptri, | const struct MLoopTri *looptri, | ||||
| const struct MVert *verts, | const struct MVert *verts, | ||||
| const int *face_indices, | const int *face_indices, | ||||
| const int face_indices_len); | const int face_indices_len); | ||||
| GPU_PBVH_Buffers *GPU_pbvh_grid_buffers_build(int totgrid, unsigned int **grid_hidden); | GPU_PBVH_Buffers *GPU_pbvh_grid_buffers_build(int totgrid, unsigned int **grid_hidden); | ||||
| GPU_PBVH_Buffers *GPU_pbvh_bmesh_buffers_build(bool smooth_shading); | GPU_PBVH_Buffers *GPU_pbvh_bmesh_buffers_build(bool smooth_shading); | ||||
| /* update */ | /* update */ | ||||
| enum { | enum { | ||||
| GPU_PBVH_BUFFERS_SHOW_MASK = (1 << 1), | GPU_PBVH_BUFFERS_SHOW_MASK = (1 << 1), | ||||
| GPU_PBVH_BUFFERS_SHOW_VCOL = (1 << 1), | |||||
| }; | }; | ||||
| void GPU_pbvh_mesh_buffers_update(GPU_PBVH_Buffers *buffers, | void GPU_pbvh_mesh_buffers_update(GPU_PBVH_Buffers *buffers, | ||||
| const struct MVert *mvert, | const struct MVert *mvert, | ||||
| const int *vert_indices, | const int *vert_indices, | ||||
| int totvert, | int totvert, | ||||
| const float *vmask, | const float *vmask, | ||||
| const struct MLoopCol *vcol, | |||||
| const int (*face_vert_indices)[3], | const int (*face_vert_indices)[3], | ||||
| const int update_flags); | const int update_flags); | ||||
| void GPU_pbvh_bmesh_buffers_update(GPU_PBVH_Buffers *buffers, | void GPU_pbvh_bmesh_buffers_update(GPU_PBVH_Buffers *buffers, | ||||
| struct BMesh *bm, | struct BMesh *bm, | ||||
| struct GSet *bm_faces, | struct GSet *bm_faces, | ||||
| struct GSet *bm_unique_verts, | struct GSet *bm_unique_verts, | ||||
| struct GSet *bm_other_verts, | struct GSet *bm_other_verts, | ||||
| Show All 23 Lines | |||||