Blender  V3.3
eevee_world.hh
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2021 Blender Foundation.
3  */
4 
12 #pragma once
13 
14 #include "DNA_world_types.h"
15 
16 namespace blender::eevee {
17 
18 class Instance;
19 
20 /* -------------------------------------------------------------------- */
29  private:
30  bNodeTree *ntree_;
31  bNodeSocketValueRGBA *color_socket_;
32 
33  public:
36 
38 };
39 
42 /* -------------------------------------------------------------------- */
47 class World {
48  private:
49  Instance &inst_;
50 
51  DefaultWorldNodeTree default_tree;
52 
53  /* Used to detect if world change. */
54  ::World *prev_original_world = nullptr;
55 
56  public:
57  World(Instance &inst) : inst_(inst){};
58 
59  void sync();
60 };
61 
64 } // namespace blender::eevee
bNodeTree * nodetree_get(::World *world)
Definition: eevee_world.cc:46
A running instance of the engine.
World(Instance &inst)
Definition: eevee_world.hh:57
World world