|
OpenPolygon
1.0.0
OpenPolygon is a Rendering Engine
|
#include <light.h>
Public Member Functions | |
| SpotLight () | |
| Light. More... | |
| SpotLight (const std::string &light_name) | |
| Light. More... | |
| void | setSpotDirection (const Vector3f &spotdirection) |
| setSpotDirection More... | |
| void | setSpotCosCutoff (float angle) |
| setSpotCosCutoff More... | |
| const Vector3f & | getSpotDirection (void) const |
| getSpotDirection More... | |
| float | getSpotCosCutoff (void) const |
| getSpotCosCutoff More... | |
| void | ShaderUpdate (int number, IShader *shader) override |
| ShaderUpdate. More... | |
Public Member Functions inherited from Engine::Light | |
| Light (void) | |
| Light. More... | |
| Light (const std::string &light_name) | |
| Light. More... | |
| void | setAmbient (const Vector3f &ambient) |
| setAmbient More... | |
| void | setDiffuse (const Vector3f &diffuse) |
| setDiffuse More... | |
| void | setSpecular (const Vector3f &specular) |
| setSpecular More... | |
| void | setPrefix (const std::string &prefix) |
| setPrefix More... | |
| const Vector3f & | getAmbient (void) |
| getAmbient More... | |
| const Vector3f & | getDiffuse (void) |
| getDiffuse More... | |
| const Vector3f & | getSpecular (void) |
| getSpecular More... | |
Public Member Functions inherited from Engine::Camera | |
| Camera (void) | |
| Camera. More... | |
| Camera (const std::string &camera_name) | |
| Camera. More... | |
| void | setScissorView (Vector4f sci) |
| setView More... | |
| void | setScissorView (int x, int y, int width, int height) |
| void | setName (const std::string &name) |
| setName More... | |
| void | setMode (CameraMode mode) |
| setMode More... | |
| void | invertPitch (void) |
| void | invertYaw (void) |
| Vector4f | getView (void) |
| getView More... | |
| std::string | getName (void) |
| getName More... | |
| void | AutoRotation (Position *object) |
| follow More... | |
| void | AutoRotationReset (void) |
| void | move (Direction dir, float speed) |
| move More... | |
| void | move_ex (Camera::Direction dir, float distance, Position *object) |
| float | getPitch (void) |
| getPitch More... | |
| float | getYaw (void) |
| getYaw More... | |
| void | transform (void) |
| transform More... | |
| void | setPitch (float value) |
| setPitch More... | |
| void | setYaw (float value) |
| setYaw More... | |
Public Member Functions inherited from Engine::Position | |
| Position (const std::string &component_name) | |
| void | setPosition (const Vector3f &position) |
| setPosition More... | |
| void | setRotation (const Vector3f &rotation) |
| setRotation More... | |
| void | setScale (const Vector3f &scale) |
| setScale More... | |
| void | setQuanternion (const Vector4f &quant) |
| setQuanternion More... | |
| void | setMatrix (const glm::mat4 &model_matrix) |
| setMatrix More... | |
| const Vector3f & | getPosition (void) const |
| getPosition More... | |
| const Vector3f & | getRotation (void) const |
| getRotation More... | |
| const Vector3f & | getScale (void) const |
| getScale More... | |
| const Vector4f & | getQuanternion (void) const |
| getQuanternion More... | |
| glm::quat | getQuat () const |
| getQuat More... | |
| glm::mat4 | getTranslationMatrix (glm::vec3 vector) |
| glm::mat4 | getTranslationMatrix (void) const |
| getTranslationMatrix More... | |
| glm::mat4 | getRotationMatrix (void) const |
| getRotationMatrix More... | |
| glm::mat4 | getRotationMatrix (const Vector3f &vector) |
| glm::mat4 | getMatrix (void) const |
| getMatrix More... | |
| glm::mat4 | getNormalMatrix (glm::mat4 model_view) const |
| getNormalMatrix More... | |
| void | camtransformation (void) |
| camtransformation More... | |
| void | transformation (void) |
| transformation More... | |
Additional Inherited Members | |
Public Types inherited from Engine::Camera | |
| enum | Direction { FORWARD, BACKWARD, LEFT, RIGHT } |
| The Direction enum. More... | |
| enum | CameraMode { FLY_MODE, EGO_MODE } |
Protected Member Functions inherited from Engine::Camera | |
| float | getRadian (float angle) |
| getRadian More... | |
Protected Attributes inherited from Engine::Light | |
| std::string | mPrefix |
The SpotLight class.
|
explicit |
Default Constructor
|
explicit |
| float SpotLight::getSpotCosCutoff | ( | void | ) | const |
getSpotCosCutoff
| const Vector3f & SpotLight::getSpotDirection | ( | void | ) | const |
getSpotDirection
| void SpotLight::setSpotCosCutoff | ( | float | angle | ) |
setSpotCosCutoff
Spot Cutoff
| angle |
| void SpotLight::setSpotDirection | ( | const Vector3f & | spotdirection | ) |
setSpotDirection
Sport Direction
| spotdirection |
|
overridevirtual |
1.8.10