|
RioEngine
0.1
My first attempt to create a 3D WYSIWYG Game Engine
|
#include <ccamera.h>
Public Member Functions | |
| CCamera (void) | |
| void | reset () |
| CameraTransform & | transform () |
| const CameraTransform & | constTransform () const |
| void | setTransform (const CameraTransform &value) |
| ~CCamera (void) | |
Public Member Functions inherited from CObject | |
| CObject () | |
| CObject (const CObject &object) | |
| CObject & | operator= (const CObject &object) |
| CObject * | retain () |
| unsigned int | release () const |
| CObject * | autorelease () |
| 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) |
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...
| CCamera::CCamera | ( | void | ) |
Definition at line 36 of file ccamera.cpp.
| CCamera::~CCamera | ( | void | ) |
Definition at line 70 of file ccamera.cpp.
| 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.
|
protected |