Blender V4.3
GPU_batch_presets.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2016 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
12#pragma once
13
14#include "BLI_compiler_attrs.h"
15#include "BLI_sys_types.h"
16
17namespace blender::gpu {
18class Batch;
19}
20
21/* `gpu_batch_presets.cc` */
22
23/* Replacement for #gluSphere */
24
25blender::gpu::Batch *GPU_batch_preset_sphere(int lod) ATTR_WARN_UNUSED_RESULT;
26blender::gpu::Batch *GPU_batch_preset_sphere_wire(int lod) ATTR_WARN_UNUSED_RESULT;
27blender::gpu::Batch *GPU_batch_preset_panel_drag_widget(float pixelsize,
28 const float col_high[4],
29 const float col_dark[4],
30 float width) ATTR_WARN_UNUSED_RESULT;
31
35blender::gpu::Batch *GPU_batch_preset_quad();
36
38void gpu_batch_presets_register(blender::gpu::Batch *preset_batch);
39bool gpu_batch_presets_unregister(blender::gpu::Batch *preset_batch);
#define ATTR_WARN_UNUSED_RESULT
blender::gpu::Batch * GPU_batch_preset_quad()
bool gpu_batch_presets_unregister(blender::gpu::Batch *preset_batch)
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
void gpu_batch_presets_register(blender::gpu::Batch *preset_batch)
void gpu_batch_presets_init()
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
void gpu_batch_presets_exit()