Blender V4.3
gl_drawlist.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2020 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
12#pragma once
13
14#include "MEM_guardedalloc.h"
15
16#include "BLI_sys_types.h"
17
18#include "GPU_batch.hh"
19
21
22#include "gl_context.hh"
23
24namespace blender {
25namespace gpu {
26
30class GLDrawList : public DrawList {
31 public:
32 GLDrawList(int length);
34
35 void append(Batch *batch, int i_first, int i_count) override;
36 void submit() override;
37
38 private:
39 void init();
40
42 GLBatch *batch_;
44 GLbyte *data_;
46 GLsizeiptr data_size_;
48 GLintptr command_offset_;
50 uint command_len_;
52 GLuint base_index_;
54 GLuint v_first_, v_count_;
55
57 GLuint buffer_id_;
59 GLsizeiptr buffer_size_;
61 GLintptr data_offset_;
62
64 GLContext *context_;
65
66 MEM_CXX_CLASS_ALLOC_FUNCS("GLDrawList");
67};
68
69} // namespace gpu
70} // namespace blender
unsigned int uint
Read Guarded memory(de)allocation.
append
struct @620::@622 batch