Krig Game Engine
Public Member Functions | Public Attributes | List of all members
Camera Class Reference
Inheritance diagram for Camera:
Object ObjectNode

Public Member Functions

 Camera (const int &)
 
void update (const float &)
 
void setCamera (const Vector &, const Vector &, const Quaternion &, const Vector &)
 
void prepareGLView ()
 
void getRotationMatrix (Matrix &m) const
 
void printTypeName ()
 
void buildLuaObjectTable (lua_State *L)
 
void draw (Object *)
 
FrustumgetFrustum ()
 
void drawOutline (Object *)
 
void drawShadow (Vector *)
 
void handleCollision (Object *)
 
void update (Vector *)
 
void prepare ()
 
void animate (const float &, Object *)
 
void setProjectionMatrix ()
 
- Public Member Functions inherited from Object
void processCollisions (Object *)
 
virtual void orientOnTerrain (Terrain *temp, const Quaternion &baseRotation)
 
virtual void setHeightFromTerrain (Terrain *temp, const float &offset)
 
virtual void transferLuaObjectTable (lua_State *L)
 
void showCollisionBox ()
 
void showControlTriangle ()
 
float calcTriangleCenter (const float &, const float &, const float &)
 
void init ()
 
void initSettings ()
 
void cleanup ()
 
void loadScript (const std::string &, lua_State *luaState)
 
void animateScript (const float &)
 
void unloadScript ()
 
void setPosition (const GLfloat &, const GLfloat &, const GLfloat &)
 
void setPosition (const Vector &)
 
void setRotationAxis (const GLfloat &, const GLfloat &, const GLfloat &, const GLfloat &)
 
void setRotationAxis (const Vector &, const GLfloat &)
 
void setRotationEuler (const GLfloat &, const GLfloat &, const GLfloat &)
 
void setRotationEuler (const Vector &)
 
void setRotationQuaternion (const Quaternion &)
 
void setVelocity (const GLfloat &, const GLfloat &, const GLfloat &)
 
void setVelocity (const Vector &)
 
void setRotationVelocity (const GLfloat &, const GLfloat &, const GLfloat &)
 
void setRotationVelocity (const Vector &)
 
void setScale (const GLfloat &, const GLfloat &, const GLfloat &)
 
void setScale (const Vector &)
 
void setScaleRate (const GLfloat &, const GLfloat &, const GLfloat &)
 
void setScaleRate (const Vector &)
 
void setDrawEnabled (const bool &isDrawEnabled)
 
bool getDrawEnabled ()
 
bool getInView ()
 
void setParticleSystem (const int &)
 
float getScriptValue (const char *s)
 
void setScriptValue (const char *s, const float &value)
 
void setState (const unsigned char &)
 
void setScript (const std::string &)
 
void setSpeed (const GLfloat &, const GLfloat &, const GLfloat &)
 
void setSpeed (const Vector &)
 
void setCollisionDetectionEnabled (const bool &isCollisionDetectionEnabled)
 
bool getCollisionDetectionEnabled ()
 
void setActive (const bool &new_active)
 
bool getActive ()
 
Vector getPosition ()
 
Vector getVelocity ()
 
Vector getRotationVelocity ()
 
Vector getScaleRate ()
 
Vector getSpeed ()
 
bool isRotationChanged ()
 
void setRotationChanged (const bool &rotationChanged_l)
 
Quaternion getRotation ()
 
void setRotation (const Quaternion &rotation)
 
Vector getDirection ()
 
Vector getUp ()
 
Vector getScale ()
 
Quaternion getRInterpStart ()
 
Quaternion getRInterpEnd ()
 
void setRInterpStart (const Quaternion &rInterpStart_l)
 
void setRInterpEnd (const Quaternion &rInterpEnd_l)
 
bool isInterpolationEnabled ()
 
void setIsInterpolationEnabled (const bool &isInterpolationEnabled_l)
 
float getValInterpBegin ()
 
float getValInterpCurrent ()
 
float getValInterpEnd ()
 
void setValInterpBegin (const float &valInterpBegin)
 
void setValInterpCurrent (const float &valInterpCurrent)
 
void setValInterpEnd (const float &valInterpEnd)
 
void setSuspendTime (const float &time)
 
void setState (const int &state_l)
 
int getState ()
 
void setScaleChanged (const bool &scaleChanged_l)
 
void setIsAlwaysLit (const bool &isAlwaysLit)
 
bool getIsAlwaysLit ()
 
void setTypeId (const int &type_id)
 
int getTypeId ()
 
Sphere getBoundingSphere ()
 
std::string getScriptName ()
 
Vector getOrth ()
 
bool getEnableSphereTest ()
 
bool isDrawable ()
 
void setGameLevelId (const unsigned int &gameLevelId)
 
unsigned int getGameLevelId ()
 

Public Attributes

Matrix rotationMatrix
 
Frustum frustum
 
Matrix projectionMatrix
 
Matrix modelViewMatrix
 
Quaternion worldRotation
 
Matrix final
 
int id_
 
- Public Attributes inherited from ObjectNode
ObjectNodenext
 
ObjectNodeprev
 

Additional Inherited Members

- Static Public Attributes inherited from Object
static unsigned int textureIds [MAX_TEXTURES]
 
static std::map< std::string, unsigned int > textureHash
 
- Protected Attributes inherited from Object
Vector position_
 
Quaternion rotation_
 
Vector scale_
 
Vector baseDirection_
 
Vector direction_
 
Vector up_
 
Vector orth_
 
Vector velocity_
 
Vector speed_
 
Vector rotationVelocity_
 
Vector scaleRate_
 
Vector collisionBox_ [2]
 
Vector controlPoints_ [3]
 
Sphere boundingSphere_
 
unsigned char state_
 
bool active_
 
bool isDrawEnabled_
 
bool isInView_
 
bool isCollisionDetectionEnabled_
 
Quaternion rInterpStart_
 
Quaternion rInterpEnd_
 
float valInterpBegin_
 
float valInterpCurrent_
 
float valInterpEnd_
 
bool isInterpolationEnabled_
 
lua_State * L_
 
std::string scriptName_
 
int scriptIndex_
 
float suspendTime_
 
ParticleSystemparticleSystem_
 
int typeId_
 
unsigned int gameLevelId_
 
Vector lastLight_
 
bool scaleChanged_
 
bool rotationChanged_
 
bool isAlwaysLit_
 
bool enableSphereTest_
 

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