Wartbed:Framework/Camera

From Dark Omen Wiki

< Wartbed:Framework(Difference between revisions)
Jump to: navigation, search
m (1 revision)
 
(One intermediate revision not shown)
Line 9: Line 9:
:namespace '''wb'''
:namespace '''wb'''
::class '''Camera'''
::class '''Camera'''
-
::namespace '''cam'''
+
::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>
</div>
Line 18: Line 19:
! return type !! method
! return type !! method
|-
|-
-
| void || '''setPosition'''( Vector3, cam::CAMERA / cam::EYE / cam::FOCUS )
+
| void || '''setPosition'''( Vector3, camera::NODE )
|-
|-
-
| Vector3 || '''getPosition'''( cam::CAMERA / cam::EYE / cam::FOCUS )
+
| Vector3 || '''getPosition'''( camera::NODE )
|-
|-
-
| void || '''setDirection'''( Vector3, cam::CAMERA / cam::EYE / cam::FOCUS )
+
| void || '''setDirection'''( Vector3, camera::NODE )
|-
|-
-
| Vector3 || '''getOrientation'''( cam::CAMERA / cam::EYE / cam::FOCUS )
+
| Quaternion || '''getOrientation'''( camera::NODE )
|-
|-
-
| void || '''translate'''( Vector3, cam::CAMERA / cam::EYE / cam::FOCUS )
+
| 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 )

Personal tools
communication