Home
last modified time | relevance | path

Searched refs:lat_res (Results 1 – 3 of 3) sorted by relevance

/dports/graphics/blender/blender-2.91.0/source/blender/gpu/intern/
H A Dgpu_batch_presets.c158 GPUBatch *gpu_batch_sphere(int lat_res, int lon_res) in gpu_batch_sphere() argument
161 const float lat_inc = M_PI / lat_res; in gpu_batch_sphere()
165 const uint vbo_len = (lat_res - 1) * lon_res * 6; in gpu_batch_sphere()
175 for (int j = 0; j < lat_res; j++, lat += lat_inc) { in gpu_batch_sphere()
176 if (j != lat_res - 1) { /* Pole */ in gpu_batch_sphere()
196 static GPUBatch *batch_sphere_wire(int lat_res, int lon_res) in batch_sphere_wire() argument
199 const float lat_inc = M_PI / lat_res; in batch_sphere_wire()
203 const uint vbo_len = (lat_res * lon_res * 2) + ((lat_res - 1) * lon_res * 2); in batch_sphere_wire()
213 for (int j = 0; j < lat_res; j++, lat += lat_inc) { in batch_sphere_wire()
217 if (j != lat_res - 1) { /* Pole */ in batch_sphere_wire()
/dports/graphics/blender/blender-2.91.0/source/blender/gpu/
H A DGPU_batch_utils.h41 struct GPUBatch *gpu_batch_sphere(int lat_res, int lon_res) ATTR_WARN_UNUSED_RESULT;
/dports/graphics/blender/blender-2.91.0/source/blender/draw/intern/
H A Ddraw_cache.c479 const int lat_res = 32; in DRW_cache_sphere_get() local
486 int v_len = (lat_res - 1) * lon_res * 6; in DRW_cache_sphere_get()
490 const float lat_inc = M_PI / lat_res; in DRW_cache_sphere_get()
497 for (int j = 0; j < lat_res; j++, lat += lat_inc) { in DRW_cache_sphere_get()
498 if (j != lat_res - 1) { /* Pole */ in DRW_cache_sphere_get()
2124 const int lat_res = 24; in DRW_cache_bone_envelope_solid_get() local
2126 const float lat_inc = M_PI / lat_res; in DRW_cache_bone_envelope_solid_get()
2149 for (int j = 0; j < lat_res; j++, lat += lat_inc) { in DRW_cache_bone_envelope_solid_get()
2220 const int lat_res = 8; in DRW_cache_bone_point_get()
2223 const float lat_inc = M_PI / lat_res; in DRW_cache_bone_point_get()
[all …]