This commit is contained in:
Branimir Karadžić
2017-02-08 19:55:31 -08:00
parent aa2a9deb5f
commit b99ebb9535
46 changed files with 338 additions and 353 deletions

View File

@@ -495,7 +495,7 @@ class ExampleWireframe : public entry::AppI
float view[16];
float proj[16];
m_camera.update(deltaTimeSec);
memcpy(m_uniforms.m_camPos, m_camera.m_pos.curr, 3*sizeof(float));
bx::memCopy(m_uniforms.m_camPos, m_camera.m_pos.curr, 3*sizeof(float));
m_camera.mtxLookAt(view);
bx::mtxProj(proj, 60.0f, float(m_width)/float(m_height), 0.1f, 100.0f);
bgfx::setViewTransform(0, view, proj);