コード例 #1
0
void DemoApplication::reshape(int w, int h) {
    GLDebugResetFont(w, h);

    m_glutScreenWidth = w;
    m_glutScreenHeight = h;

    glViewport(0, 0, w, h);
    updateCamera();
}
コード例 #2
0
void bulletBaseApp::reshape(int w, int h) 
{
	GLDebugResetFont(w,h);
	
	m_glutScreenWidth = w;
	m_glutScreenHeight = h;
	
	glViewport(0, 0, w, h);
	updateCamera();
}