Blender  V3.3
Functions
GPU_batch_presets.h File Reference
#include "BLI_compiler_attrs.h"
#include "BLI_sys_types.h"

Go to the source code of this file.

Functions

struct GPUBatchGPU_batch_preset_sphere (int lod) ATTR_WARN_UNUSED_RESULT
 
struct GPUBatchGPU_batch_preset_sphere_wire (int lod) ATTR_WARN_UNUSED_RESULT
 
struct GPUBatchGPU_batch_preset_panel_drag_widget (float pixelsize, const float col_high[4], const float col_dark[4], float width) ATTR_WARN_UNUSED_RESULT
 
struct GPUBatchGPU_batch_preset_quad (void)
 
void gpu_batch_presets_init (void)
 
void gpu_batch_presets_register (struct GPUBatch *preset_batch)
 
bool gpu_batch_presets_unregister (struct GPUBatch *preset_batch)
 
void gpu_batch_presets_exit (void)
 

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.h.

Function Documentation

◆ GPU_batch_preset_panel_drag_widget()

struct GPUBatch* GPU_batch_preset_panel_drag_widget ( float  pixelsize,
const float  col_high[4],
const float  col_dark[4],
float  width 
)

◆ GPU_batch_preset_quad()

struct GPUBatch* GPU_batch_preset_quad ( void  )

◆ GPU_batch_preset_sphere()

struct GPUBatch* GPU_batch_preset_sphere ( int  lod)

◆ GPU_batch_preset_sphere_wire()

struct GPUBatch* GPU_batch_preset_sphere_wire ( int  lod)

Definition at line 117 of file gpu_batch_presets.c.

References BLI_assert, BLI_thread_is_main(), and g_presets_3d.

◆ gpu_batch_presets_exit()

void gpu_batch_presets_exit ( void  )

◆ gpu_batch_presets_init()

void gpu_batch_presets_init ( void  )

◆ gpu_batch_presets_register()

void gpu_batch_presets_register ( struct GPUBatch preset_batch)

◆ gpu_batch_presets_unregister()

bool gpu_batch_presets_unregister ( struct GPUBatch preset_batch)