Blender V5.3
scene_attributes.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
2 *
3 * SPDX-License-Identifier: Apache-2.0 */
4
5#pragma once
6
7#include "kernel/types.h"
8
9#include "graph/node.h"
10
12
13class Device;
14class DeviceScene;
15class Scene;
16
17class SceneAttributes : public Node {
18 public:
20
21 NODE_SOCKET_API(float, time)
22 NODE_SOCKET_API(float, frame)
23
24 enum : uint32_t {
25 /* Tag everything in the manager for an update. */
27
29 };
30
32 ~SceneAttributes() override;
33
34 void device_update(Device *device, DeviceScene *dscene, Scene *scene);
35 void device_free(Device *device, DeviceScene *dscene, bool force_free = false);
36
37 void tag_update(Scene *scene, const uint32_t flag);
38
39 bool is_modified() const;
40 void clear_modified();
41};
42
void device_free(Device *device, DeviceScene *dscene, bool force_free=false)
bool is_modified() const
~SceneAttributes() override
void device_update(Device *device, DeviceScene *dscene, Scene *scene)
void tag_update(Scene *scene, const uint32_t flag)
Definition scene.h:133
#define CCL_NAMESPACE_END
#define NODE_SOCKET_API(type_, name)
Definition graph/node.h:56
#define NODE_DECLARE
Definition node_type.h:150
Node(const NodeType *type, ustring name=ustring())