OpenPolygon
1.0.0
OpenPolygon is a Rendering Engine
|
#include <light.h>
Public Member Functions | |
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... | |
virtual void | ShaderUpdate (int number, IShader *shader) |
ShaderUpdate. More... | |
![]() | |
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... | |
![]() | |
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... | |
Protected Attributes | |
std::string | mPrefix |
Additional Inherited Members | |
![]() | |
enum | Direction { FORWARD, BACKWARD, LEFT, RIGHT } |
The Direction enum. More... | |
enum | CameraMode { FLY_MODE, EGO_MODE } |
![]() | |
float | getRadian (float angle) |
getRadian More... | |
|
explicit |
Default Constructor
|
explicit |
const Vector3f & Light::getAmbient | ( | void | ) |
getAmbient
Return Ambient Color Vector
const Vector3f & Light::getDiffuse | ( | void | ) |
getDiffuse
Return Diffuse Color Vector
const Vector3f & Light::getSpecular | ( | void | ) |
getSpecular
Return Sepcular Color Vector
void Light::setAmbient | ( | const Vector3f & | ambient | ) |
setAmbient
Set Ambient Color Vector
ambient |
void Light::setDiffuse | ( | const Vector3f & | diffuse | ) |
setDiffuse
Set Diffuse Color Vector
diffuse |
void Light::setPrefix | ( | const std::string & | prefix | ) |
void Light::setSpecular | ( | const Vector3f & | specular | ) |
setSpecular
Set Specular Color Vector
specular |
|
virtual |