Store for temporary modification.

Signed-off-by: Michael Fabian Dirks <michael.dirks@realitybends.de>
This commit is contained in:
Michael Fabian Dirks
2015-05-10 23:34:51 +02:00
parent b641313a75
commit c909aeb102
29 changed files with 2891 additions and 1951 deletions
+6 -2
View File
@@ -209,9 +209,13 @@ Function BlitzUtility_BorderlessWindowmode(hwnd=0, MonitorId=0, Width=0, Height=
Local rct.BlitzUtility_Rectangle = New BlitzUtility_Rectangle
BlitzUtility_GetDisplay(MonitorId, rct)
Local rctW, rctH
rctW = (rct\X2 - rct\X)
rctH = (rct\Y2 - rct\Y)
rct\X = rct\X + (rct\X2 / 2.0) - Width / 2.0
rct\Y = rct\Y + (rct\Y2 / 2.0) - Height / 2.0
rct\X = rct\X + (rctW / 2.0) - Width / 2.0
rct\Y = rct\Y + (rctH / 2.0) - Height / 2.0
rct\X2 = Width
rct\Y2 = Height
BlitzUtility_User32_SetWindowLong hwnd, -16, $01000000
+24 -41
View File
@@ -19,16 +19,12 @@
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
<UseOfMfc>false</UseOfMfc>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<WholeProgramOptimization>false</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
<UseOfMfc>false</UseOfMfc>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
@@ -59,20 +55,20 @@
<AdditionalIncludeDirectories>$(SolutionDir);$(ProjectDir)</AdditionalIncludeDirectories>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PreprocessorDefinitions>SQLITE_ENABLE_FTS4;SQLITE_ENABLE_RTREE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<CompileAsManaged>false</CompileAsManaged>
<CompileAsWinRT>false</CompileAsWinRT>
<MultiProcessorCompilation>false</MultiProcessorCompilation>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<StructMemberAlignment>4Bytes</StructMemberAlignment>
<BufferSecurityCheck>false</BufferSecurityCheck>
<FunctionLevelLinking>false</FunctionLevelLinking>
<EnableParallelCodeGeneration>true</EnableParallelCodeGeneration>
<FloatingPointExceptions>
</FloatingPointExceptions>
<CreateHotpatchableImage>false</CreateHotpatchableImage>
<RuntimeTypeInfo>true</RuntimeTypeInfo>
<ForcedIncludeFiles>
</ForcedIncludeFiles>
<OpenMPSupport>false</OpenMPSupport>
<ForcedIncludeFiles>dllmain.h</ForcedIncludeFiles>
<RuntimeTypeInfo>
</RuntimeTypeInfo>
<CreateHotpatchableImage>true</CreateHotpatchableImage>
<FunctionLevelLinking>true</FunctionLevelLinking>
<EnableParallelCodeGeneration>true</EnableParallelCodeGeneration>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<CompileAsManaged>false</CompileAsManaged>
<MinimalRebuild>false</MinimalRebuild>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
@@ -88,27 +84,26 @@
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>Full</Optimization>
<FunctionLevelLinking>false</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>
</SDLCheck>
<AdditionalIncludeDirectories>$(SolutionDir);$(ProjectDir)</AdditionalIncludeDirectories>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PreprocessorDefinitions>SQLITE_ENABLE_FTS4;SQLITE_ENABLE_RTREE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<CompileAsManaged>false</CompileAsManaged>
<CompileAsWinRT>false</CompileAsWinRT>
<MultiProcessorCompilation>false</MultiProcessorCompilation>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<StructMemberAlignment>4Bytes</StructMemberAlignment>
<BufferSecurityCheck>false</BufferSecurityCheck>
<EnableParallelCodeGeneration>true</EnableParallelCodeGeneration>
<FloatingPointExceptions>
</FloatingPointExceptions>
<CreateHotpatchableImage>false</CreateHotpatchableImage>
<RuntimeTypeInfo>true</RuntimeTypeInfo>
<OpenMPSupport>false</OpenMPSupport>
<ForcedIncludeFiles>dllmain.h</ForcedIncludeFiles>
<ForcedIncludeFiles>
</ForcedIncludeFiles>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<OpenMPSupport>false</OpenMPSupport>
<RuntimeTypeInfo>
</RuntimeTypeInfo>
<CreateHotpatchableImage>true</CreateHotpatchableImage>
<MinimalRebuild>true</MinimalRebuild>
<FunctionLevelLinking>true</FunctionLevelLinking>
<EnableParallelCodeGeneration>true</EnableParallelCodeGeneration>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
</ClCompile>
<Link>
<GenerateDebugInformation>false</GenerateDebugInformation>
@@ -126,14 +121,8 @@
<ClInclude Include="dllmain.h" />
<ClInclude Include="Containers\BlitzList.h" />
<ClInclude Include="Utility\Indexer.h" />
<ClInclude Include="Database\SQLite\SQLite.h">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
</ClInclude>
<ClInclude Include="Database\SQLite\sqlite3.h">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
</ClInclude>
<ClInclude Include="Database\SQLite\SQLite.h" />
<ClInclude Include="Database\SQLite\sqlite3.h" />
<ClInclude Include="Math\Matrix3.h" />
<ClInclude Include="Math\Vector2.h" />
<ClInclude Include="Math\Vector3.h" />
@@ -143,14 +132,8 @@
<ItemGroup>
<ClCompile Include="Containers\BlitzList.cpp" />
<ClCompile Include="Utility\Indexer.cpp" />
<ClCompile Include="Database\SQLite\SQLite.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="Database\SQLite\sqlite3.c">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="Database\SQLite\SQLite.cpp" />
<ClCompile Include="Database\SQLite\sqlite3.c" />
<ClCompile Include="Math\Matrix3.cpp" />
<ClCompile Include="Math\Vector3.cpp" />
<ClCompile Include="Math\Vector2.cpp" />
+2 -6
View File
@@ -86,11 +86,7 @@
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="BlitzUtility.decls">
<Filter>Source Files</Filter>
</None>
<None Include="BlitzUtility.bb">
<Filter>Source Files</Filter>
</None>
<None Include="BlitzUtility.decls" />
<None Include="BlitzUtility.bb" />
</ItemGroup>
</Project>
File diff suppressed because it is too large Load Diff
+6 -6
View File
@@ -46,16 +46,16 @@ extern "C" {
** Provide the ability to override linkage features of the interface.
*/
#ifndef SQLITE_EXTERN
# define SQLITE_EXTERN extern
# define SQLITE_EXTERN extern "C" __declspec(dllexport)
#endif
#ifndef SQLITE_API
# define SQLITE_API __declspec(dllexport)
# define SQLITE_API
#endif
#ifndef SQLITE_CDECL
# define SQLITE_CDECL __cdecl
# define SQLITE_CDECL
#endif
#ifndef SQLITE_STDCALL
# define SQLITE_STDCALL SQLITE_CDECL
# define SQLITE_STDCALL
#endif
/*
@@ -111,9 +111,9 @@ extern "C" {
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
** [sqlite_version()] and [sqlite_source_id()].
*/
#define SQLITE_VERSION "3.8.10"
#define SQLITE_VERSION "3.8.10.1"
#define SQLITE_VERSION_NUMBER 3008010
#define SQLITE_SOURCE_ID "2015-04-19 23:11:10 c83052e48bbae0f45db2a44155b4e5482ee4a901"
#define SQLITE_SOURCE_ID "2015-05-09 12:14:55 05b4b1f2a937c06c90db70c09890038f6c98ec40"
/*
** CAPI3REF: Run-Time Library Version Numbers
+6 -6
View File
@@ -172,30 +172,30 @@ void Vector3::rotateAround(Vector3 &o, float &pitch, float &yaw, float &roll)
this->add(o);
}
float Vector3::deltaPitch() {
return (float)atan(this->X / -this->Y) * (180.0 / M_PI);
return (float)(atan(this->X / -this->Y) * (180.0 / M_PI));
}
float Vector3::deltaPitch(const float &x, const float &y, const float &z)
{
return (float)atan((this->X - x) / (-(this->Y - y))) * (180.0 / M_PI);
return (float)(atan((this->X - x) / (-(this->Y - y))) * (180.0 / M_PI));
}
float Vector3::deltaPitch(Vector3 &o)
{
return (float)atan((this->X - o.X) / (-(this->Y - o.Y))) * (180.0 / M_PI);
return (float)(atan((this->X - o.X) / (-(this->Y - o.Y))) * (180.0 / M_PI));
}
float Vector3::deltaYaw() {
return (float)atan(sqrt((this->X * this->X) + (this->Y * this->Y)) / this->Z) * (180.0 / M_PI);
return (float)(atan(sqrt((this->X * this->X) + (this->Y * this->Y)) / this->Z) * (180.0 / M_PI));
}
float Vector3::deltaYaw(const float &x, const float &y, const float &z)
{
float X = (this->X - x);
float Y = (this->Y - y);
return (float)atan(sqrt((X * X) + (Y * Y)) / (this->Z - z)) * (180.0 / M_PI);
return (float)(atan(sqrt((X * X) + (Y * Y)) / (this->Z - z)) * (180.0 / M_PI));
}
float Vector3::deltaYaw(Vector3 &o)
{
float X = (this->X - o.X);
float Y = (this->Y - o.Y);
return (float)atan(sqrt((X * X) + (Y * Y)) / (this->Z - o.Z)) * (180.0 / M_PI);
return (float)(atan(sqrt((X * X) + (Y * Y)) / (this->Z - o.Z)) * (180.0 / M_PI));
}
char* Vector3::serialize()
+3 -3
View File
@@ -3,7 +3,7 @@
#include <list>
#include "Containers\BlitzList.h"
//#include "Database\SQLite\SQLite.h"
#include "Database\SQLite\SQLite.h"
#include "Math\Vector2.h"
#include "Math\Vector3.h"
#include "Math\Matrix3.h"
@@ -20,7 +20,7 @@ bool WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
// Math
// Database
//SQLite3_OnProcessAttach();
SQLite3_OnProcessAttach();
// Utility
Display_OnProcessAttach();
@@ -34,7 +34,7 @@ bool WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
// Math
// Database
//SQLite3_OnProcessDetach();
SQLite3_OnProcessDetach();
// Utility
Display_OnProcessDetach();