blender/source/blender/gpu/GPU_batch_presets.hh
Bastien Montagne e240930f04 Refactor: Make all BLI headers .hh C++ ones.
Mainly just boring renaming.

For the cases where there were both C and C++ headers with the same
name, the C one was either:
- Renamed to `_c.hh`.
- Merged into the existing `.hh` header.

Pull Request: https://projects.blender.org/blender/blender/pulls/160019
2026-06-15 11:25:04 +02:00

42 lines
1 KiB
C++

/* SPDX-FileCopyrightText: 2016 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
/** \file
* \ingroup gpu
*
* Batched geometry rendering is powered by the GPU library.
* This file contains any additions or modifications specific to Blender.
*/
#pragma once
#include "BLI_compiler_attrs.hh"
namespace blender {
namespace gpu {
class Batch;
class StorageBuf;
} // namespace gpu
/* `gpu_batch_presets.cc` */
/* Replacement for #gluSphere */
gpu::Batch *GPU_batch_preset_sphere(int lod) ATTR_WARN_UNUSED_RESULT;
gpu::Batch *GPU_batch_preset_sphere_wire(int lod) ATTR_WARN_UNUSED_RESULT;
/**
* To be used with procedural placement inside shader.
*/
gpu::Batch *GPU_batch_preset_quad();
void gpu_batch_presets_init();
/* Registers batch to be destroyed at exit time. */
void gpu_batch_presets_register(gpu::Batch *preset_batch);
/* Registers buffer to be destroyed at exit time. */
void gpu_batch_storage_buffer_register(gpu::StorageBuf *preset_buffer);
void gpu_batch_presets_exit();
} // namespace blender