Blender V5.0
draw_common_c.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
8
9#pragma once
10
12struct GPUMaterial;
13
14namespace blender::gpu {
15class Texture;
16class UniformBuf;
17class VertBuf;
18} // namespace blender::gpu
19struct ModifierData;
20struct Object;
21struct ParticleSystem;
22struct RegionView3D;
23struct ViewLayer;
24struct Scene;
25struct DRWData;
26namespace blender::draw {
27class Manager;
28struct CurvesModule;
29struct PointCloudModule;
30struct VolumeModule;
31class ObjectRef;
32} // namespace blender::draw
33
34/* draw_curves.cc */
35
36namespace blender::draw {
37
38/* If drw_data is nullptr, DST global is accessed to get it. */
39void DRW_curves_init(DRWData *drw_data = nullptr);
40void DRW_curves_begin_sync(DRWData *drw_data);
41void DRW_curves_module_free(draw::CurvesModule *module);
42void DRW_curves_update(draw::Manager &manager);
43
44/* draw_pointcloud.cc */
45
46/* If drw_data is nullptr, DST global is accessed to get it. */
47void DRW_pointcloud_init(DRWData *drw_data = nullptr);
48void DRW_pointcloud_module_free(draw::PointCloudModule *module);
49
50/* draw_volume.cc */
51
52/* If drw_data is nullptr, DST global is accessed to get it. */
53void DRW_volume_init(DRWData *drw_data = nullptr);
54void DRW_volume_module_free(draw::VolumeModule *module);
55
56} // namespace blender::draw
57
58/* `draw_fluid.cc` */
59
60/* Fluid simulation. */
61void DRW_smoke_ensure(FluidModifierData *fmd, int highres);
66
68
69void DRW_smoke_begin_sync(DRWData *drw_data);
70void DRW_smoke_exit(DRWData *drw_data);
void DRW_fluid_ensure_flags(FluidModifierData *fmd)
void DRW_smoke_begin_sync(DRWData *drw_data)
void DRW_smoke_ensure_coba_field(FluidModifierData *fmd)
void DRW_fluid_ensure_range_field(FluidModifierData *fmd)
void DRW_smoke_ensure(FluidModifierData *fmd, int highres)
void DRW_smoke_ensure_velocity(FluidModifierData *fmd)
void DRW_smoke_exit(DRWData *drw_data)
void DRW_smoke_free(FluidModifierData *fmd)
void DRW_curves_module_free(draw::CurvesModule *module)
void DRW_pointcloud_module_free(draw::PointCloudModule *module)
void DRW_curves_init(DRWData *drw_data=nullptr)
void DRW_curves_update(draw::Manager &manager)
void DRW_volume_init(DRWData *drw_data=nullptr)
void DRW_curves_begin_sync(DRWData *drw_data)
void DRW_pointcloud_init(DRWData *drw_data=nullptr)
void DRW_volume_module_free(draw::VolumeModule *module)
static struct PyModuleDef module
Definition python.cpp:796