OpenPolygon  1.0.0
OpenPolygon is a Rendering Engine
Public Member Functions | List of all members
Engine::SpotLight Class Reference

The SpotLight class. More...

#include <light.h>

Inheritance diagram for Engine::SpotLight:
Engine::Light Engine::Camera Engine::Position

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 Vector3fgetSpotDirection (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 Vector3fgetAmbient (void)
 getAmbient More...
 
const Vector3fgetDiffuse (void)
 getDiffuse More...
 
const Vector3fgetSpecular (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 Vector3fgetPosition (void) const
 getPosition More...
 
const Vector3fgetRotation (void) const
 getRotation More...
 
const Vector3fgetScale (void) const
 getScale More...
 
const Vector4fgetQuanternion (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
 

Detailed Description

The SpotLight class.

Constructor & Destructor Documentation

SpotLight::SpotLight ( void  )
explicit

Light.

Default Constructor

Engine::SpotLight::SpotLight ( const std::string &  light_name)
explicit

Light.

Constructor with Light name

Parameters
light_name

Member Function Documentation

float SpotLight::getSpotCosCutoff ( void  ) const

getSpotCosCutoff

Returns
const Vector3f & SpotLight::getSpotDirection ( void  ) const

getSpotDirection

Returns
void SpotLight::setSpotCosCutoff ( float  angle)

setSpotCosCutoff

Spot Cutoff

Parameters
angle
void SpotLight::setSpotDirection ( const Vector3f spotdirection)

setSpotDirection

Sport Direction

Parameters
spotdirection
void SpotLight::ShaderUpdate ( int  number,
IShader shader 
)
overridevirtual

ShaderUpdate.

Parameters
number
shader

Reimplemented from Engine::Light.


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