#include <light.h>
|
constexpr | Light ()=default |
|
constexpr | Light (Type t) noexcept |
|
void | set_pos (const vec3 &p) |
|
void | set_dir (const vec3 &p) |
|
void | set_color (const vec4 &c) |
|
void | set_att (lua_State *L) |
|
void | set_spec (float v) |
|
void | set_cutoff (float v) |
|
float | range () const |
|
vec3 | ortho_view_pos (float far) const |
|
mat4 | ortho_view (float far) const |
|
mat4 | persp_view (int face, bool zsprites) const |
|
void | write_to_ubo_dir (LightsUBO *ubo, size_t i, float far, const mat4 &proj) const |
|
void | write_to_ubo_point (LightsUBO *ubo, size_t i, bool zsprites) const |
|
constexpr | Light ()=default |
|
constexpr | Light (Type t) noexcept |
|
void | set_pos (const vec3 &p) |
|
void | set_dir (const vec3 &p) |
|
void | set_color (const vec4 &c) |
|
void | set_att (lua_State *L) |
|
void | set_spec (float v) |
|
void | set_cutoff (float v) |
|
float | range () const |
|
vec3 | ortho_view_pos (float far) const |
|
mat4 | ortho_view (float far) const |
|
mat4 | persp_view (int face, bool zsprites) const |
|
void | write_to_ubo_dir (LightsUBO *ubo, size_t i, float far, const mat4 &proj) const |
|
void | write_to_ubo_point (LightsUBO *ubo, size_t i, bool zsprites) const |
|
◆ Type [1/2]
Enumerator |
---|
POINT | |
DIR | |
POINT | |
DIR | |
◆ Type [2/2]
Enumerator |
---|
POINT | |
DIR | |
POINT | |
DIR | |
◆ Light() [1/4]
constexpr nngn::Light::Light |
( |
| ) |
|
|
constexprdefault |
◆ Light() [2/4]
constexpr nngn::Light::Light |
( |
Type |
t | ) |
|
|
inlineexplicitconstexprnoexcept |
◆ Light() [3/4]
constexpr nngn::Light::Light |
( |
| ) |
|
|
constexprdefault |
◆ Light() [4/4]
constexpr nngn::Light::Light |
( |
Type |
t | ) |
|
|
inlineexplicitconstexprnoexcept |
◆ att_for_range() [1/2]
static constexpr vec3 nngn::Light::att_for_range |
( |
float |
r | ) |
|
|
inlinestaticconstexpr |
◆ att_for_range() [2/2]
static constexpr vec3 nngn::Light::att_for_range |
( |
float |
r | ) |
|
|
inlinestaticconstexpr |
◆ ortho_view() [1/2]
mat4 nngn::Light::ortho_view |
( |
float |
far | ) |
const |
◆ ortho_view() [2/2]
mat4 nngn::Light::ortho_view |
( |
float |
far | ) |
const |
◆ ortho_view_pos() [1/2]
vec3 nngn::Light::ortho_view_pos |
( |
float |
far | ) |
const |
◆ ortho_view_pos() [2/2]
vec3 nngn::Light::ortho_view_pos |
( |
float |
far | ) |
const |
◆ persp_view() [1/2]
mat4 nngn::Light::persp_view |
( |
int |
face, |
|
|
bool |
zsprites |
|
) |
| const |
◆ persp_view() [2/2]
mat4 nngn::Light::persp_view |
( |
int |
face, |
|
|
bool |
zsprites |
|
) |
| const |
◆ range() [1/2]
float nngn::Light::range |
( |
| ) |
const |
|
inline |
◆ range() [2/2]
float nngn::Light::range |
( |
| ) |
const |
|
inline |
◆ set_att() [1/2]
void nngn::Light::set_att |
( |
lua_State * |
L | ) |
|
◆ set_att() [2/2]
void nngn::Light::set_att |
( |
lua_State * |
L | ) |
|
◆ set_color() [1/2]
void nngn::Light::set_color |
( |
const vec4 & |
c | ) |
|
◆ set_color() [2/2]
void nngn::Light::set_color |
( |
const vec4 & |
c | ) |
|
◆ set_cutoff() [1/2]
void nngn::Light::set_cutoff |
( |
float |
v | ) |
|
◆ set_cutoff() [2/2]
void nngn::Light::set_cutoff |
( |
float |
v | ) |
|
◆ set_dir() [1/2]
void nngn::Light::set_dir |
( |
const vec3 & |
p | ) |
|
◆ set_dir() [2/2]
void nngn::Light::set_dir |
( |
const vec3 & |
p | ) |
|
◆ set_pos() [1/2]
void nngn::Light::set_pos |
( |
const vec3 & |
p | ) |
|
◆ set_pos() [2/2]
void nngn::Light::set_pos |
( |
const vec3 & |
p | ) |
|
◆ set_spec() [1/2]
void nngn::Light::set_spec |
( |
float |
v | ) |
|
◆ set_spec() [2/2]
void nngn::Light::set_spec |
( |
float |
v | ) |
|
◆ write_to_ubo_dir() [1/2]
void nngn::Light::write_to_ubo_dir |
( |
LightsUBO * |
ubo, |
|
|
size_t |
i, |
|
|
float |
far, |
|
|
const mat4 & |
proj |
|
) |
| const |
◆ write_to_ubo_dir() [2/2]
void nngn::Light::write_to_ubo_dir |
( |
LightsUBO * |
ubo, |
|
|
size_t |
i, |
|
|
float |
far, |
|
|
const mat4 & |
proj |
|
) |
| const |
◆ write_to_ubo_point() [1/2]
void nngn::Light::write_to_ubo_point |
( |
LightsUBO * |
ubo, |
|
|
size_t |
i, |
|
|
bool |
zsprites |
|
) |
| const |
◆ write_to_ubo_point() [2/2]
void nngn::Light::write_to_ubo_point |
( |
LightsUBO * |
ubo, |
|
|
size_t |
i, |
|
|
bool |
zsprites |
|
) |
| const |
◆ att
vec3 nngn::Light::att = {1, 0, 0} |
◆ color
vec4 nngn::Light::color = {} |
◆ cutoff
float nngn::Light::cutoff = 0.0f |
◆ dir
vec3 nngn::Light::dir = {} |
Entity * nngn::Light::e = nullptr |
◆ pos
vec3 nngn::Light::pos = {} |
◆ spec
float nngn::Light::spec = 1.0f |
◆ type
◆ updated
bool nngn::Light::updated = true |
The documentation for this struct was generated from the following files: