Blender  V3.3
scene/bake.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: Apache-2.0
2  * Copyright 2011-2022 Blender Foundation */
3 
4 #ifndef __BAKE_H__
5 #define __BAKE_H__
6 
7 #include "device/device.h"
8 #include "scene/scene.h"
9 
10 #include "util/progress.h"
11 #include "util/vector.h"
12 
14 
15 class BakeManager {
16  public:
17  BakeManager();
18  ~BakeManager();
19 
20  void set(Scene *scene, const std::string &object_name);
21  bool get_baking() const;
22 
23  void device_update(Device *device, DeviceScene *dscene, Scene *scene, Progress &progress);
24  void device_free(Device *device, DeviceScene *dscene);
25 
26  void tag_update();
27 
28  bool need_update() const;
29 
30  private:
31  bool need_update_;
32  std::string object_name;
33 };
34 
36 
37 #endif /* __BAKE_H__ */
~BakeManager()
Definition: bake.cpp:21
BakeManager()
Definition: bake.cpp:16
bool need_update() const
Definition: bake.cpp:86
void set(Scene *scene, const std::string &object_name)
Definition: bake.cpp:30
void device_free(Device *device, DeviceScene *dscene)
Definition: bake.cpp:77
bool get_baking() const
Definition: bake.cpp:25
void tag_update()
Definition: bake.cpp:81
void device_update(Device *device, DeviceScene *dscene, Scene *scene, Progress &progress)
Definition: bake.cpp:41
#define CCL_NAMESPACE_END
Definition: cuda/compat.h:9
Scene scene