Fixed 21-deferred for Emscripten.

This commit is contained in:
Branimir Karadžić 2015-08-21 22:52:37 -07:00
parent f149fcec94
commit 46eba42ba0
3 changed files with 526 additions and 461 deletions

File diff suppressed because it is too large Load diff

View file

@ -258,7 +258,7 @@ struct Camera
bx::mtxLookAt(_viewMtx, m_eye, m_at, m_up);
}
void setPosition(float* _pos)
void setPosition(const float* _pos)
{
memcpy(m_eye, _pos, sizeof(float)*3);
}
@ -303,7 +303,7 @@ void cameraDestroy()
s_camera = NULL;
}
void cameraSetPosition(float* _pos)
void cameraSetPosition(const float* _pos)
{
s_camera->setPosition(_pos);
}

View file

@ -22,7 +22,7 @@ void cameraCreate();
void cameraDestroy();
///
void cameraSetPosition(float* _pos);
void cameraSetPosition(const float* _pos);
///
void cameraSetHorizontalAngle(float _horizontalAngle);