Blender V4.5
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;
18}
19
20/* `gpu_batch_presets.cc` */
21
22/* Replacement for #gluSphere */
23
24blender::gpu::Batch *GPU_batch_preset_sphere(int lod) ATTR_WARN_UNUSED_RESULT;
25blender::gpu::Batch *GPU_batch_preset_sphere_wire(int lod) ATTR_WARN_UNUSED_RESULT;
26
30blender::gpu::Batch *GPU_batch_preset_quad();
31
33void gpu_batch_presets_register(blender::gpu::Batch *preset_batch);
34bool 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)
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()