omegafox
12-23-2003, 07:57 AM
When I used this function, it changed dot's location to upper-front-right from bottom-back-left. I dont get it. what caused to change its location?
public void glEnlarge()
{
GL.glMatrixMode(GL.GL_PROJECTION);
GL.glLoadIdentity();
Size += 1.0f;
GL.gluPerspective(Size, 1.0f, 1.0f, 100.0f);
GL.glScalef(m_fScaleFactor,m_fScaleFactor,m_fScale Factor);
GL.gluLookAt(0.0f, 0.0f, -2.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f);
}
public void glEnlarge()
{
GL.glMatrixMode(GL.GL_PROJECTION);
GL.glLoadIdentity();
Size += 1.0f;
GL.gluPerspective(Size, 1.0f, 1.0f, 100.0f);
GL.glScalef(m_fScaleFactor,m_fScaleFactor,m_fScale Factor);
GL.gluLookAt(0.0f, 0.0f, -2.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f);
}