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:
@@ -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]);
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user