Wartbed:Framework/Camera
From Dark Omen Wiki
< Wartbed:Framework(Difference between revisions)
(Created page with '''User guide for my benefit. May not represent the current state of WARTBED development'' <tt> '''ogre_Kernel.h'''' :namespace '''wb''' ::class '''CameraEx''' ::namespace '''cam...') |
|||
(3 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
''User guide for my benefit. May not represent the current state of WARTBED development'' | ''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 <tt>'''using'''</tt> there will be symbol ambiguity.'' | ||
<tt> | <tt> | ||
- | '''ogre_Kernel.h | + | =='''Layout'''== |
+ | <div style="margin:2em"> | ||
+ | '''ogre_Kernel.h''' | ||
:namespace '''wb''' | :namespace '''wb''' | ||
- | ::class ''' | + | ::class '''Camera''' |
- | ::namespace ''' | + | ::namespace '''camera''' |
- | :::enum '''EYE''', '''FOCUS''', '''CAMERA''' | + | :::enum '''NODE''' { '''EYE''', '''FOCUS''', '''CAMERA''' } |
- | :::enum '''SWIVEL''', '''CIRCLE''', '''ORBIT''' | + | :::enum '''ROTATE''' { '''SWIVEL''', '''CIRCLE''', '''ORBIT''' } |
- | + | :::enum '''FOLLOW''' { '''TRACK''', '''CHASE''' } | |
- | < | + | </div> |
- | ==''' | + | |
+ | =='''Camera members'''== | ||
{| class="prettytable" style="font-family:monospace" | {| class="prettytable" style="font-family:monospace" | ||
! return type !! method | ! return type !! method | ||
|- | |- | ||
- | | void || '''setPosition'''( Vector3, | + | | void || '''setPosition'''( Vector3, camera::NODE ) |
|- | |- | ||
- | | Vector3 || '''getPosition'''( | + | | Vector3 || '''getPosition'''( camera::NODE ) |
|- | |- | ||
- | | void || '''setDirection'''( Vector3, | + | | void || '''setDirection'''( Vector3, camera::NODE ) |
|- | |- | ||
- | | | + | | Quaternion || '''getOrientation'''( camera::NODE ) |
|- | |- | ||
- | | void || '''translate'''( Vector3, | + | | 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 ) | ||
|- | |- | ||
|} | |} | ||
</tt> | </tt> | ||
+ | |||
+ | [[category:WARTBED]] |
Current revision as of 21:23, 8 March 2009
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 ) |