Move more stuff out of Globals.h in gl plugin. Changed gl plugin precompiled header to a new stdafx.h, you may have to Build->Clean after updating to this rev.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@940 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
85781409e4
commit
4b2c7310b7
|
@ -66,7 +66,7 @@
|
||||||
EnableEnhancedInstructionSet="2"
|
EnableEnhancedInstructionSet="2"
|
||||||
FloatingPointModel="2"
|
FloatingPointModel="2"
|
||||||
UsePrecompiledHeader="2"
|
UsePrecompiledHeader="2"
|
||||||
PrecompiledHeaderThrough="Globals.h"
|
PrecompiledHeaderThrough="stdafx.h"
|
||||||
PrecompiledHeaderFile="$(IntDir)/VideoOGL.pch"
|
PrecompiledHeaderFile="$(IntDir)/VideoOGL.pch"
|
||||||
AssemblerListingLocation="$(IntDir)\"
|
AssemblerListingLocation="$(IntDir)\"
|
||||||
ObjectFile="$(IntDir)\"
|
ObjectFile="$(IntDir)\"
|
||||||
|
@ -175,7 +175,7 @@
|
||||||
EnableEnhancedInstructionSet="0"
|
EnableEnhancedInstructionSet="0"
|
||||||
FloatingPointModel="2"
|
FloatingPointModel="2"
|
||||||
UsePrecompiledHeader="2"
|
UsePrecompiledHeader="2"
|
||||||
PrecompiledHeaderThrough="Globals.h"
|
PrecompiledHeaderThrough="stdafx.h"
|
||||||
PrecompiledHeaderFile="$(IntDir)/VideoOGL.pch"
|
PrecompiledHeaderFile="$(IntDir)/VideoOGL.pch"
|
||||||
AssemblerListingLocation="$(IntDir)\"
|
AssemblerListingLocation="$(IntDir)\"
|
||||||
ObjectFile="$(IntDir)\"
|
ObjectFile="$(IntDir)\"
|
||||||
|
@ -275,7 +275,7 @@
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="1"
|
RuntimeLibrary="1"
|
||||||
UsePrecompiledHeader="2"
|
UsePrecompiledHeader="2"
|
||||||
PrecompiledHeaderThrough="Globals.h"
|
PrecompiledHeaderThrough="stdafx.h"
|
||||||
PrecompiledHeaderFile="$(IntDir)/VideoOGL.pch"
|
PrecompiledHeaderFile="$(IntDir)/VideoOGL.pch"
|
||||||
AssemblerListingLocation="$(IntDir)\"
|
AssemblerListingLocation="$(IntDir)\"
|
||||||
ObjectFile="$(IntDir)\"
|
ObjectFile="$(IntDir)\"
|
||||||
|
@ -374,7 +374,7 @@
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="1"
|
RuntimeLibrary="1"
|
||||||
UsePrecompiledHeader="2"
|
UsePrecompiledHeader="2"
|
||||||
PrecompiledHeaderThrough="Globals.h"
|
PrecompiledHeaderThrough="stdafx.h"
|
||||||
PrecompiledHeaderFile="$(IntDir)/VideoOGL.pch"
|
PrecompiledHeaderFile="$(IntDir)/VideoOGL.pch"
|
||||||
AssemblerListingLocation="$(IntDir)\"
|
AssemblerListingLocation="$(IntDir)\"
|
||||||
ObjectFile="$(IntDir)\"
|
ObjectFile="$(IntDir)\"
|
||||||
|
@ -483,7 +483,7 @@
|
||||||
EnableEnhancedInstructionSet="2"
|
EnableEnhancedInstructionSet="2"
|
||||||
FloatingPointModel="2"
|
FloatingPointModel="2"
|
||||||
UsePrecompiledHeader="2"
|
UsePrecompiledHeader="2"
|
||||||
PrecompiledHeaderThrough="Globals.h"
|
PrecompiledHeaderThrough="stdafx.h"
|
||||||
PrecompiledHeaderFile="$(IntDir)/VideoOGL.pch"
|
PrecompiledHeaderFile="$(IntDir)/VideoOGL.pch"
|
||||||
AssemblerListingLocation="$(IntDir)\"
|
AssemblerListingLocation="$(IntDir)\"
|
||||||
ObjectFile="$(IntDir)\"
|
ObjectFile="$(IntDir)\"
|
||||||
|
@ -594,7 +594,7 @@
|
||||||
EnableEnhancedInstructionSet="0"
|
EnableEnhancedInstructionSet="0"
|
||||||
FloatingPointModel="2"
|
FloatingPointModel="2"
|
||||||
UsePrecompiledHeader="2"
|
UsePrecompiledHeader="2"
|
||||||
PrecompiledHeaderThrough="Globals.h"
|
PrecompiledHeaderThrough="stdafx.h"
|
||||||
PrecompiledHeaderFile="$(IntDir)/VideoOGL.pch"
|
PrecompiledHeaderFile="$(IntDir)/VideoOGL.pch"
|
||||||
AssemblerListingLocation="$(IntDir)\"
|
AssemblerListingLocation="$(IntDir)\"
|
||||||
ObjectFile="$(IntDir)\"
|
ObjectFile="$(IntDir)\"
|
||||||
|
@ -895,54 +895,6 @@
|
||||||
<File
|
<File
|
||||||
RelativePath=".\Src\Debugger\Debugger.cpp"
|
RelativePath=".\Src\Debugger\Debugger.cpp"
|
||||||
>
|
>
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|Win32"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PrecompiledHeaderThrough="../Globals.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|x64"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PrecompiledHeaderThrough="../Globals.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|Win32"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PrecompiledHeaderThrough="../Globals.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|x64"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PrecompiledHeaderThrough="../Globals.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="DebugFast|Win32"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PrecompiledHeaderThrough="../Globals.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="DebugFast|x64"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PrecompiledHeaderThrough="../Globals.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\Src\Debugger\Debugger.h"
|
RelativePath=".\Src\Debugger\Debugger.h"
|
||||||
|
@ -951,54 +903,6 @@
|
||||||
<File
|
<File
|
||||||
RelativePath=".\Src\Debugger\PBView.cpp"
|
RelativePath=".\Src\Debugger\PBView.cpp"
|
||||||
>
|
>
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|Win32"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PrecompiledHeaderThrough="../Globals.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|x64"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PrecompiledHeaderThrough="../Globals.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|Win32"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PrecompiledHeaderThrough="../Globals.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|x64"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PrecompiledHeaderThrough="../Globals.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="DebugFast|Win32"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PrecompiledHeaderThrough="../Globals.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="DebugFast|x64"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PrecompiledHeaderThrough="../Globals.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\Src\Debugger\PBView.h"
|
RelativePath=".\Src\Debugger\PBView.h"
|
||||||
|
@ -1011,54 +915,6 @@
|
||||||
<File
|
<File
|
||||||
RelativePath=".\Src\Logging\Console.cpp"
|
RelativePath=".\Src\Logging\Console.cpp"
|
||||||
>
|
>
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|Win32"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PrecompiledHeaderThrough="../Globals.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|x64"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PrecompiledHeaderThrough="../Globals.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|Win32"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PrecompiledHeaderThrough="../Globals.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|x64"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PrecompiledHeaderThrough="../Globals.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="DebugFast|Win32"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PrecompiledHeaderThrough="../Globals.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="DebugFast|x64"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PrecompiledHeaderThrough="../Globals.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\Src\Logging\Console.h"
|
RelativePath=".\Src\Logging\Console.h"
|
||||||
|
@ -1075,111 +931,23 @@
|
||||||
<File
|
<File
|
||||||
RelativePath=".\Src\Logging\Logging.cpp"
|
RelativePath=".\Src\Logging\Logging.cpp"
|
||||||
>
|
>
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|Win32"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PrecompiledHeaderThrough="../Globals.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|x64"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PrecompiledHeaderThrough="../Globals.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|Win32"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PrecompiledHeaderThrough="../Globals.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|x64"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PrecompiledHeaderThrough="../Globals.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="DebugFast|Win32"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PrecompiledHeaderThrough="../Globals.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="DebugFast|x64"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PrecompiledHeaderThrough="../Globals.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\Src\Logging\Logging.h"
|
RelativePath=".\Src\Logging\Logging.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
</Filter>
|
</Filter>
|
||||||
|
<File
|
||||||
|
RelativePath=".\Src\Config.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\Src\Config.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\Src\Globals.cpp"
|
RelativePath=".\Src\Globals.cpp"
|
||||||
>
|
>
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|Win32"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
UsePrecompiledHeader="1"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|x64"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
UsePrecompiledHeader="1"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|Win32"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
UsePrecompiledHeader="1"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|x64"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
UsePrecompiledHeader="1"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="DebugFast|Win32"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
UsePrecompiledHeader="1"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="DebugFast|x64"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
UsePrecompiledHeader="1"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\Src\Globals.h"
|
RelativePath=".\Src\Globals.h"
|
||||||
|
@ -1267,6 +1035,62 @@
|
||||||
RelativePath=".\Src\SConscript"
|
RelativePath=".\Src\SConscript"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\Src\stdafx.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
UsePrecompiledHeader="1"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|x64"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
UsePrecompiledHeader="1"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
UsePrecompiledHeader="1"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|x64"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
UsePrecompiledHeader="1"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="DebugFast|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
UsePrecompiledHeader="1"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="DebugFast|x64"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
UsePrecompiledHeader="1"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\Src\stdafx.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\Src\XFB.cpp"
|
RelativePath=".\Src\XFB.cpp"
|
||||||
>
|
>
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
// -------------
|
// -------------
|
||||||
#include "Globals.h"
|
#include "Globals.h"
|
||||||
#include "Profiler.h"
|
#include "Profiler.h"
|
||||||
|
#include "Config.h"
|
||||||
|
|
||||||
#include "VertexLoader.h"
|
#include "VertexLoader.h"
|
||||||
#include "VertexManager.h"
|
#include "VertexManager.h"
|
||||||
|
|
|
@ -0,0 +1,104 @@
|
||||||
|
// Copyright (C) 2003-2008 Dolphin Project.
|
||||||
|
|
||||||
|
// This program is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, version 2.0.
|
||||||
|
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License 2.0 for more details.
|
||||||
|
|
||||||
|
// A copy of the GPL 2.0 should have been included with the program.
|
||||||
|
// If not, see http://www.gnu.org/licenses/
|
||||||
|
|
||||||
|
// Official SVN repository and contact information can be found at
|
||||||
|
// http://code.google.com/p/dolphin-emu/
|
||||||
|
|
||||||
|
#include "Globals.h"
|
||||||
|
#include "Common.h"
|
||||||
|
#include "IniFile.h"
|
||||||
|
#include "Config.h"
|
||||||
|
|
||||||
|
Config g_Config;
|
||||||
|
|
||||||
|
Config::Config()
|
||||||
|
{
|
||||||
|
memset(this, 0, sizeof(Config));
|
||||||
|
}
|
||||||
|
|
||||||
|
void Config::Load()
|
||||||
|
{
|
||||||
|
std::string temp;
|
||||||
|
IniFile iniFile;
|
||||||
|
iniFile.Load("gfx_opengl.ini");
|
||||||
|
|
||||||
|
// get resolution
|
||||||
|
iniFile.Get("Hardware", "WindowedRes", &temp, 0);
|
||||||
|
if(temp.empty())
|
||||||
|
temp = "640x480";
|
||||||
|
strcpy(iWindowedRes, temp.c_str());
|
||||||
|
iniFile.Get("Hardware", "FullscreenRes", &temp, 0);
|
||||||
|
if(temp.empty())
|
||||||
|
temp = "640x480";
|
||||||
|
strcpy(iFSResolution, temp.c_str());
|
||||||
|
|
||||||
|
iniFile.Get("Hardware", "Fullscreen", &bFullscreen, 0); // Hardware
|
||||||
|
iniFile.Get("Hardware", "RenderToMainframe", &renderToMainframe, 0);
|
||||||
|
|
||||||
|
iniFile.Get("Settings", "ShowFPS", &bShowFPS, false); // Settings
|
||||||
|
iniFile.Get("Settings", "OverlayStats", &bOverlayStats, false);
|
||||||
|
iniFile.Get("Settings", "DLOptimize", &iCompileDLsLevel, 0);
|
||||||
|
iniFile.Get("Settings", "DumpTextures", &bDumpTextures, 0);
|
||||||
|
iniFile.Get("Settings", "ShowShaderErrors", &bShowShaderErrors, 0);
|
||||||
|
iniFile.Get("Settings", "LogLevel", &iLog, 0);
|
||||||
|
iniFile.Get("Settings", "Multisample", &iMultisampleMode, 0);
|
||||||
|
if(iMultisampleMode == 0)
|
||||||
|
iMultisampleMode = 1;
|
||||||
|
std::string s;
|
||||||
|
iniFile.Get("Settings", "TexDumpPath", &s, 0);
|
||||||
|
if (s.size() < sizeof(texDumpPath) )
|
||||||
|
strcpy(texDumpPath, s.c_str());
|
||||||
|
else {
|
||||||
|
strncpy(texDumpPath, s.c_str(), sizeof(texDumpPath)-1);
|
||||||
|
texDumpPath[sizeof(texDumpPath)-1] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
iniFile.Get("Settings", "TexFmtOverlayEnable", &bTexFmtOverlayEnable, 0);
|
||||||
|
iniFile.Get("Settings", "TexFmtOverlayCenter", &bTexFmtOverlayCenter, 0);
|
||||||
|
iniFile.Get("Settings", "UseXFB", &bUseXFB, 0);
|
||||||
|
|
||||||
|
iniFile.Get("Enhancements", "ForceFiltering", &bForceFiltering, 0);
|
||||||
|
iniFile.Get("Enhancements", "ForceMaxAniso", &bForceMaxAniso, 0);
|
||||||
|
iniFile.Get("Enhancements", "StretchToFit", &bStretchToFit, false);
|
||||||
|
iniFile.Get("Enhancements", "KeepAR", &bKeepAR, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Config::Save()
|
||||||
|
{
|
||||||
|
IniFile iniFile;
|
||||||
|
iniFile.Load("gfx_opengl.ini");
|
||||||
|
iniFile.Set("Hardware", "WindowedRes", iWindowedRes);
|
||||||
|
iniFile.Set("Hardware", "FullscreenRes", iFSResolution);
|
||||||
|
iniFile.Set("Hardware", "Fullscreen", bFullscreen);
|
||||||
|
iniFile.Set("Hardware", "RenderToMainframe", renderToMainframe);
|
||||||
|
|
||||||
|
iniFile.Set("Settings", "ShowFPS", bShowFPS);
|
||||||
|
iniFile.Set("Settings", "OverlayStats", bOverlayStats);
|
||||||
|
iniFile.Set("Settings", "DLOptimize", iCompileDLsLevel);
|
||||||
|
iniFile.Set("Settings", "DumpTextures", bDumpTextures);
|
||||||
|
iniFile.Set("Settings", "ShowShaderErrors", bShowShaderErrors);
|
||||||
|
iniFile.Set("Settings", "LogLevel", iLog);
|
||||||
|
iniFile.Set("Settings", "Multisample", iMultisampleMode);
|
||||||
|
iniFile.Set("Settings", "TexDumpPath", texDumpPath);
|
||||||
|
iniFile.Set("Settings", "TexFmtOverlayEnable", bTexFmtOverlayEnable);
|
||||||
|
iniFile.Set("Settings", "TexFmtOverlayCenter", bTexFmtOverlayCenter);
|
||||||
|
iniFile.Set("Settings", "UseXFB", bUseXFB);
|
||||||
|
|
||||||
|
iniFile.Set("Enhancements", "ForceFiltering", bForceFiltering);
|
||||||
|
iniFile.Set("Enhancements", "ForceMaxAniso", bForceMaxAniso);
|
||||||
|
iniFile.Set("Enhancements", "StretchToFit", bStretchToFit);
|
||||||
|
iniFile.Set("Enhancements", "KeepAR", bKeepAR);
|
||||||
|
|
||||||
|
iniFile.Save("gfx_opengl.ini");
|
||||||
|
}
|
|
@ -0,0 +1,64 @@
|
||||||
|
// Copyright (C) 2003-2008 Dolphin Project.
|
||||||
|
|
||||||
|
// This program is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, version 2.0.
|
||||||
|
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License 2.0 for more details.
|
||||||
|
|
||||||
|
// A copy of the GPL 2.0 should have been included with the program.
|
||||||
|
// If not, see http://www.gnu.org/licenses/
|
||||||
|
|
||||||
|
// Official SVN repository and contact information can be found at
|
||||||
|
// http://code.google.com/p/dolphin-emu/
|
||||||
|
|
||||||
|
#ifndef _CONFIG_H
|
||||||
|
#define _CONFIG_H
|
||||||
|
|
||||||
|
#define CONF_LOG 1
|
||||||
|
#define CONF_PRIMLOG 2
|
||||||
|
#define CONF_SAVETEXTURES 4
|
||||||
|
#define CONF_SAVETARGETS 8
|
||||||
|
#define CONF_SAVESHADERS 16
|
||||||
|
|
||||||
|
struct Config
|
||||||
|
{
|
||||||
|
Config();
|
||||||
|
void Load();
|
||||||
|
void Save();
|
||||||
|
|
||||||
|
//video
|
||||||
|
bool bFullscreen;
|
||||||
|
bool renderToMainframe;
|
||||||
|
char iFSResolution[16];
|
||||||
|
char iWindowedRes[16];
|
||||||
|
int iMultisampleMode;
|
||||||
|
|
||||||
|
bool bForceFiltering;
|
||||||
|
bool bForceMaxAniso;
|
||||||
|
bool bStretchToFit;
|
||||||
|
bool bKeepAR;
|
||||||
|
bool bShowFPS;
|
||||||
|
|
||||||
|
bool bTexFmtOverlayEnable;
|
||||||
|
bool bTexFmtOverlayCenter;
|
||||||
|
bool bOverlayStats;
|
||||||
|
bool bUseXFB;
|
||||||
|
bool bDumpTextures;
|
||||||
|
char texDumpPath[280];
|
||||||
|
|
||||||
|
int iLog; // CONF_ bits
|
||||||
|
int iSaveTargetId;
|
||||||
|
|
||||||
|
//currently unused:
|
||||||
|
int iCompileDLsLevel;
|
||||||
|
bool bWireFrame;
|
||||||
|
bool bShowShaderErrors;
|
||||||
|
};
|
||||||
|
|
||||||
|
extern Config g_Config;
|
||||||
|
|
||||||
|
#endif // _CONFIG_H
|
|
@ -16,6 +16,7 @@
|
||||||
// http://code.google.com/p/dolphin-emu/
|
// http://code.google.com/p/dolphin-emu/
|
||||||
|
|
||||||
#include "Globals.h"
|
#include "Globals.h"
|
||||||
|
#include "Config.h"
|
||||||
#include "IniFile.h"
|
#include "IniFile.h"
|
||||||
#include "svnrev.h"
|
#include "svnrev.h"
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
|
|
||||||
#include "ConfigDlg.h"
|
#include "ConfigDlg.h"
|
||||||
#include "../Globals.h"
|
#include "../Globals.h"
|
||||||
|
#include "Config.h"
|
||||||
|
|
||||||
#include "../TextureMngr.h"
|
#include "../TextureMngr.h"
|
||||||
|
|
||||||
|
|
|
@ -29,89 +29,6 @@
|
||||||
#include "IniFile.h"
|
#include "IniFile.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
Config g_Config;
|
|
||||||
|
|
||||||
Config::Config()
|
|
||||||
{
|
|
||||||
memset(this, 0, sizeof(Config));
|
|
||||||
}
|
|
||||||
|
|
||||||
void Config::Load()
|
|
||||||
{
|
|
||||||
std::string temp;
|
|
||||||
IniFile iniFile;
|
|
||||||
iniFile.Load("gfx_opengl.ini");
|
|
||||||
|
|
||||||
// get resolution
|
|
||||||
iniFile.Get("Hardware", "WindowedRes", &temp, 0);
|
|
||||||
if(temp.empty())
|
|
||||||
temp = "640x480";
|
|
||||||
strcpy(iWindowedRes, temp.c_str());
|
|
||||||
iniFile.Get("Hardware", "FullscreenRes", &temp, 0);
|
|
||||||
if(temp.empty())
|
|
||||||
temp = "640x480";
|
|
||||||
strcpy(iFSResolution, temp.c_str());
|
|
||||||
|
|
||||||
iniFile.Get("Hardware", "Fullscreen", &bFullscreen, 0); // Hardware
|
|
||||||
iniFile.Get("Hardware", "RenderToMainframe", &renderToMainframe, 0);
|
|
||||||
|
|
||||||
iniFile.Get("Settings", "ShowFPS", &bShowFPS, false); // Settings
|
|
||||||
iniFile.Get("Settings", "OverlayStats", &bOverlayStats, false);
|
|
||||||
iniFile.Get("Settings", "DLOptimize", &iCompileDLsLevel, 0);
|
|
||||||
iniFile.Get("Settings", "DumpTextures", &bDumpTextures, 0);
|
|
||||||
iniFile.Get("Settings", "ShowShaderErrors", &bShowShaderErrors, 0);
|
|
||||||
iniFile.Get("Settings", "LogLevel", &iLog, 0);
|
|
||||||
iniFile.Get("Settings", "Multisample", &iMultisampleMode, 0);
|
|
||||||
if(iMultisampleMode == 0)
|
|
||||||
iMultisampleMode = 1;
|
|
||||||
std::string s;
|
|
||||||
iniFile.Get("Settings", "TexDumpPath", &s, 0);
|
|
||||||
if (s.size() < sizeof(texDumpPath) )
|
|
||||||
strcpy(texDumpPath, s.c_str());
|
|
||||||
else {
|
|
||||||
strncpy(texDumpPath, s.c_str(), sizeof(texDumpPath)-1);
|
|
||||||
texDumpPath[sizeof(texDumpPath)-1] = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
iniFile.Get("Settings", "TexFmtOverlayEnable", &bTexFmtOverlayEnable, 0);
|
|
||||||
iniFile.Get("Settings", "TexFmtOverlayCenter", &bTexFmtOverlayCenter, 0);
|
|
||||||
iniFile.Get("Settings", "UseXFB", &bUseXFB, 0);
|
|
||||||
|
|
||||||
iniFile.Get("Enhancements", "ForceFiltering", &bForceFiltering, 0);
|
|
||||||
iniFile.Get("Enhancements", "ForceMaxAniso", &bForceMaxAniso, 0);
|
|
||||||
iniFile.Get("Enhancements", "StretchToFit", &bStretchToFit, false);
|
|
||||||
iniFile.Get("Enhancements", "KeepAR", &bKeepAR, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Config::Save()
|
|
||||||
{
|
|
||||||
IniFile iniFile;
|
|
||||||
iniFile.Load("gfx_opengl.ini");
|
|
||||||
iniFile.Set("Hardware", "WindowedRes", iWindowedRes);
|
|
||||||
iniFile.Set("Hardware", "FullscreenRes", iFSResolution);
|
|
||||||
iniFile.Set("Hardware", "Fullscreen", bFullscreen);
|
|
||||||
iniFile.Set("Hardware", "RenderToMainframe", renderToMainframe);
|
|
||||||
|
|
||||||
iniFile.Set("Settings", "ShowFPS", bShowFPS);
|
|
||||||
iniFile.Set("Settings", "OverlayStats", bOverlayStats);
|
|
||||||
iniFile.Set("Settings", "DLOptimize", iCompileDLsLevel);
|
|
||||||
iniFile.Set("Settings", "DumpTextures", bDumpTextures);
|
|
||||||
iniFile.Set("Settings", "ShowShaderErrors", bShowShaderErrors);
|
|
||||||
iniFile.Set("Settings", "LogLevel", iLog);
|
|
||||||
iniFile.Set("Settings", "Multisample", iMultisampleMode);
|
|
||||||
iniFile.Set("Settings", "TexDumpPath", texDumpPath);
|
|
||||||
iniFile.Set("Settings", "TexFmtOverlayEnable", bTexFmtOverlayEnable);
|
|
||||||
iniFile.Set("Settings", "TexFmtOverlayCenter", bTexFmtOverlayCenter);
|
|
||||||
iniFile.Set("Settings", "UseXFB", bUseXFB);
|
|
||||||
|
|
||||||
iniFile.Set("Enhancements", "ForceFiltering", bForceFiltering);
|
|
||||||
iniFile.Set("Enhancements", "ForceMaxAniso", bForceMaxAniso);
|
|
||||||
iniFile.Set("Enhancements", "StretchToFit", bStretchToFit);
|
|
||||||
iniFile.Set("Enhancements", "KeepAR", bKeepAR);
|
|
||||||
|
|
||||||
iniFile.Save("gfx_opengl.ini");
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
||||||
// The one for Linux is in Linux/Linux.cpp
|
// The one for Linux is in Linux/Linux.cpp
|
||||||
|
|
|
@ -15,11 +15,12 @@
|
||||||
// Official SVN repository and contact information can be found at
|
// Official SVN repository and contact information can be found at
|
||||||
// http://code.google.com/p/dolphin-emu/
|
// http://code.google.com/p/dolphin-emu/
|
||||||
|
|
||||||
// several global utilities not really tied to core emulation
|
// This file should DIE.
|
||||||
|
|
||||||
#ifndef _GLOBALS_H
|
#ifndef _GLOBALS_H
|
||||||
#define _GLOBALS_H
|
#define _GLOBALS_H
|
||||||
|
|
||||||
//#define LOGGING
|
// #define LOGGING
|
||||||
|
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include "x64Emitter.h"
|
#include "x64Emitter.h"
|
||||||
|
@ -36,49 +37,6 @@
|
||||||
#define DEBUG_LOG(...)
|
#define DEBUG_LOG(...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CONF_LOG 1
|
|
||||||
#define CONF_PRIMLOG 2
|
|
||||||
#define CONF_SAVETEXTURES 4
|
|
||||||
#define CONF_SAVETARGETS 8
|
|
||||||
#define CONF_SAVESHADERS 16
|
|
||||||
|
|
||||||
struct Config
|
|
||||||
{
|
|
||||||
Config();
|
|
||||||
void Load();
|
|
||||||
void Save();
|
|
||||||
|
|
||||||
//video
|
|
||||||
bool bFullscreen;
|
|
||||||
bool renderToMainframe;
|
|
||||||
char iFSResolution[16];
|
|
||||||
char iWindowedRes[16];
|
|
||||||
int iMultisampleMode;
|
|
||||||
|
|
||||||
bool bForceFiltering;
|
|
||||||
bool bForceMaxAniso;
|
|
||||||
bool bStretchToFit;
|
|
||||||
bool bKeepAR;
|
|
||||||
bool bShowFPS;
|
|
||||||
|
|
||||||
bool bTexFmtOverlayEnable;
|
|
||||||
bool bTexFmtOverlayCenter;
|
|
||||||
bool bOverlayStats;
|
|
||||||
bool bUseXFB;
|
|
||||||
bool bDumpTextures;
|
|
||||||
char texDumpPath[280];
|
|
||||||
|
|
||||||
int iLog; // CONF_ bits
|
|
||||||
int iSaveTargetId;
|
|
||||||
|
|
||||||
//currently unused:
|
|
||||||
int iCompileDLsLevel;
|
|
||||||
bool bWireFrame;
|
|
||||||
bool bShowShaderErrors;
|
|
||||||
};
|
|
||||||
|
|
||||||
extern Config g_Config;
|
|
||||||
|
|
||||||
void DebugLog(const char* _fmt, ...);
|
void DebugLog(const char* _fmt, ...);
|
||||||
void __Log(const char *format, ...);
|
void __Log(const char *format, ...);
|
||||||
void __Log(int type, const char *format, ...);
|
void __Log(int type, const char *format, ...);
|
||||||
|
|
|
@ -25,9 +25,9 @@
|
||||||
#include <wx/aboutdlg.h>
|
#include <wx/aboutdlg.h>
|
||||||
|
|
||||||
#include "../Globals.h"
|
#include "../Globals.h"
|
||||||
|
#include "../Config.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
|
||||||
#include "../../Core/Src/Core.h"
|
|
||||||
#include "Win32.h"
|
#include "Win32.h"
|
||||||
|
|
||||||
#include "IniFile.h" // we need this for the debugger to work
|
#include "IniFile.h" // we need this for the debugger to work
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#include <mmsystem.h>
|
#include <mmsystem.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "Config.h"
|
||||||
#include "Profiler.h"
|
#include "Profiler.h"
|
||||||
#include "Statistics.h"
|
#include "Statistics.h"
|
||||||
#include "ImageWrite.h"
|
#include "ImageWrite.h"
|
||||||
|
@ -384,7 +385,7 @@ void Renderer::ProcessMessages()
|
||||||
|
|
||||||
if (s_listMsgs.size() > 0) {
|
if (s_listMsgs.size() > 0) {
|
||||||
int left = 25, top = 15;
|
int left = 25, top = 15;
|
||||||
list<MESSAGE>::iterator it = s_listMsgs.begin();
|
std::list<MESSAGE>::iterator it = s_listMsgs.begin();
|
||||||
while (it != s_listMsgs.end())
|
while (it != s_listMsgs.end())
|
||||||
{
|
{
|
||||||
int time_left = (int)(it->dwTimeStamp - timeGetTime());
|
int time_left = (int)(it->dwTimeStamp - timeGetTime());
|
||||||
|
@ -838,14 +839,14 @@ void Renderer::SwapBuffers()
|
||||||
bool Renderer::SaveRenderTarget(const char* filename, int jpeg)
|
bool Renderer::SaveRenderTarget(const char* filename, int jpeg)
|
||||||
{
|
{
|
||||||
bool bflip = true;
|
bool bflip = true;
|
||||||
vector<u32> data(nBackbufferWidth*nBackbufferHeight);
|
std::vector<u32> data(nBackbufferWidth*nBackbufferHeight);
|
||||||
glReadPixels(0, 0, nBackbufferWidth, nBackbufferHeight, GL_BGRA, GL_UNSIGNED_BYTE, &data[0]);
|
glReadPixels(0, 0, nBackbufferWidth, nBackbufferHeight, GL_BGRA, GL_UNSIGNED_BYTE, &data[0]);
|
||||||
if (glGetError() != GL_NO_ERROR)
|
if (glGetError() != GL_NO_ERROR)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (bflip) {
|
if (bflip) {
|
||||||
// swap scanlines
|
// swap scanlines
|
||||||
vector<u32> scanline(nBackbufferWidth);
|
std::vector<u32> scanline(nBackbufferWidth);
|
||||||
for(int i = 0; i < nBackbufferHeight/2; ++i) {
|
for(int i = 0; i < nBackbufferHeight/2; ++i) {
|
||||||
memcpy(&scanline[0], &data[i*nBackbufferWidth], nBackbufferWidth*4);
|
memcpy(&scanline[0], &data[i*nBackbufferWidth], nBackbufferWidth*4);
|
||||||
memcpy(&data[i*nBackbufferWidth], &data[(nBackbufferHeight-i-1)*nBackbufferWidth], nBackbufferWidth*4);
|
memcpy(&data[i*nBackbufferWidth], &data[(nBackbufferHeight-i-1)*nBackbufferWidth], nBackbufferWidth*4);
|
||||||
|
|
|
@ -11,6 +11,7 @@ files = [
|
||||||
'Globals.cpp',
|
'Globals.cpp',
|
||||||
'GLUtil.cpp',
|
'GLUtil.cpp',
|
||||||
'main.cpp',
|
'main.cpp',
|
||||||
|
'Config.cpp',
|
||||||
'memcpy_amd.cpp',
|
'memcpy_amd.cpp',
|
||||||
'OpcodeDecoding.cpp',
|
'OpcodeDecoding.cpp',
|
||||||
'PixelShaderManager.cpp',
|
'PixelShaderManager.cpp',
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
#undef _interlockedbittestandreset64
|
#undef _interlockedbittestandreset64
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "Config.h"
|
||||||
#include "Statistics.h"
|
#include "Statistics.h"
|
||||||
#include "Profiler.h"
|
#include "Profiler.h"
|
||||||
#include "ImageWrite.h"
|
#include "ImageWrite.h"
|
||||||
|
|
|
@ -18,8 +18,6 @@
|
||||||
#ifndef _VERTEXLOADER_H
|
#ifndef _VERTEXLOADER_H
|
||||||
#define _VERTEXLOADER_H
|
#define _VERTEXLOADER_H
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
#include "CPMemory.h"
|
#include "CPMemory.h"
|
||||||
#include "DataReader.h"
|
#include "DataReader.h"
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include "Config.h"
|
||||||
#include "Statistics.h"
|
#include "Statistics.h"
|
||||||
#include "MemoryUtil.h"
|
#include "MemoryUtil.h"
|
||||||
#include "Profiler.h"
|
#include "Profiler.h"
|
||||||
|
@ -21,7 +22,7 @@
|
||||||
static GLuint s_vboBuffers[0x40] = {0};
|
static GLuint s_vboBuffers[0x40] = {0};
|
||||||
static int s_nCurVBOIndex = 0; // current free buffer
|
static int s_nCurVBOIndex = 0; // current free buffer
|
||||||
static u8 *s_pBaseBufferPointer = NULL;
|
static u8 *s_pBaseBufferPointer = NULL;
|
||||||
static vector< pair<int, int> > s_vStoredPrimitives; // every element, mode and count to be passed to glDrawArrays
|
static std::vector< std::pair<int, int> > s_vStoredPrimitives; // every element, mode and count to be passed to glDrawArrays
|
||||||
static u32 s_prevcomponents; // previous state set
|
static u32 s_prevcomponents; // previous state set
|
||||||
|
|
||||||
u8* VertexManager::s_pCurBufferPointer = NULL;
|
u8* VertexManager::s_pCurBufferPointer = NULL;
|
||||||
|
@ -107,7 +108,7 @@ void VertexManager::AddVertices(int primitive, int numvertices)
|
||||||
_assert_( numvertices > 0 );
|
_assert_( numvertices > 0 );
|
||||||
|
|
||||||
ADDSTAT(stats.thisFrame.numPrims, numvertices);
|
ADDSTAT(stats.thisFrame.numPrims, numvertices);
|
||||||
s_vStoredPrimitives.push_back(pair<int, int>(c_primitiveType[primitive], numvertices));
|
s_vStoredPrimitives.push_back(std::pair<int, int>(c_primitiveType[primitive], numvertices));
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
static const char *sprims[8] = {"quads", "nothing", "tris", "tstrip", "tfan", "lines", "lstrip", "points"};
|
static const char *sprims[8] = {"quads", "nothing", "tris", "tstrip", "tfan", "lines", "lstrip", "points"};
|
||||||
|
@ -260,7 +261,7 @@ void VertexManager::Flush()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int offset = 0;
|
int offset = 0;
|
||||||
for (vector< pair<int, int> >::const_iterator it = s_vStoredPrimitives.begin(); it != s_vStoredPrimitives.end(); ++it)
|
for (std::vector< std::pair<int, int> >::const_iterator it = s_vStoredPrimitives.begin(); it != s_vStoredPrimitives.end(); ++it)
|
||||||
{
|
{
|
||||||
glDrawArrays(it->first, offset, it->second);
|
glDrawArrays(it->first, offset, it->second);
|
||||||
offset += it->second;
|
offset += it->second;
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
|
|
||||||
#include "CPMemory.h"
|
#include "CPMemory.h"
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
// TODO - clarify the role of this class.
|
// TODO - clarify the role of this class.
|
||||||
|
|
||||||
// Methods to manage and cache the global state of vertex streams and flushing streams
|
// Methods to manage and cache the global state of vertex streams and flushing streams
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
#include "Globals.h"
|
#include "Globals.h"
|
||||||
#include "Profiler.h"
|
#include "Profiler.h"
|
||||||
|
#include "Config.h"
|
||||||
|
|
||||||
#include "GLUtil.h"
|
#include "GLUtil.h"
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
|
|
||||||
#include "GUI/ConfigDlg.h"
|
#include "GUI/ConfigDlg.h"
|
||||||
|
|
||||||
|
#include "Config.h"
|
||||||
#include "LookUpTables.h"
|
#include "LookUpTables.h"
|
||||||
#include "ImageWrite.h"
|
#include "ImageWrite.h"
|
||||||
#include "Render.h"
|
#include "Render.h"
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
// Copyright (C) 2003-2008 Dolphin Project.
|
||||||
|
|
||||||
|
// This program is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, version 2.0.
|
||||||
|
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License 2.0 for more details.
|
||||||
|
|
||||||
|
// A copy of the GPL 2.0 should have been included with the program.
|
||||||
|
// If not, see http://www.gnu.org/licenses/
|
||||||
|
|
||||||
|
// Official SVN repository and contact information can be found at
|
||||||
|
// http://code.google.com/p/dolphin-emu/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
#define _WIN32_WINNT 0x501
|
||||||
|
#ifndef _WIN32_IE
|
||||||
|
#define _WIN32_IE 0x0500 // Default value is 0x0400
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <tchar.h>
|
||||||
|
#include <windows.h>
|
||||||
|
|
Loading…
Reference in New Issue