Exemple #1
0
void UpdateConfig (void)
{
	SetResize(CurrentConfig.Resize);
	SetAspect(CurrentConfig.Aspect);
	SetScanLines(CurrentConfig.ScanLines);
	SetFrameSkip(CurrentConfig.FrameSkip);
	SetAutoStart(CurrentConfig.AutoStart);
	SetSpeedThrottle(CurrentConfig.SpeedThrottle);
	SetCPUMultiplyer(CurrentConfig.CPUMultiplyer);
	SetRamSize(CurrentConfig.RamSize);
	SetCpuType(CurrentConfig.CpuType);
	SetMonitorType(CurrentConfig.MonitorType);
	SetCartAutoStart(CurrentConfig.CartAutoStart);
	if (CurrentConfig.RebootNow)
	{
		DoReboot();
	}
	CurrentConfig.RebootNow = 0;
}
Exemple #2
0
void Camera::Init(float aspectRatio) {
	SetAspect( aspectRatio );
	
	SetLens( 0.25 * 3.14, aspect, 1.0f, 1000.0f );
	UpdateViewMatrix();
}
Exemple #3
0
ImageInfo::ImageInfo() {
    SetSize(0, 0);
    SetAspect(0, 0);
    SetFPS(0, 0); }