Blender V5.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
11
12#pragma once
13
14#include "BLI_compiler_attrs.hh"
15
16namespace blender {
17
18namespace gpu {
19class Batch;
20class StorageBuf;
21} // namespace gpu
22
23/* `gpu_batch_presets.cc` */
24
25/* Replacement for #gluSphere */
26
29
33gpu::Batch *GPU_batch_preset_quad();
34
36/* Registers batch to be destroyed at exit time. */
37void gpu_batch_presets_register(gpu::Batch *preset_batch);
38/* Registers buffer to be destroyed at exit time. */
41
42} // namespace blender
BMesh Iterators.
void gpu_batch_storage_buffer_register(gpu::StorageBuf *preset_buffer)
void gpu_batch_presets_init()
void gpu_batch_presets_register(gpu::Batch *preset_batch)
gpu::Batch * GPU_batch_preset_quad()
void gpu_batch_presets_exit()
gpu::Batch * GPU_batch_preset_sphere(int lod) ATTR_WARN_UNUSED_RESULT
bool ATTR_WARN_UNUSED_RESULT
gpu::Batch * GPU_batch_preset_sphere_wire(int lod) ATTR_WARN_UNUSED_RESULT