Blender  V2.93
Functions
BKE_light.h File Reference

General operations, lookup, etc. for blender lights. More...

#include "BLI_compiler_attrs.h"

Go to the source code of this file.

Functions

struct LightBKE_light_add (struct Main *bmain, const char *name) ATTR_WARN_UNUSED_RESULT
 
void BKE_light_eval (struct Depsgraph *depsgraph, struct Light *la)
 

Detailed Description

General operations, lookup, etc. for blender lights.

Definition in file BKE_light.h.

Function Documentation

◆ BKE_light_add()

struct Light* BKE_light_add ( struct Main bmain,
const char *  name 
)

Definition at line 217 of file light.c.

References BKE_id_new(), and ID_LA.

Referenced by BKE_object_obdata_add_from_type(), and DocumentImporter::writeLight().

◆ BKE_light_eval()

void BKE_light_eval ( struct Depsgraph depsgraph,
struct Light la 
)

Definition at line 226 of file light.c.

References DEG_debug_print_eval(), depsgraph, Light::id, and ID::name.