Blender V4.3
GPU_batch_presets.hh File Reference
#include "BLI_compiler_attrs.h"
#include "BLI_sys_types.h"

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::gpu
 

Functions

blender::gpu::Batch * GPU_batch_preset_sphere (int lod) ATTR_WARN_UNUSED_RESULT
 
blender::gpu::Batch * GPU_batch_preset_sphere_wire (int lod) ATTR_WARN_UNUSED_RESULT
 
blender::gpu::Batch * GPU_batch_preset_panel_drag_widget (float pixelsize, const float col_high[4], const float col_dark[4], float width) ATTR_WARN_UNUSED_RESULT
 
blender::gpu::Batch * GPU_batch_preset_quad ()
 
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 ()
 

Detailed Description

Batched geometry rendering is powered by the GPU library. This file contains any additions or modifications specific to Blender.

Definition in file GPU_batch_presets.hh.

Function Documentation

◆ GPU_batch_preset_panel_drag_widget()

blender::gpu::Batch * GPU_batch_preset_panel_drag_widget ( float pixelsize,
const float col_high[4],
const float col_dark[4],
float width )

◆ GPU_batch_preset_quad()

◆ GPU_batch_preset_sphere()

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

◆ GPU_batch_preset_sphere_wire()

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

Definition at line 119 of file gpu_batch_presets.cc.

References BLI_assert, BLI_thread_is_main(), and g_presets_3d.

◆ gpu_batch_presets_exit()

void gpu_batch_presets_exit ( )

◆ gpu_batch_presets_init()

void gpu_batch_presets_init ( )

◆ gpu_batch_presets_register()

◆ gpu_batch_presets_unregister()

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