pointlight More...
#include <pointLight.h>
Public Member Functions | |
| pointLight (const vec3 &pos, const float &intensity, Mesh *mesh=nullptr, const color &diffcol=color(255)) | |
| void | delpos (const vec3 &delta) |
| void | setpos (const vec3 &newPos) |
| void | setdiffColor (const color &color) |
| void | setColor (const vec3 &col) |
| const vec3 & | getpos () const |
| const color & | get_diffuse_color () const |
| const color & | get_ambient_color () const |
Public Member Functions inherited from node | |
| void | delpos (const vec3 &delta) |
| void | setpos (const vec3 &position) |
| void | setScale (const vec3 &scale) |
| void | setRotation (float angle, const vec3 &axis) |
| const mat4f & | refreshModel () |
| void | draw (engine &graphicsEngine, mat4f matModel_in=mat4f()) |
Public Attributes | |
| float | intensity |
| float | constant = 1 |
| float | linear = 0.09 |
| float | quadratic = 0.032 |
Public Attributes inherited from node | |
| std::unordered_map< std::string, node * > | children |
| std::vector< drawable< Vertex > * > | meshes |
| mat4f | matModel = mat4f() |
Private Attributes | |
| vec3 | position |
| color | diffuseColor |
| color | ambientColor = color(255) |
pointlight
Definition at line 9 of file pointLight.h.
|
inline |
Definition at line 25 of file pointLight.h.
|
inline |
Definition at line 33 of file pointLight.h.
|
inline |
Definition at line 66 of file pointLight.h.
|
inline |
Definition at line 65 of file pointLight.h.
|
inline |
Definition at line 64 of file pointLight.h.
|
inline |
Definition at line 59 of file pointLight.h.
|
inline |
Definition at line 51 of file pointLight.h.
|
inline |
Definition at line 38 of file pointLight.h.
Definition at line 13 of file pointLight.h.
| float pointLight::constant = 1 |
Definition at line 18 of file pointLight.h.
|
private |
Definition at line 12 of file pointLight.h.
| float pointLight::intensity |
Definition at line 16 of file pointLight.h.
| float pointLight::linear = 0.09 |
Definition at line 19 of file pointLight.h.
|
private |
Definition at line 11 of file pointLight.h.
| float pointLight::quadratic = 0.032 |
Definition at line 20 of file pointLight.h.