Blender V5.3
GPU_batch_utils.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "BLI_compiler_attrs.hh"
12#include "BLI_sys_types.hh"
13
14namespace blender {
15
16struct rctf;
17namespace gpu {
18class Batch;
19}
20
21/* `gpu_batch_utils.cc` */
22
32gpu::Batch *GPU_batch_tris_from_poly_2d_encoded(const uchar *polys_flat,
33 uint polys_flat_len,
34 const rctf *rect) ATTR_WARN_UNUSED_RESULT
35 ATTR_NONNULL(1);
36gpu::Batch *GPU_batch_wire_from_poly_2d_encoded(const uchar *polys_flat,
37 uint polys_flat_len,
38 const rctf *rect) ATTR_WARN_UNUSED_RESULT
39 ATTR_NONNULL(1);
40
46
52gpu::Batch *gpu_batch_sphere(int lat_res, int lon_res) ATTR_WARN_UNUSED_RESULT;
53
54} // namespace blender
BMesh Iterators.
unsigned int uint
Definition BKE_text.h:55
gpu::Batch * GPU_batch_unit_cube() ATTR_WARN_UNUSED_RESULT
gpu::Batch * gpu_batch_sphere(int lat_res, int lon_res) ATTR_WARN_UNUSED_RESULT
unsigned char uchar
Definition BKE_text.h:58
gpu::Batch * GPU_batch_wire_from_poly_2d_encoded(const uchar *polys_flat, uint polys_flat_len, const rctf *rect) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
gpu::Batch * GPU_batch_tris_from_poly_2d_encoded(const uchar *polys_flat, uint polys_flat_len, const rctf *rect) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
bool ATTR_WARN_UNUSED_RESULT
void ATTR_NONNULL(1, 2)