Blender  V3.3
viewport.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: Apache-2.0
2  * Copyright 2019-2022 Blender Foundation */
3 
4 #ifndef __BLENDER_VIEWPORT_H__
5 #define __BLENDER_VIEWPORT_H__
6 
7 #include "MEM_guardedalloc.h"
8 
9 #include "RNA_access.h"
10 #include "RNA_blender_cpp.h"
11 #include "RNA_types.h"
12 
13 #include "scene/film.h"
14 
16 
18  public:
19  /* Shader. */
26 
27  /* Film. */
30 
32  BlenderViewportParameters(BL::SpaceView3D &b_v3d, bool use_developer_ui);
33 
34  /* Check whether any of shading related settings are different from the given parameters. */
35  bool shader_modified(const BlenderViewportParameters &other) const;
36 
37  /* Check whether any of film related settings are different from the given parameters. */
38  bool film_modified(const BlenderViewportParameters &other) const;
39 
40  /* Check whether any of settings are different from the given parameters. */
41  bool modified(const BlenderViewportParameters &other) const;
42 
43  /* Returns truth when a custom shader defined by the viewport is to be used instead of the
44  * regular background shader or scene light. */
45  bool use_custom_shader() const;
46 };
47 
49 
50 #endif
Read Guarded memory(de)allocation.
bool shader_modified(const BlenderViewportParameters &other) const
Definition: viewport.cpp:70
bool film_modified(const BlenderViewportParameters &other) const
Definition: viewport.cpp:79
bool use_custom_shader() const
Definition: viewport.cpp:89
float studiolight_background_alpha
Definition: viewport.h:24
bool modified(const BlenderViewportParameters &other) const
Definition: viewport.cpp:84
#define CCL_NAMESPACE_END
Definition: cuda/compat.h:9
PassType
Definition: kernel/types.h:334