Blender V4.5
gpu_batch_presets.cc File Reference
#include "BLI_listbase.h"
#include "BLI_math_vector.h"
#include "BLI_math_vector_types.hh"
#include "BLI_threads.h"
#include "MEM_guardedalloc.h"
#include "GPU_batch.hh"
#include "GPU_batch_presets.hh"

Go to the source code of this file.

Classes

struct  [struct].g_presets_3d
struct  [struct].g_presets_2d

Functions

3D Primitives
static GPUVertFormatpreset_3d_format ()
static GPUVertFormatpreset_2d_format ()
static void batch_sphere_lat_lon_vert (GPUVertBufRaw *pos_step, GPUVertBufRaw *nor_step, float lat, float lon)
blender::gpu::Batch * GPU_batch_preset_sphere (int lod)
blender::gpu::Batch * GPU_batch_preset_sphere_wire (int lod)
Create Sphere (3D)
static blender::gpu::Batch * gpu_batch_sphere (int lat_res, int lon_res)
static blender::gpu::Batch * batch_sphere_wire (int lat_res, int lon_res)
blender::gpu::Batch * GPU_batch_preset_quad ()
Preset Registration Management
void gpu_batch_presets_init ()
void gpu_batch_presets_register (blender::gpu::Batch *preset_batch)
bool gpu_batch_presets_unregister (blender::gpu::Batch *preset_batch)
void gpu_batch_presets_exit ()

Variables

Local Structures
static struct  g_presets_3d = {{nullptr}}
static struct  g_presets_2d = {{nullptr}}
static ListBase presets_list = {nullptr, nullptr}

Function Documentation

◆ batch_sphere_lat_lon_vert()

void batch_sphere_lat_lon_vert ( GPUVertBufRaw * pos_step,
GPUVertBufRaw * nor_step,
float lat,
float lon )
static

◆ batch_sphere_wire()

◆ GPU_batch_preset_quad()

◆ GPU_batch_preset_sphere()

◆ GPU_batch_preset_sphere_wire()

blender::gpu::Batch * GPU_batch_preset_sphere_wire ( int lod)

◆ gpu_batch_presets_exit()

◆ gpu_batch_presets_init()

◆ gpu_batch_presets_register()

◆ gpu_batch_presets_unregister()

bool gpu_batch_presets_unregister ( blender::gpu::Batch * preset_batch)

◆ gpu_batch_sphere()

◆ preset_2d_format()

GPUVertFormat & preset_2d_format ( )
static

◆ preset_3d_format()

Variable Documentation

◆ g_presets_2d

◆ g_presets_3d

◆ presets_list