Blender V4.3
viewport.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2019-2022 Blender Foundation
2 *
3 * SPDX-License-Identifier: Apache-2.0 */
4
5#ifndef __BLENDER_VIEWPORT_H__
6#define __BLENDER_VIEWPORT_H__
7
8#include "MEM_guardedalloc.h"
9
10#include "RNA_access.hh"
11#include "RNA_blender_cpp.hh"
12#include "RNA_types.hh"
13
14#include "scene/film.h"
15
17
19 public:
20 /* Shader. */
27
28 /* Film. */
31
33 BlenderViewportParameters(BL::SpaceView3D &b_v3d, bool use_developer_ui);
34
35 /* Check whether any of shading related settings are different from the given parameters. */
36 bool shader_modified(const BlenderViewportParameters &other) const;
37
38 /* Check whether any of film related settings are different from the given parameters. */
39 bool film_modified(const BlenderViewportParameters &other) const;
40
41 /* Check whether any of settings are different from the given parameters. */
42 bool modified(const BlenderViewportParameters &other) const;
43
44 /* Returns truth when a custom shader defined by the viewport is to be used instead of the
45 * regular background shader or scene light. */
46 bool use_custom_shader() const;
47};
48
50
51#endif
Read Guarded memory(de)allocation.
bool shader_modified(const BlenderViewportParameters &other) const
Definition viewport.cpp:71
bool film_modified(const BlenderViewportParameters &other) const
Definition viewport.cpp:80
bool use_custom_shader() const
Definition viewport.cpp:90
bool modified(const BlenderViewportParameters &other) const
Definition viewport.cpp:85
#define CCL_NAMESPACE_END
PassType