add support for picking, using point 2 point constraint

allow to remove constraints by unique id
added tiny wavefront loader, plan to use this instead of existing slow wavefront loader
This commit is contained in:
erwin coumans
2013-07-10 00:21:23 -07:00
parent 9610b369a3
commit 2aad8419b7
18 changed files with 1005 additions and 14 deletions

View File

@@ -1027,6 +1027,15 @@ void GLInstancingRenderer::setCameraPitch(float pitch)
m_data->m_azi = pitch;
}
float GLInstancingRenderer::getCameraYaw() const
{
return m_data->m_ele;
}
float GLInstancingRenderer::getCameraPitch() const
{
return m_data->m_azi;
}
void GLInstancingRenderer::setCameraTargetPosition(float cameraPos[4])
{
m_data->m_cameraTargetPosition = b3Vector3(cameraPos[0],cameraPos[1],cameraPos[2]);

View File

@@ -100,7 +100,8 @@ public:
void setCameraYaw(float yaw);
void setCameraPitch(float pitch);
float getCameraYaw() const;
float getCameraPitch() const;
void resize(int width, int height);
int getScreenWidth()