Blender  V3.3
Functions | Variables
rna_light.c File Reference
#include <stdlib.h>
#include "BLI_math_base.h"
#include "BLI_math_rotation.h"
#include "BLI_sys_types.h"
#include "BLT_translation.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "rna_internal.h"
#include "DNA_light_types.h"
#include "DNA_material_types.h"
#include "DNA_texture_types.h"

Go to the source code of this file.

Functions

static void rna_def_light (BlenderRNA *brna)
 
static void rna_def_light_energy (StructRNA *srna, const short light_type)
 
static void rna_def_light_falloff (StructRNA *srna)
 
static void rna_def_light_shadow (StructRNA *srna, bool sun)
 
static void rna_def_point_light (BlenderRNA *brna)
 
static void rna_def_area_light (BlenderRNA *brna)
 
static void rna_def_spot_light (BlenderRNA *brna)
 
static void rna_def_sun_light (BlenderRNA *brna)
 
void RNA_def_light (BlenderRNA *brna)
 

Variables

const EnumPropertyItem rna_enum_light_type_items []
 

Function Documentation

◆ rna_def_area_light()

static void rna_def_area_light ( BlenderRNA brna)
static

◆ rna_def_light()

static void rna_def_light ( BlenderRNA brna)
static

◆ RNA_def_light()

void RNA_def_light ( BlenderRNA brna)

◆ rna_def_light_energy()

static void rna_def_light_energy ( StructRNA srna,
const short  light_type 
)
static

◆ rna_def_light_falloff()

static void rna_def_light_falloff ( StructRNA srna)
static

◆ rna_def_light_shadow()

static void rna_def_light_shadow ( StructRNA srna,
bool  sun 
)
static

◆ rna_def_point_light()

static void rna_def_point_light ( BlenderRNA brna)
static

◆ rna_def_spot_light()

static void rna_def_spot_light ( BlenderRNA brna)
static

◆ rna_def_sun_light()

static void rna_def_sun_light ( BlenderRNA brna)
static

Variable Documentation

◆ rna_enum_light_type_items

const EnumPropertyItem rna_enum_light_type_items[]
Initial value:
= {
{LA_LOCAL, "POINT", 0, "Point", "Omnidirectional point light source"},
{LA_SUN, "SUN", 0, "Sun", "Constant direction parallel ray light source"},
{LA_SPOT, "SPOT", 0, "Spot", "Directional cone light source"},
{LA_AREA, "AREA", 0, "Area", "Directional area light source"},
{0, NULL, 0, NULL, NULL},
}
#define LA_AREA
#define LA_SPOT
#define LA_SUN
#define LA_LOCAL

Definition at line 93 of file rna_light.c.

Referenced by rna_def_light().