Blender
V3.3
source
blender
gpu
intern
gpu_batch_private.hh
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later
2
* Copyright 2016 by Mike Erwin. All rights reserved. */
3
11
#pragma once
12
13
#include "
GPU_batch.h
"
14
#include "
GPU_context.h
"
15
16
#include "
gpu_index_buffer_private.hh
"
17
#include "
gpu_vertex_buffer_private.hh
"
18
19
namespace
blender
{
20
namespace
gpu {
21
27
class
Batch
:
public
GPUBatch
{
28
public
:
29
virtual
~Batch
() =
default
;
30
31
virtual
void
draw
(
int
v_first,
int
v_count,
int
i_first,
int
i_count) = 0;
32
33
/* Convenience casts. */
34
IndexBuf
*
elem_
()
const
35
{
36
return
unwrap
(elem);
37
}
38
VertBuf
*
verts_
(
const
int
index)
const
39
{
40
return
unwrap
(
verts
[index]);
41
}
42
VertBuf
*
inst_
(
const
int
index)
const
43
{
44
return
unwrap
(inst[index]);
45
}
46
};
47
48
}
// namespace gpu
49
}
// namespace blender
GPU_batch.h
GPUBatch
GPUBatch
Definition:
GPU_batch.h:78
GPU_context.h
blender::gpu::Batch
Definition:
gpu_batch_private.hh:27
blender::gpu::Batch::draw
virtual void draw(int v_first, int v_count, int i_first, int i_count)=0
blender::gpu::Batch::inst_
VertBuf * inst_(const int index) const
Definition:
gpu_batch_private.hh:42
blender::gpu::Batch::verts_
VertBuf * verts_(const int index) const
Definition:
gpu_batch_private.hh:38
blender::gpu::Batch::~Batch
virtual ~Batch()=default
blender::gpu::Batch::elem_
IndexBuf * elem_() const
Definition:
gpu_batch_private.hh:34
blender::gpu::IndexBuf
Definition:
gpu_index_buffer_private.hh:34
blender::gpu::VertBuf
Definition:
gpu_vertex_buffer_private.hh:20
verts
static float verts[][3]
Definition:
geom_arrow_gizmo.c:12
gpu_index_buffer_private.hh
gpu_vertex_buffer_private.hh
blender::gpu::unwrap
static Context * unwrap(GPUContext *ctx)
Definition:
gpu_context_private.hh:87
blender
Definition:
BKE_action.hh:16
Generated on Tue Oct 22 2024 13:18:25 for Blender by
doxygen
1.9.1