* Use .empty() and .data() * Use nullptr instead of 0 * No else after return * Simple class member initialization * Add override for virtual methods * Include C++ instead of C headers * Remove some unused includes * Use default constructors * Always use braces * Consistent names in definition and declaration * Change typedef to using Pull Request: https://projects.blender.org/blender/blender/pulls/132361
23 lines
618 B
C++
23 lines
618 B
C++
/* SPDX-FileCopyrightText: 2011-2023 Blender Foundation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 */
|
|
|
|
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
#include "RNA_blender_cpp.hh"
|
|
|
|
CCL_NAMESPACE_BEGIN
|
|
|
|
class BlenderLightLink {
|
|
public:
|
|
static uint64_t get_light_set_membership(const BL::Object &parent, const BL::Object &object);
|
|
static uint get_receiver_light_set(const BL::Object &parent, const BL::Object &object);
|
|
|
|
static uint64_t get_shadow_set_membership(const BL::Object &parent, const BL::Object &object);
|
|
static uint get_blocker_shadow_set(const BL::Object &parent, const BL::Object &object);
|
|
};
|
|
|
|
CCL_NAMESPACE_END
|