Wartbed:Framework/Camera

From Dark Omen Wiki

(Difference between revisions)
Jump to: navigation, search
(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...')
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 '''CameraEx'''
+
::class '''Camera'''
::namespace '''cam'''
::namespace '''cam'''
:::enum '''EYE''', '''FOCUS''', '''CAMERA'''
:::enum '''EYE''', '''FOCUS''', '''CAMERA'''
:::enum '''SWIVEL''', '''CIRCLE''', '''ORBIT'''
:::enum '''SWIVEL''', '''CIRCLE''', '''ORBIT'''
-
<br>
+
</div>
-
<br>
+
 
-
=='''CameraEx members'''==
+
=='''Camera members'''==
{| class="prettytable" style="font-family:monospace"
{| class="prettytable" style="font-family:monospace"
! return type !! method
! return type !! method

Revision as of 15:36, 3 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 cam
enum EYE, FOCUS, CAMERA
enum SWIVEL, CIRCLE, ORBIT

Camera members

return type method
void setPosition( Vector3, cam::CAMERA / cam::EYE / cam::FOCUS )
Vector3 getPosition( cam::CAMERA / cam::EYE / cam::FOCUS )
void setDirection( Vector3, cam::CAMERA / cam::EYE / cam::FOCUS )
Vector3 getOrientation( cam::CAMERA / cam::EYE / cam::FOCUS )
void translate( Vector3, cam::CAMERA / cam::EYE / cam::FOCUS )

Personal tools
communication