Wartbed:Framework/Camera
From Dark Omen Wiki
User guide for my benefit. May not represent the current state of WARTBED development
- Note potential name confusion. Ogre has a class Ogre::Camera. WARTBED's Ogre details is kept under the wb::ogre namespace. If both wb and ogre namespaces are introduced in a scope with using there will be symbol ambiguity.
Layout
ogre_Kernel.h
- namespace wb
- class Camera
- namespace camera
- enum NODE { EYE, FOCUS, CAMERA }
- enum ROTATE { SWIVEL, CIRCLE, ORBIT }
- enum FOLLOW { TRACK, CHASE }
Camera members
return type | method |
---|---|
void | setPosition( Vector3, camera::NODE ) |
Vector3 | getPosition( camera::NODE ) |
void | setDirection( Vector3, camera::NODE ) |
Quaternion | getOrientation( camera::NODE ) |
void | translate( Vector3, camera::NODE ) |
void | zoom( float distance ) |
void | yaw( float radians, camera::ROTATE ) |
void | pitch( float radians, camera::ROTATE ) |
void | roll( float radians, camera::ROTATE ) |
void | follow( camera::FOLLOW ) |