RioEngine  0.1
My first attempt to create a 3D WYSIWYG Game Engine
CCamera Class Reference

#include <ccamera.h>

Inheritance diagram for CCamera:
CObject

Public Member Functions

 CCamera (void)
 
void reset ()
 
CameraTransformtransform ()
 
const CameraTransformconstTransform () const
 
void setTransform (const CameraTransform &value)
 
 ~CCamera (void)
 
- Public Member Functions inherited from CObject
 CObject ()
 
 CObject (const CObject &object)
 
CObjectoperator= (const CObject &object)
 
CObjectretain ()
 
unsigned int release () const
 
CObjectautorelease ()
 
unsigned int retainCount () const
 
bool isValidCObject () const
 
virtual ~CObject ()
 

Protected Attributes

CameraTransform m_transform
 

Additional Inherited Members

- Static Public Member Functions inherited from CObject
static void safeRetain (void *pointer)
 
template<class T >
static void safeRelease (T *pointer)
 
template<class T >
static void safeReleaseArray (T *array)
 
static void safeRelease (const char *pointer)
 
- Protected Member Functions inherited from CObject
virtual void copyValuesFromObject (const CObject &object)
 

Detailed Description

A very simple Camera class, it should inherit from CGameObject, but it doesn't because CGameObject's m_transform member is Transform type, and CCamera needs CameraTransform type. The solution would be to create a template class where the Type of the Transform object can be specified. Then CGameObject & CCamera would inherit from it as follows: public CGameObject : public MyGenericType<Transform> public CCamera : public MyGenericType<CameraTransform> This might be an easy fix but I won't do it since I'm running out of time...

Definition at line 46 of file ccamera.h.

Constructor & Destructor Documentation

CCamera::CCamera ( void  )

Definition at line 36 of file ccamera.cpp.

CCamera::~CCamera ( void  )

Definition at line 70 of file ccamera.cpp.

Member Function Documentation

const CameraTransform & CCamera::constTransform ( ) const

Definition at line 48 of file ccamera.cpp.

void CCamera::reset ( )

Definition at line 60 of file ccamera.cpp.

void CCamera::setTransform ( const CameraTransform value)

Definition at line 54 of file ccamera.cpp.

CameraTransform & CCamera::transform ( )

Definition at line 42 of file ccamera.cpp.

Member Data Documentation

CameraTransform CCamera::m_transform
protected

Definition at line 59 of file ccamera.h.


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