Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_cache.c
| Show First 20 Lines • Show All 3,275 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| GPUBatch *DRW_cache_mesh_surface_get(Object *ob) | GPUBatch *DRW_cache_mesh_surface_get(Object *ob) | ||||
| { | { | ||||
| BLI_assert(ob->type == OB_MESH); | BLI_assert(ob->type == OB_MESH); | ||||
| return DRW_mesh_batch_cache_get_surface(ob->data); | return DRW_mesh_batch_cache_get_surface(ob->data); | ||||
| } | } | ||||
| GPUBatch *DRW_cache_mesh_surface_edges_get(Object *ob) | GPUBatch *DRW_cache_mesh_surface_edges_get(Object *ob, bool texture_paint) | ||||
| { | { | ||||
| BLI_assert(ob->type == OB_MESH); | BLI_assert(ob->type == OB_MESH); | ||||
| if (texture_paint) { | |||||
| return DRW_mesh_batch_cache_get_surface_texture_paint_edges(ob->data); | |||||
| } | |||||
| else { | |||||
| return DRW_mesh_batch_cache_get_surface_edges(ob->data); | return DRW_mesh_batch_cache_get_surface_edges(ob->data); | ||||
| } | } | ||||
| } | |||||
| /* Return list of batches with length equal to max(1, totcol). */ | /* Return list of batches with length equal to max(1, totcol). */ | ||||
| GPUBatch **DRW_cache_mesh_surface_shaded_get(Object *ob, | GPUBatch **DRW_cache_mesh_surface_shaded_get(Object *ob, | ||||
| struct GPUMaterial **gpumat_array, | struct GPUMaterial **gpumat_array, | ||||
| uint gpumat_array_len, | uint gpumat_array_len, | ||||
| char **auto_layer_names, | char **auto_layer_names, | ||||
| int **auto_layer_is_srgb, | int **auto_layer_is_srgb, | ||||
| int *auto_layer_count) | int *auto_layer_count) | ||||
| ▲ Show 20 Lines • Show All 791 Lines • Show Last 20 Lines | |||||