Searched refs:lat_res (Results 1 – 3 of 3) sorted by relevance
158 GPUBatch *gpu_batch_sphere(int lat_res, int lon_res) in gpu_batch_sphere() argument161 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() argument199 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()
41 struct GPUBatch *gpu_batch_sphere(int lat_res, int lon_res) ATTR_WARN_UNUSED_RESULT;
479 const int lat_res = 32; in DRW_cache_sphere_get() local486 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() local2126 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 …]