mirror of https://github.com/axmolengine/axmol.git
issue #44: fix some bugs
This commit is contained in:
parent
6e06b04bec
commit
d4355b2d23
|
@ -35,6 +35,7 @@ namespace cocos2d {
|
|||
|
||||
CCCamera::CCCamera(void)
|
||||
{
|
||||
init();
|
||||
}
|
||||
|
||||
CCCamera::~CCCamera(void)
|
||||
|
@ -48,6 +49,11 @@ char * CCCamera::description(void)
|
|||
return ret;
|
||||
}
|
||||
|
||||
void CCCamera::init(void)
|
||||
{
|
||||
restore();
|
||||
}
|
||||
|
||||
void CCCamera::restore(void)
|
||||
{
|
||||
m_fEyeX = m_fEyeY = 0.0f;
|
||||
|
|
|
@ -50,6 +50,8 @@ public:
|
|||
CCCamera(void);
|
||||
~CCCamera(void);
|
||||
|
||||
void init(void);
|
||||
|
||||
char * description(void);
|
||||
|
||||
// sets the dirty value
|
||||
|
|
Loading…
Reference in New Issue