Blender V5.0
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.h"
15
16namespace blender::gpu {
17class Batch;
18class StorageBuf;
19} // namespace blender::gpu
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;
27
31blender::gpu::Batch *GPU_batch_preset_quad();
32
34/* Registers batch to be destroyed at exit time. */
35void gpu_batch_presets_register(blender::gpu::Batch *preset_batch);
36/* Registers buffer to be destroyed at exit time. */
#define ATTR_WARN_UNUSED_RESULT
blender::gpu::Batch * GPU_batch_preset_quad()
void gpu_batch_presets_register(blender::gpu::Batch *preset_batch)
void gpu_batch_presets_init()
void gpu_batch_storage_buffer_register(blender::gpu::StorageBuf *preset_buffer)
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()