Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_buffers.h
| Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | typedef struct GPUDrawObject { | ||||
| GPUBuffer *normals; | GPUBuffer *normals; | ||||
| GPUBuffer *uv; | GPUBuffer *uv; | ||||
| GPUBuffer *uv_tex; | GPUBuffer *uv_tex; | ||||
| GPUBuffer *colors; | GPUBuffer *colors; | ||||
| GPUBuffer *edges; | GPUBuffer *edges; | ||||
| GPUBuffer *uvedges; | GPUBuffer *uvedges; | ||||
| /* for each triangle, the original MFace index */ | /* for each triangle, the original MFace index */ | ||||
| int *triangle_to_mface; | int *triangle_to_mpoly; | ||||
| /* for each original vertex, the list of related points */ | /* for each original vertex, the list of related points */ | ||||
| struct GPUVertPointLink *vert_points; | struct GPUVertPointLink *vert_points; | ||||
| /* see: USE_GPU_POINT_LINK define */ | /* see: USE_GPU_POINT_LINK define */ | ||||
| #if 0 | #if 0 | ||||
| /* storage for the vert_points lists */ | /* storage for the vert_points lists */ | ||||
| struct GPUVertPointLink *vert_points_mem; | struct GPUVertPointLink *vert_points_mem; | ||||
| int vert_points_usage; | int vert_points_usage; | ||||
| #endif | #endif | ||||
| int colType; | int colType; | ||||
| GPUBufferMaterial *materials; | GPUBufferMaterial *materials; | ||||
| int totmaterial; | int totmaterial; | ||||
| int tot_triangle_point; | int tot_triangle_point; | ||||
| int tot_loose_point; | int tot_loose_point; | ||||
| /* caches of the original DerivedMesh values */ | /* caches of the original DerivedMesh values */ | ||||
| int totvert; | int totvert; | ||||
| int totedge; | int totedge; | ||||
| int loose_edge_offset; | int loose_edge_offset; | ||||
| int tot_loose_edge_drawn; | int tot_loose_edge_drawn; | ||||
| int tot_edge_drawn; | int tot_edge_drawn; | ||||
| } GPUDrawObject; | } GPUDrawObject; | ||||
| ▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
| void GPU_buffer_unbind(void); | void GPU_buffer_unbind(void); | ||||
| /* Buffers for non-DerivedMesh drawing */ | /* Buffers for non-DerivedMesh drawing */ | ||||
| typedef struct GPU_PBVH_Buffers GPU_PBVH_Buffers; | typedef struct GPU_PBVH_Buffers GPU_PBVH_Buffers; | ||||
| /* build */ | /* build */ | ||||
| GPU_PBVH_Buffers *GPU_build_mesh_pbvh_buffers( | GPU_PBVH_Buffers *GPU_build_mesh_pbvh_buffers( | ||||
| const int (*face_vert_indices)[4], | const int (*face_vert_indices)[4], | ||||
| const struct MFace *mface, const struct MVert *mvert, | const struct MPoly *mpoly, const struct MLoop *mloop, const struct MLoopTri *looptri, | ||||
| const int *face_indices, int totface); | const struct MVert *verts, | ||||
| const int *face_indices, int totprim); | |||||
| GPU_PBVH_Buffers *GPU_build_grid_pbvh_buffers(int *grid_indices, int totgrid, | GPU_PBVH_Buffers *GPU_build_grid_pbvh_buffers(int *grid_indices, int totgrid, | ||||
| unsigned int **grid_hidden, int gridsize); | unsigned int **grid_hidden, int gridsize); | ||||
| GPU_PBVH_Buffers *GPU_build_bmesh_pbvh_buffers(int smooth_shading); | GPU_PBVH_Buffers *GPU_build_bmesh_pbvh_buffers(int smooth_shading); | ||||
| /* update */ | /* update */ | ||||
| Show All 31 Lines | |||||