Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::light::spot Struct Reference

Struct representing spot light specific properties. More...

#include <light.h>

Public Member Functions

void set_range (float r)
 Sets the range of the spot light.
 
float get_range () const
 Gets the range of the spot light.
 
void set_outer_angle (float angle)
 Sets the outer angle of the spot light.
 
float get_outer_angle () const
 Gets the outer angle of the spot light.
 
void set_inner_angle (float angle)
 Sets the inner angle of the spot light.
 
float get_inner_angle () const
 Gets the inner angle of the spot light.
 

Public Attributes

float range = 10.0f
 The range of the spot light.
 
float outer_angle = 60.0f
 The outer angle of the spot light.
 
float inner_angle = 30.0f
 The inner angle of the spot light.
 

Detailed Description

Struct representing spot light specific properties.

Definition at line 94 of file light.h.

Member Function Documentation

◆ get_inner_angle()

float unravel::light::spot::get_inner_angle ( ) const
inline

Gets the inner angle of the spot light.

Returns
The inner angle of the spot light.

Definition at line 136 of file light.h.

◆ get_outer_angle()

float unravel::light::spot::get_outer_angle ( ) const
inline

Gets the outer angle of the spot light.

Returns
The outer angle of the spot light.

Definition at line 121 of file light.h.

◆ get_range()

float unravel::light::spot::get_range ( ) const
inline

Gets the range of the spot light.

Returns
The range of the spot light.

Definition at line 106 of file light.h.

◆ set_inner_angle()

void unravel::light::spot::set_inner_angle ( float angle)

Sets the inner angle of the spot light.

Parameters
angleThe inner angle to set.

Definition at line 21 of file light.cpp.

◆ set_outer_angle()

void unravel::light::spot::set_outer_angle ( float angle)

Sets the outer angle of the spot light.

Parameters
angleThe outer angle to set.

Definition at line 13 of file light.cpp.

◆ set_range()

void unravel::light::spot::set_range ( float r)

Sets the range of the spot light.

Parameters
rThe range to set.

Definition at line 5 of file light.cpp.

Member Data Documentation

◆ inner_angle

float unravel::light::spot::inner_angle = 30.0f

The inner angle of the spot light.

Definition at line 146 of file light.h.

◆ outer_angle

float unravel::light::spot::outer_angle = 60.0f

The outer angle of the spot light.

Definition at line 144 of file light.h.

◆ range

float unravel::light::spot::range = 10.0f

The range of the spot light.

Definition at line 142 of file light.h.


The documentation for this struct was generated from the following files: