mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-01 03:47:07 -05:00
Fixed 21-deferred for Emscripten.
This commit is contained in:
parent
f149fcec94
commit
46eba42ba0
3 changed files with 526 additions and 461 deletions
File diff suppressed because it is too large
Load diff
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ void cameraCreate();
|
|||
void cameraDestroy();
|
||||
|
||||
///
|
||||
void cameraSetPosition(float* _pos);
|
||||
void cameraSetPosition(const float* _pos);
|
||||
|
||||
///
|
||||
void cameraSetHorizontalAngle(float _horizontalAngle);
|
||||
|
|
Loading…
Reference in a new issue