Blender V5.3
gpu_batch_presets.cc File Reference
#include "BLI_listbase.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_math_vector_types.hh"
#include "BLI_threads.hh"
#include "MEM_guardedalloc.h"
#include "GPU_batch.hh"
#include "GPU_batch_presets.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

3D Primitives
static GPUVertFormat & blender::preset_3d_format ()
static GPUVertFormat & blender::preset_2d_format ()
static void blender::batch_sphere_lat_lon_vert (GPUVertBufRaw *pos_step, GPUVertBufRaw *nor_step, float lat, float lon)
gpu::Batch * blender::GPU_batch_preset_sphere (int lod) ATTR_WARN_UNUSED_RESULT
gpu::Batch * blender::GPU_batch_preset_sphere_wire (int lod) ATTR_WARN_UNUSED_RESULT
Create Sphere (3D)
gpu::Batch * blender::gpu_batch_sphere (int lat_res, int lon_res) ATTR_WARN_UNUSED_RESULT
static gpu::Batch * blender::batch_sphere_wire (int lat_res, int lon_res)
gpu::Batch * blender::GPU_batch_preset_quad ()
Preset Registration Management
void blender::gpu_batch_presets_init ()
void blender::gpu_batch_presets_register (gpu::Batch *preset_batch)
void blender::gpu_batch_storage_buffer_register (gpu::StorageBuf *preset_buffer)
void blender::gpu_batch_presets_exit ()

Variables

Local Structures
static struct  blender::g_presets_3d = {{nullptr}}
static struct  blender::g_presets_2d = {{nullptr}}
static ListBaseT< LinkData > blender::presets_list = {nullptr, nullptr}
static ListBaseT< LinkData > blender::buffer_list = {nullptr, nullptr}