Exemplo n.º 1
0
void Camera::SetProjection(bool mode)
{
	is_perspective = mode;
	
	if(is_perspective)
		SetupProjection(45,zNear,zFar,0,0,_width,_height);
	UpdatePos();

}
Exemplo n.º 2
0
void
D3DOverdrawWindow::
SetupDraw(int iViewpoint)
{
    SetupViewport();
    SetupWorld();
    SetupView(iViewpoint);
    SetupProjection();
    SetupTransforms();
    SetupUniforms();
    Clear();
}
Exemplo n.º 3
0
void App_Initialize( void )
{
	
	Gamepad gamepad;
	
	dList = malloc( 262144 );
	sceneList = malloc( 262144 );
	fbp0  = 0;
 
	sceKernelDcacheWritebackAll();
	pspDebugScreenInit();


	myScene = new Scene(SCR_WIDTH, SCR_HEIGHT);
	///////////////////////////////////////////////////
	// Load Resources
	///////////////////////////////////////////////////
	char *sceneName = "courtyard.lws";
	printf("Loading Lightwave Scene: %s\n", sceneName);
	loadLWS(*myScene, sceneName);	
	
	// printf("Caching CVR scene: %s\n", sceneName);
	// myScene->cache(true);

	
	printf("Retrieving scene motion controller: %s\n", sceneName);
	mySceneMotion = &myScene->motion(sceneName);
	
	///////////////////////////////////////////////////
	// END Load Resources
	///////////////////////////////////////////////////
	printf("\n\n--------------------------\n");
	printf("   Press X to start...\n");
	printf("--------------------------\n\n\n");
	
	while(!gamepad.ButtonDown(PSP_CTRL_CROSS))
	{
		gamepad.Poll();
	}
	
	InitGU();
	SetupProjection();
	SetupCallbacks();
}