Compare commits
246 Commits
r277
...
v0.0.104.5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7ea74a3980 | ||
|
|
3de82eb64d | ||
|
|
d03e78a648 | ||
|
|
b361039f88 | ||
|
|
2af1be327a | ||
|
|
79ce0b491f | ||
|
|
bfcb3f83ab | ||
|
|
0e3968acd4 | ||
|
|
c27a56b42f | ||
|
|
d3dc479ec0 | ||
|
|
ca8fc41228 | ||
|
|
049ef1a8d7 | ||
|
|
02dfa34d15 | ||
|
|
816a67a40b | ||
|
|
2a6d90ad66 | ||
|
|
3963dd5286 | ||
|
|
c472aa9411 | ||
|
|
f0ac00a77b | ||
|
|
cdba7f6eee | ||
|
|
8b4460c104 | ||
|
|
7ca6b1e472 | ||
|
|
3935a7072e | ||
|
|
20afd874dc | ||
|
|
28b1cd6634 | ||
|
|
9d95a5b891 | ||
|
|
a826d01b89 | ||
|
|
f668848ecb | ||
|
|
776a0337b5 | ||
|
|
d0f5c77024 | ||
|
|
06e8ef4dae | ||
|
|
e2136671a3 | ||
|
|
69be9dbb91 | ||
|
|
dd6cd509fa | ||
|
|
2ba76bc9b7 | ||
|
|
84521dd124 | ||
|
|
b7cb2d39ba | ||
|
|
d2534616a2 | ||
|
|
fe21cab8b0 | ||
|
|
c99bcd64e4 | ||
|
|
8a6abac11f | ||
|
|
f11bfa1536 | ||
|
|
f8dd5470da | ||
|
|
788f8312f0 | ||
|
|
89a6ea7124 | ||
|
|
f6c11373b4 | ||
|
|
1cc7f8fcb6 | ||
|
|
67381618de | ||
|
|
e044b606c1 | ||
|
|
299e22cf92 | ||
|
|
fa3e8909c8 | ||
|
|
b14027c787 | ||
|
|
430837ccd6 | ||
|
|
12843a0890 | ||
|
|
8bf27c6412 | ||
|
|
212cadac31 | ||
|
|
fcfed4afcd | ||
|
|
20c18c6f9b | ||
|
|
c08254562f | ||
|
|
0090c6c8a1 | ||
|
|
73a6b72c20 | ||
|
|
5bdeac2f66 | ||
|
|
24a4aed4f1 | ||
|
|
520e7f1bef | ||
|
|
9217e78084 | ||
|
|
bd8209958d | ||
|
|
f08799d49c | ||
|
|
24854a062a | ||
|
|
3f4963795c | ||
|
|
cee1b1308c | ||
|
|
2494a5e509 | ||
|
|
9a8aff54ff | ||
|
|
0ec896e2fd | ||
|
|
72c6d19d7f | ||
|
|
30529c5387 | ||
|
|
03a7d5345d | ||
|
|
fb966e0b82 | ||
|
|
463b2a42ce | ||
|
|
0e7e820481 | ||
|
|
8003bee5f6 | ||
|
|
4f415cf98b | ||
|
|
d36f9df272 | ||
|
|
36ec6b1dc5 | ||
|
|
7c85167030 | ||
|
|
cd7b886ada | ||
|
|
a1db3bb38f | ||
|
|
44d8947975 | ||
|
|
9c76bf6956 | ||
|
|
4ff4d54f09 | ||
|
|
804e329516 | ||
|
|
bf0115f2ad | ||
|
|
94b787804d | ||
|
|
47857e3fd1 | ||
|
|
f92f01be88 | ||
|
|
6fb111067d | ||
|
|
e419a4edcd | ||
|
|
72dcc5ef8e | ||
|
|
c9e79c2063 | ||
|
|
3035478c77 | ||
|
|
152b376c02 | ||
|
|
ef2a3bc146 | ||
|
|
d781627fff | ||
|
|
02bb8b20fa | ||
|
|
ec721abdcc | ||
|
|
0269e63af9 | ||
|
|
8926860107 | ||
|
|
da3cdf405e | ||
|
|
98f4246f17 | ||
|
|
1f4147fd90 | ||
|
|
4c51383bce | ||
|
|
f965c82b58 | ||
|
|
1688865462 | ||
|
|
f99e6cbff7 | ||
|
|
4d13650c6d | ||
|
|
913fc16657 | ||
|
|
44c2928c6a | ||
|
|
7b87773abf | ||
|
|
b2240a4ad0 | ||
|
|
8848d37d0f | ||
|
|
b8c23348ba | ||
|
|
782504278c | ||
|
|
a4ef9bbad1 | ||
|
|
559dfea041 | ||
|
|
01bc10f852 | ||
|
|
f9a1eea0d2 | ||
|
|
5501b7a5d7 | ||
|
|
68ccf1be6e | ||
|
|
6eed189855 | ||
|
|
39173f34a1 | ||
|
|
55f3ff8964 | ||
|
|
bb01d01950 | ||
|
|
22ed6acc7f | ||
|
|
72057499ce | ||
|
|
2292a82a85 | ||
|
|
aa11f5f120 | ||
|
|
1fe59aa9ff | ||
|
|
5e449d8882 | ||
|
|
f1d0d48dfa | ||
|
|
1e27e105b7 | ||
|
|
476610fe06 | ||
|
|
7898df7a8e | ||
|
|
552be1ec54 | ||
|
|
6b3230abd0 | ||
|
|
718bce5289 | ||
|
|
55f59e46e0 | ||
|
|
bc8742b5f5 | ||
|
|
08d8dc4df0 | ||
|
|
d8ba0dcfc8 | ||
|
|
6be44fa9f1 | ||
|
|
284cd129e0 | ||
|
|
fdc4f4e647 | ||
|
|
3417a34f37 | ||
|
|
7f0b358f80 | ||
|
|
bf291d6fe3 | ||
|
|
3f6d032c10 | ||
|
|
d16bf9e39b | ||
|
|
828584a2d9 | ||
|
|
69d78f139f | ||
|
|
d51bde7330 | ||
|
|
d12654b4d3 | ||
|
|
5a20b4aefc | ||
|
|
08a3f9f307 | ||
|
|
77ce5c9a5a | ||
|
|
8a097f7eb1 | ||
|
|
e9a13b8163 | ||
|
|
78875d3b7e | ||
|
|
33a43c5072 | ||
|
|
f2347970c4 | ||
|
|
d0b0ffd7f1 | ||
|
|
ab242470b6 | ||
|
|
03eceeae93 | ||
|
|
2919f4ebaa | ||
|
|
1dd930af49 | ||
|
|
98e73cd7ca | ||
|
|
057d86e05a | ||
|
|
89f9e0bfa2 | ||
|
|
61d07a8557 | ||
|
|
948835df98 | ||
|
|
e83a67ade2 | ||
|
|
6ec4ab466d | ||
|
|
f5f5f269d5 | ||
|
|
d492e438d2 | ||
|
|
1700258001 | ||
|
|
ff5b855e12 | ||
|
|
c9bb2ae72b | ||
|
|
5773584f48 | ||
|
|
7e2eb2c694 | ||
|
|
f7d6781698 | ||
|
|
30a05af3b2 | ||
|
|
b1af53995a | ||
|
|
866d644c63 | ||
|
|
1108af7cf3 | ||
|
|
7b4abe3efe | ||
|
|
5dd6ae7d9c | ||
|
|
0566dd0217 | ||
|
|
99d5a1de38 | ||
|
|
5020de484c | ||
|
|
62208a14a5 | ||
|
|
d7b491e073 | ||
|
|
c50d2a8166 | ||
|
|
d2e0b29051 | ||
|
|
4df67897dc | ||
|
|
0f0be7f0b9 | ||
|
|
581f8a3413 | ||
|
|
0174605a3e | ||
|
|
edf1bc701b | ||
|
|
69d55d0a5c | ||
|
|
99ab8e1620 | ||
|
|
ebe7ad682e | ||
|
|
abe406990b | ||
|
|
78c6dec932 | ||
|
|
2c65001536 | ||
|
|
07a2eb4d98 | ||
|
|
ea072e424a | ||
|
|
8b3da447a4 | ||
|
|
77615c5b8f | ||
|
|
dc6c002250 | ||
|
|
70fba67b6e | ||
|
|
1159be9b1b | ||
|
|
6752c5da68 | ||
|
|
77b7c3e62b | ||
|
|
7d7552d141 | ||
|
|
7f7e015706 | ||
|
|
ebbbbb3a69 | ||
|
|
b608a3ab9e | ||
|
|
ccf3ade099 | ||
|
|
3c2ae53449 | ||
|
|
421498e1fe | ||
|
|
8909ded488 | ||
|
|
5114ceb4b7 | ||
|
|
1472b7d6a5 | ||
|
|
52d2cbf5dd | ||
|
|
e4529a949a | ||
|
|
6d1428ced9 | ||
|
|
0f700aeda5 | ||
|
|
7273ee9ce0 | ||
|
|
1a7cd2e250 | ||
|
|
99f78be344 | ||
|
|
ee528d1245 | ||
|
|
18b856602c | ||
|
|
0dcd054da3 | ||
|
|
268a0cd2ee | ||
|
|
c71dcb8a91 | ||
|
|
24306c04ec | ||
|
|
b986815fcb | ||
|
|
a70cc31d28 | ||
|
|
b097cb15e4 |
5
.gitignore
vendored
@@ -52,4 +52,7 @@ G3DTest.suo
|
|||||||
G3DTest.suo
|
G3DTest.suo
|
||||||
stderr.txt
|
stderr.txt
|
||||||
desktop.ini
|
desktop.ini
|
||||||
main.cpp
|
*.db
|
||||||
|
|
||||||
|
#Redist
|
||||||
|
!Installer/Redist/*
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#ifndef ACTIONTYPE_H
|
|
||||||
#define ACTIONTYPE_H
|
|
||||||
static enum ActionType {Nothing, Pause, Lose, Draw, Win};
|
|
||||||
#endif
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#ifndef AFFECTTYPE_H
|
|
||||||
#define AFFECTTYPE_H
|
|
||||||
static enum AffectType {NoChange, Increase, Decrease};
|
|
||||||
#endif
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#ifndef BINTYPE_H
|
|
||||||
#define BINTYPE_H
|
|
||||||
static enum ActionType {GameTool, Grab, Clone, Hammer};
|
|
||||||
#endif
|
|
||||||
@@ -1,24 +1,24 @@
|
|||||||
# Microsoft Developer Studio Project File - Name="G3DTest" - Package Owner=<4>
|
# Microsoft Developer Studio Project File - Name="Blocks3D" - Package Owner=<4>
|
||||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||||
# ** DO NOT EDIT **
|
# ** DO NOT EDIT **
|
||||||
|
|
||||||
# TARGTYPE "Win32 (x86) Application" 0x0101
|
# TARGTYPE "Win32 (x86) Application" 0x0101
|
||||||
|
|
||||||
CFG=G3DTest - Win32 Debug
|
CFG=Blocks3D - Win32 Debug
|
||||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||||
!MESSAGE use the Export Makefile command and run
|
!MESSAGE use the Export Makefile command and run
|
||||||
!MESSAGE
|
!MESSAGE
|
||||||
!MESSAGE NMAKE /f "G3DTest.mak".
|
!MESSAGE NMAKE /f "Blocks3D.mak".
|
||||||
!MESSAGE
|
!MESSAGE
|
||||||
!MESSAGE You can specify a configuration when running NMAKE
|
!MESSAGE You can specify a configuration when running NMAKE
|
||||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||||
!MESSAGE
|
!MESSAGE
|
||||||
!MESSAGE NMAKE /f "G3DTest.mak" CFG="G3DTest - Win32 Debug"
|
!MESSAGE NMAKE /f "Blocks3D.mak" CFG="Blocks3D - Win32 Debug"
|
||||||
!MESSAGE
|
!MESSAGE
|
||||||
!MESSAGE Possible choices for configuration are:
|
!MESSAGE Possible choices for configuration are:
|
||||||
!MESSAGE
|
!MESSAGE
|
||||||
!MESSAGE "G3DTest - Win32 Release" (based on "Win32 (x86) Application")
|
!MESSAGE "Blocks3D - Win32 Release" (based on "Win32 (x86) Application")
|
||||||
!MESSAGE "G3DTest - Win32 Debug" (based on "Win32 (x86) Application")
|
!MESSAGE "Blocks3D - Win32 Debug" (based on "Win32 (x86) Application")
|
||||||
!MESSAGE
|
!MESSAGE
|
||||||
|
|
||||||
# Begin Project
|
# Begin Project
|
||||||
@@ -29,7 +29,7 @@ CPP=cl.exe
|
|||||||
MTL=midl.exe
|
MTL=midl.exe
|
||||||
RSC=rc.exe
|
RSC=rc.exe
|
||||||
|
|
||||||
!IF "$(CFG)" == "G3DTest - Win32 Release"
|
!IF "$(CFG)" == "Blocks3D - Win32 Release"
|
||||||
|
|
||||||
# PROP BASE Use_MFC 0
|
# PROP BASE Use_MFC 0
|
||||||
# PROP BASE Use_Debug_Libraries 0
|
# PROP BASE Use_Debug_Libraries 0
|
||||||
@@ -54,7 +54,7 @@ LINK32=link.exe
|
|||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "G3DTest - Win32 Debug"
|
!ELSEIF "$(CFG)" == "Blocks3D - Win32 Debug"
|
||||||
|
|
||||||
# PROP BASE Use_MFC 0
|
# PROP BASE Use_MFC 0
|
||||||
# PROP BASE Use_Debug_Libraries 1
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
@@ -83,8 +83,8 @@ LINK32=link.exe
|
|||||||
|
|
||||||
# Begin Target
|
# Begin Target
|
||||||
|
|
||||||
# Name "G3DTest - Win32 Release"
|
# Name "Blocks3D - Win32 Release"
|
||||||
# Name "G3DTest - Win32 Debug"
|
# Name "Blocks3D - Win32 Debug"
|
||||||
# Begin Group "Source Files"
|
# Begin Group "Source Files"
|
||||||
|
|
||||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||||
@@ -3,7 +3,7 @@ Microsoft Developer Studio Workspace File, Format Version 6.00
|
|||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
Project: "G3DTest"=.\G3DTest.dsp - Package Owner=<4>
|
Project: "Blocks3D"=.\Blocks3D.dsp - Package Owner=<4>
|
||||||
|
|
||||||
Package=<5>
|
Package=<5>
|
||||||
{{{
|
{{{
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||||
# Visual Studio 2005
|
# Visual C++ Express 2005
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "G3DTest", "G3DTest.vcproj", "{6C4D6EEF-B1D1-456A-B850-92CAB17124BE}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Blocks3D", "Blocks3D.vcproj", "{6C4D6EEF-B1D1-456A-B850-92CAB17124BE}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
909
Blocks3D.vcproj
Normal file
@@ -0,0 +1,909 @@
|
|||||||
|
<?xml version="1.0" encoding="Windows-1252"?>
|
||||||
|
<VisualStudioProject
|
||||||
|
ProjectType="Visual C++"
|
||||||
|
Version="8.00"
|
||||||
|
Name="Blocks3D"
|
||||||
|
ProjectGUID="{6C4D6EEF-B1D1-456A-B850-92CAB17124BE}"
|
||||||
|
RootNamespace="Blocks3D"
|
||||||
|
>
|
||||||
|
<Platforms>
|
||||||
|
<Platform
|
||||||
|
Name="Win32"
|
||||||
|
/>
|
||||||
|
</Platforms>
|
||||||
|
<ToolFiles>
|
||||||
|
</ToolFiles>
|
||||||
|
<Configurations>
|
||||||
|
<Configuration
|
||||||
|
Name="Release|Win32"
|
||||||
|
OutputDirectory=".\Release"
|
||||||
|
IntermediateDirectory=".\Release"
|
||||||
|
ConfigurationType="1"
|
||||||
|
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
|
||||||
|
UseOfMFC="0"
|
||||||
|
UseOfATL="0"
|
||||||
|
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||||
|
CharacterSet="2"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="NDEBUG"
|
||||||
|
MkTypLibCompatible="true"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
TargetEnvironment="1"
|
||||||
|
TypeLibraryName=".\Release/Blocks3D.tlb"
|
||||||
|
HeaderFileName=""
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="2"
|
||||||
|
InlineFunctionExpansion="1"
|
||||||
|
AdditionalIncludeDirectories="".\src\include""
|
||||||
|
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
|
||||||
|
StringPooling="true"
|
||||||
|
RuntimeLibrary="2"
|
||||||
|
EnableFunctionLevelLinking="true"
|
||||||
|
PrecompiledHeaderFile=".\Release/Blocks3D.pch"
|
||||||
|
AssemblerListingLocation=".\Release/"
|
||||||
|
ObjectFile=".\Release/"
|
||||||
|
ProgramDataBaseFileName=".\Release/"
|
||||||
|
WarningLevel="3"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="NDEBUG"
|
||||||
|
Culture="4105"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalDependencies="Advapi32.lib Comctl32.lib Comdlg32.lib Shell32.lib"
|
||||||
|
OutputFile="./Blocks3D.exe"
|
||||||
|
LinkIncremental="1"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
ProgramDatabaseFile=".\Release/Blocks3D.pdb"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
OutputFile=".\Release/Blocks3D.bsc"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebDeploymentTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
OutputDirectory=".\Debug"
|
||||||
|
IntermediateDirectory=".\Debug"
|
||||||
|
ConfigurationType="1"
|
||||||
|
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
|
||||||
|
UseOfMFC="0"
|
||||||
|
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||||
|
CharacterSet="2"
|
||||||
|
ManagedExtensions="0"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="_DEBUG"
|
||||||
|
MkTypLibCompatible="true"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
TargetEnvironment="1"
|
||||||
|
TypeLibraryName=".\Debug/Blocks3D.tlb"
|
||||||
|
HeaderFileName=""
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="0"
|
||||||
|
AdditionalIncludeDirectories="".\src\include""
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
|
||||||
|
MinimalRebuild="false"
|
||||||
|
BasicRuntimeChecks="0"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
EnableFunctionLevelLinking="false"
|
||||||
|
PrecompiledHeaderFile=".\Debug/Blocks3D.pch"
|
||||||
|
AssemblerListingLocation=".\Debug/"
|
||||||
|
ObjectFile=".\Debug/"
|
||||||
|
ProgramDataBaseFileName=".\Debug/"
|
||||||
|
WarningLevel="3"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="_DEBUG"
|
||||||
|
Culture="4105"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalDependencies="Advapi32.lib UxTheme.lib Comctl32.lib Comdlg32.lib Shell32.lib Urlmon.lib ole32.lib oleaut32.lib uuid.lib"
|
||||||
|
OutputFile="./Blocks3D-Debug.exe"
|
||||||
|
LinkIncremental="2"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
ProgramDatabaseFile=".\Debug/Blocks3D.pdb"
|
||||||
|
SubSystem="1"
|
||||||
|
TargetMachine="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
OutputFile=".\Debug/Blocks3D.bsc"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebDeploymentTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
</Configurations>
|
||||||
|
<References>
|
||||||
|
<AssemblyReference
|
||||||
|
RelativePath="System.dll"
|
||||||
|
AssemblyName="System, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"
|
||||||
|
/>
|
||||||
|
<AssemblyReference
|
||||||
|
RelativePath="System.Data.dll"
|
||||||
|
AssemblyName="System.Data, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=x86"
|
||||||
|
/>
|
||||||
|
<AssemblyReference
|
||||||
|
RelativePath="System.Drawing.dll"
|
||||||
|
AssemblyName="System.Drawing, Version=2.0.0.0, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
|
||||||
|
/>
|
||||||
|
<AssemblyReference
|
||||||
|
RelativePath="System.Windows.Forms.dll"
|
||||||
|
AssemblyName="System.Windows.Forms, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"
|
||||||
|
/>
|
||||||
|
<AssemblyReference
|
||||||
|
RelativePath="System.XML.dll"
|
||||||
|
AssemblyName="System.Xml, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"
|
||||||
|
/>
|
||||||
|
</References>
|
||||||
|
<Files>
|
||||||
|
<Filter
|
||||||
|
Name="Source Files"
|
||||||
|
Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\Application.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\AudioPlayer.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\ax.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\BrowserCallHandler.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\CameraController.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\ErrorFunctions.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\Globals.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\IEBrowser.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\IEDispatcher.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\main.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\Mouse.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\propertyGrid.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\PropertyWindow.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\Renderer.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\StringFunctions.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\TextureHandler.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\WindowFunctions.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<Filter
|
||||||
|
Name="Tool"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\Tool\ArrowTool.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\Tool\SurfaceTool.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\Tool\Tool.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
<Filter
|
||||||
|
Name="Listener"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\Listener\ButtonListener.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\Listener\CameraButtonListener.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\Listener\DeleteListener.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\Listener\GUDButtonListener.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\Listener\MenuButtonListener.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\Listener\ModeSelectionListener.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\Listener\RotateButtonListener.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\Listener\ToolbarListener.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
<Filter
|
||||||
|
Name="DataModelV2"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\DataModelV2\DataModelInstance.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\$(InputName)1.obj"
|
||||||
|
XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\$(InputName)1.obj"
|
||||||
|
XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\DataModelV2\GroupInstance.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\$(InputName)1.obj"
|
||||||
|
XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\$(InputName)1.obj"
|
||||||
|
XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\DataModelV2\Instance.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\$(InputName)1.obj"
|
||||||
|
XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\$(InputName)1.obj"
|
||||||
|
XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\DataModelV2\LevelInstance.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\$(InputName)1.obj"
|
||||||
|
XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\$(InputName)1.obj"
|
||||||
|
XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\DataModelV2\PartInstance.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\$(InputName)1.obj"
|
||||||
|
XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\$(InputName)1.obj"
|
||||||
|
XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\DataModelV2\PVInstance.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\$(InputName)1.obj"
|
||||||
|
XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\$(InputName)1.obj"
|
||||||
|
XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\DataModelV2\WorkspaceInstance.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\$(InputName)1.obj"
|
||||||
|
XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\$(InputName)1.obj"
|
||||||
|
XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
</File>
|
||||||
|
<Filter
|
||||||
|
Name="Gui"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\DataModelV2\BaseButtonInstance.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\$(InputName)1.obj"
|
||||||
|
XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\$(InputName)1.obj"
|
||||||
|
XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\DataModelV2\BaseGuiInstance.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\DataModelV2\GuiRootInstance.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\$(InputName)1.obj"
|
||||||
|
XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\$(InputName)1.obj"
|
||||||
|
XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\DataModelV2\ImageButtonInstance.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\$(InputName)1.obj"
|
||||||
|
XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\$(InputName)1.obj"
|
||||||
|
XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\DataModelV2\TextButtonInstance.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\$(InputName)1.obj"
|
||||||
|
XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\$(InputName)1.obj"
|
||||||
|
XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\DataModelV2\ToggleImageButtonInstance.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\$(InputName)1.obj"
|
||||||
|
XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\$(InputName)1.obj"
|
||||||
|
XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
</Filter>
|
||||||
|
<Filter
|
||||||
|
Name="Properties"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\Properties\BoolProperty.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\source\Properties\Property.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
</Filter>
|
||||||
|
<Filter
|
||||||
|
Name="Header Files"
|
||||||
|
Filter="h;hpp;hxx;hm;inl"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\Application.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\AudioPlayer.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\ax.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\BrowserCallHandler.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\CameraController.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\Enum.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\ErrorFunctions.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\Faces.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\Globals.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\IEBrowser.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\IEDispatcher.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\Mouse.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\propertyGrid.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\PropertyWindow.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\Renderer.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\resource.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\StringFunctions.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\TextureHandler.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\win32Defines.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\WindowFunctions.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<Filter
|
||||||
|
Name="RapidXML"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\rapidxml\rapidxml.hpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\rapidxml\rapidxml_iterators.hpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\rapidxml\rapidxml_print.hpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\rapidxml\rapidxml_utils.hpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
<Filter
|
||||||
|
Name="Listener"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\Listener\ButtonListener.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\Listener\CameraButtonListener.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\Listener\DeleteListener.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\Listener\GUDButtonListener.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\Listener\MenuButtonListener.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\Listener\ModeSelectionListener.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\Listener\RotateButtonListener.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\Listener\ToolbarListener.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\DataModel\WorkspaceInstance.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
<Filter
|
||||||
|
Name="Tool"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\Tool\ArrowTool.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\Tool\SurfaceTool.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\Tool\Tool.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
<Filter
|
||||||
|
Name="DataModelV2"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\DataModelV2\DataModelInstance.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\DataModelV2\GroupInstance.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\DataModelV2\Instance.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\DataModelV2\LevelInstance.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\DataModelV2\PartInstance.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\DataModelV2\PVInstance.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\DataModelV2\WorkspaceInstance.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<Filter
|
||||||
|
Name="Gui"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\DataModelV2\BaseButtonInstance.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\DataModelV2\BaseGuiInstance.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\DataModelV2\GuiRootInstance.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\DataModelV2\ImageButtonInstance.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\DataModelV2\TextButtonInstance.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\DataModelV2\ToggleImageButtonInstance.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
</Filter>
|
||||||
|
<Filter
|
||||||
|
Name="Properties"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\Properties\BoolProperty.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\Properties\Property.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
</Filter>
|
||||||
|
<Filter
|
||||||
|
Name="Resource Files"
|
||||||
|
Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\Dialogs.rc"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\icon1.ico"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\Parts.bmp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\roblox_RN1_icon.ico"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
</Files>
|
||||||
|
<Globals>
|
||||||
|
<Global
|
||||||
|
Name="RESOURCE_FILE"
|
||||||
|
Value="Dialogs.rc"
|
||||||
|
/>
|
||||||
|
</Globals>
|
||||||
|
</VisualStudioProject>
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
#include "Demo.h"
|
|
||||||
#include "BaseButtonInstance.h"
|
|
||||||
class BaseButtonInstance;
|
|
||||||
|
|
||||||
class ButtonListener
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
ButtonListener();
|
|
||||||
~ButtonListener(void);
|
|
||||||
virtual void onButton1MouseClick(BaseButtonInstance*);
|
|
||||||
//virtual void onMouseOver(); //TODO
|
|
||||||
//virtual void onMouseOut(); //TODO
|
|
||||||
//virtual void onButton1MouseDown(); //TODO
|
|
||||||
//virtual void onButton1MouseUp(); //TODO
|
|
||||||
//virtual void onButton2MouseClick(); //TODO
|
|
||||||
//virtual void onButton2MouseDown(); //TODO
|
|
||||||
//virtual void onButton2MouseUp(); //TODO
|
|
||||||
//What to do now...
|
|
||||||
};
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#ifndef CONTROLLERTYPE_H
|
|
||||||
#define CONTROLLERTYPE_H
|
|
||||||
static enum ControllerType {None, KeyboardRight, KeyboardLeft, Joypad1, Joypad2, Chase, Flee};
|
|
||||||
#endif
|
|
||||||
@@ -1,76 +0,0 @@
|
|||||||
#include "DataModelInstance.h"
|
|
||||||
|
|
||||||
|
|
||||||
WorkspaceInstance* workspace;
|
|
||||||
Instance* guiRoot;
|
|
||||||
float mousex;
|
|
||||||
float mousey;
|
|
||||||
bool mouseButton1Down;
|
|
||||||
std::string message;
|
|
||||||
bool showMessage;
|
|
||||||
G3D::GFontRef font;
|
|
||||||
|
|
||||||
|
|
||||||
DataModelInstance::DataModelInstance(void)
|
|
||||||
{
|
|
||||||
workspace = new WorkspaceInstance();
|
|
||||||
guiRoot = new Instance();
|
|
||||||
children.push_back(workspace);
|
|
||||||
className = "dataModel";
|
|
||||||
mousex = 0;
|
|
||||||
mousey = 0;
|
|
||||||
mouseButton1Down = false;
|
|
||||||
showMessage = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
DataModelInstance::~DataModelInstance(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void DataModelInstance::setMessage(std::string msg)
|
|
||||||
{
|
|
||||||
message = msg;
|
|
||||||
showMessage = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DataModelInstance::clearMessage()
|
|
||||||
{
|
|
||||||
showMessage = false;
|
|
||||||
message = "";
|
|
||||||
}
|
|
||||||
|
|
||||||
void DataModelInstance::drawMessage(RenderDevice* rd)
|
|
||||||
{
|
|
||||||
if(showMessage && !font.isNull())
|
|
||||||
{
|
|
||||||
int x = rd->getWidth()/2;
|
|
||||||
int y = rd->getHeight()/2;
|
|
||||||
int width = rd->getWidth()/2 + 100;
|
|
||||||
int height = width / 3;
|
|
||||||
Draw::box(Box(Vector3(x-(width/2), y-(height/2), 0), Vector3(x+(width/2), y+(height/2), 0)), rd, Color4::fromARGB(0x55B2B2B2), Color3::fromARGB(0xB2B2B2));
|
|
||||||
font->draw2D(rd, message, Vector2(x,y), height/8, Color3::white(), Color4::clear(), GFont::XALIGN_CENTER, GFont::YALIGN_CENTER);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
WorkspaceInstance* DataModelInstance::getWorkspace()
|
|
||||||
{
|
|
||||||
return workspace;
|
|
||||||
}
|
|
||||||
Vector2 DataModelInstance::getMousePos()
|
|
||||||
{
|
|
||||||
return Vector2(mousex,mousey);
|
|
||||||
}
|
|
||||||
void DataModelInstance::setMousePos(int x,int y)
|
|
||||||
{
|
|
||||||
mousex=x;
|
|
||||||
mousey=y;
|
|
||||||
}
|
|
||||||
void DataModelInstance::setMousePos(Vector2 pos)
|
|
||||||
{
|
|
||||||
mousex=pos.x;
|
|
||||||
mousey=pos.y;
|
|
||||||
}
|
|
||||||
Instance* DataModelInstance::getGuiRoot()
|
|
||||||
{
|
|
||||||
return guiRoot;
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
#include "instance.h"
|
|
||||||
#include "WorkspaceInstance.h"
|
|
||||||
|
|
||||||
class DataModelInstance :
|
|
||||||
public Instance
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
DataModelInstance(void);
|
|
||||||
~DataModelInstance(void);
|
|
||||||
void setMessage(std::string);
|
|
||||||
void clearMessage();
|
|
||||||
void drawMessage(RenderDevice*);
|
|
||||||
GFontRef font;
|
|
||||||
WorkspaceInstance* getWorkspace();
|
|
||||||
Instance* getGuiRoot();
|
|
||||||
float mousex;
|
|
||||||
float mousey;
|
|
||||||
Vector2 getMousePos();
|
|
||||||
void setMousePos(int x,int y);
|
|
||||||
void setMousePos(Vector2 pos);
|
|
||||||
bool mouseButton1Down;
|
|
||||||
};
|
|
||||||
BIN
Dialogs.aps
97
Dialogs.rc
@@ -7,46 +7,29 @@
|
|||||||
//
|
//
|
||||||
// Generated from the TEXTINCLUDE 2 resource.
|
// Generated from the TEXTINCLUDE 2 resource.
|
||||||
//
|
//
|
||||||
#include "windows.h"
|
#include "afxres.h"
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
#undef APSTUDIO_READONLY_SYMBOLS
|
#undef APSTUDIO_READONLY_SYMBOLS
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
// English (U.S.) resources
|
// Neutral resources
|
||||||
|
|
||||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEU)
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
|
||||||
#pragma code_page(1252)
|
#pragma code_page(1252)
|
||||||
#endif //_WIN32
|
#endif //_WIN32
|
||||||
|
|
||||||
#ifdef APSTUDIO_INVOKED
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// TEXTINCLUDE
|
// Icon
|
||||||
//
|
//
|
||||||
|
|
||||||
1 TEXTINCLUDE
|
// Icon with lowest ID value placed first to ensure application icon
|
||||||
BEGIN
|
// remains consistent on all systems.
|
||||||
"resource.h\0"
|
IDI_ICON1 ICON "roblox_RN1_icon.ico"
|
||||||
END
|
#endif // Neutral resources
|
||||||
|
|
||||||
2 TEXTINCLUDE
|
|
||||||
BEGIN
|
|
||||||
"#include ""windows.h""\r\n"
|
|
||||||
"\0"
|
|
||||||
END
|
|
||||||
|
|
||||||
3 TEXTINCLUDE
|
|
||||||
BEGIN
|
|
||||||
"\r\n"
|
|
||||||
"\0"
|
|
||||||
END
|
|
||||||
|
|
||||||
#endif // APSTUDIO_INVOKED
|
|
||||||
|
|
||||||
#endif // English (U.S.) resources
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
@@ -61,12 +44,66 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_CAN
|
|||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// Icon
|
// Bitmap
|
||||||
//
|
//
|
||||||
|
|
||||||
// Icon with lowest ID value placed first to ensure application icon
|
IDB_BITMAP1 BITMAP "Parts.bmp"
|
||||||
// remains consistent on all systems.
|
|
||||||
IDI_ICON1 ICON "icon1.ico"
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// Dialog
|
||||||
|
//
|
||||||
|
|
||||||
|
IDD_DIALOG1 DIALOGEX 0, 0, 304, 46
|
||||||
|
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||||
|
CAPTION "Dialog"
|
||||||
|
FONT 8, "MS Shell Dlg", 400, 0, 0x1
|
||||||
|
BEGIN
|
||||||
|
DEFPUSHBUTTON "OK",IDOK,247,7,50,14
|
||||||
|
PUSHBUTTON "Cancel",IDCANCEL,247,24,50,14
|
||||||
|
EDITTEXT IDC_EDIT1,68,7,162,14,ES_AUTOHSCROLL
|
||||||
|
LTEXT "Class:",-1,43,7,20,8
|
||||||
|
END
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef APSTUDIO_INVOKED
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// TEXTINCLUDE
|
||||||
|
//
|
||||||
|
|
||||||
|
1 TEXTINCLUDE
|
||||||
|
BEGIN
|
||||||
|
"resource.h\0"
|
||||||
|
END
|
||||||
|
|
||||||
|
|
||||||
|
3 TEXTINCLUDE
|
||||||
|
BEGIN
|
||||||
|
"\r\n"
|
||||||
|
END
|
||||||
|
|
||||||
|
#endif // APSTUDIO_INVOKED
|
||||||
|
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// DESIGNINFO
|
||||||
|
//
|
||||||
|
|
||||||
|
#ifdef APSTUDIO_INVOKED
|
||||||
|
GUIDELINES DESIGNINFO
|
||||||
|
BEGIN
|
||||||
|
IDD_DIALOG1, DIALOG
|
||||||
|
BEGIN
|
||||||
|
LEFTMARGIN, 7
|
||||||
|
RIGHTMARGIN, 297
|
||||||
|
TOPMARGIN, 7
|
||||||
|
BOTTOMMARGIN, 39
|
||||||
|
END
|
||||||
|
END
|
||||||
|
#endif // APSTUDIO_INVOKED
|
||||||
|
|
||||||
#endif // English (Canada) resources
|
#endif // English (Canada) resources
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|||||||
13
Documentation/index.html
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title> RBX05R Documentation </title>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="content" style="text-align:center;">
|
||||||
|
<h1> ROBLOX 2005 Recreation documentation </h1>
|
||||||
|
<br>
|
||||||
|
<h4> Current for: r360 </h4>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
BIN
G3DTest.aps
BIN
G3DTest.opt
32
G3DTest.plg
@@ -1,32 +0,0 @@
|
|||||||
<html>
|
|
||||||
<body>
|
|
||||||
<pre>
|
|
||||||
<h1>Build Log</h1>
|
|
||||||
<h3>
|
|
||||||
--------------------Configuration: G3DTest - Win32 Debug--------------------
|
|
||||||
</h3>
|
|
||||||
<h3>Command Lines</h3>
|
|
||||||
Creating temporary file "C:\Users\Andreja\AppData\Local\Temp\RSPFD70.tmp" with contents
|
|
||||||
[
|
|
||||||
/nologo /MLd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /Fp"Debug/G3DTest.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
|
|
||||||
"C:\USERS\ANDREJA\G3D\G3DTest\main.cpp"
|
|
||||||
]
|
|
||||||
Creating command line "cl.exe @C:\Users\Andreja\AppData\Local\Temp\RSPFD70.tmp"
|
|
||||||
Creating temporary file "C:\Users\Andreja\AppData\Local\Temp\RSPFD71.tmp" with contents
|
|
||||||
[
|
|
||||||
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /incremental:yes /pdb:"Debug/G3DTest.pdb" /debug /machine:I386 /out:"Debug/G3DTest.exe" /pdbtype:sept
|
|
||||||
.\Debug\main.obj
|
|
||||||
]
|
|
||||||
Creating command line "link.exe @C:\Users\Andreja\AppData\Local\Temp\RSPFD71.tmp"
|
|
||||||
<h3>Output Window</h3>
|
|
||||||
Compiling...
|
|
||||||
main.cpp
|
|
||||||
Linking...
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<h3>Results</h3>
|
|
||||||
G3DTest.exe - 0 error(s), 0 warning(s)
|
|
||||||
</pre>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
495
G3DTest.vcproj
@@ -1,495 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="Windows-1252"?>
|
|
||||||
<VisualStudioProject
|
|
||||||
ProjectType="Visual C++"
|
|
||||||
Version="8.00"
|
|
||||||
Name="G3DTest"
|
|
||||||
ProjectGUID="{6C4D6EEF-B1D1-456A-B850-92CAB17124BE}"
|
|
||||||
RootNamespace="G3DTest"
|
|
||||||
>
|
|
||||||
<Platforms>
|
|
||||||
<Platform
|
|
||||||
Name="Win32"
|
|
||||||
/>
|
|
||||||
</Platforms>
|
|
||||||
<ToolFiles>
|
|
||||||
</ToolFiles>
|
|
||||||
<Configurations>
|
|
||||||
<Configuration
|
|
||||||
Name="Release|Win32"
|
|
||||||
OutputDirectory=".\Release"
|
|
||||||
IntermediateDirectory=".\Release"
|
|
||||||
ConfigurationType="1"
|
|
||||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
|
|
||||||
UseOfMFC="0"
|
|
||||||
UseOfATL="0"
|
|
||||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
|
||||||
CharacterSet="2"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
PreprocessorDefinitions="NDEBUG"
|
|
||||||
MkTypLibCompatible="true"
|
|
||||||
SuppressStartupBanner="true"
|
|
||||||
TargetEnvironment="1"
|
|
||||||
TypeLibraryName=".\Release/G3DTest.tlb"
|
|
||||||
HeaderFileName=""
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="2"
|
|
||||||
InlineFunctionExpansion="1"
|
|
||||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
|
|
||||||
StringPooling="true"
|
|
||||||
RuntimeLibrary="2"
|
|
||||||
EnableFunctionLevelLinking="true"
|
|
||||||
PrecompiledHeaderFile=".\Release/G3DTest.pch"
|
|
||||||
AssemblerListingLocation=".\Release/"
|
|
||||||
ObjectFile=".\Release/"
|
|
||||||
ProgramDataBaseFileName=".\Release/"
|
|
||||||
WarningLevel="3"
|
|
||||||
SuppressStartupBanner="true"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
PreprocessorDefinitions="NDEBUG"
|
|
||||||
Culture="4105"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLinkerTool"
|
|
||||||
AdditionalDependencies="Advapi32.lib UxTheme.lib Comctl32.lib"
|
|
||||||
OutputFile="./G3DTest.exe"
|
|
||||||
LinkIncremental="1"
|
|
||||||
SuppressStartupBanner="true"
|
|
||||||
ProgramDatabaseFile=".\Release/G3DTest.pdb"
|
|
||||||
SubSystem="2"
|
|
||||||
TargetMachine="1"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManifestTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
SuppressStartupBanner="true"
|
|
||||||
OutputFile=".\Release/G3DTest.bsc"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAppVerifierTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebDeploymentTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
<Configuration
|
|
||||||
Name="Debug|Win32"
|
|
||||||
OutputDirectory=".\Debug"
|
|
||||||
IntermediateDirectory=".\Debug"
|
|
||||||
ConfigurationType="1"
|
|
||||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
|
|
||||||
UseOfMFC="0"
|
|
||||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
|
||||||
CharacterSet="2"
|
|
||||||
ManagedExtensions="0"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
PreprocessorDefinitions="_DEBUG"
|
|
||||||
MkTypLibCompatible="true"
|
|
||||||
SuppressStartupBanner="true"
|
|
||||||
TargetEnvironment="1"
|
|
||||||
TypeLibraryName=".\Debug/G3DTest.tlb"
|
|
||||||
HeaderFileName=""
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="0"
|
|
||||||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
|
|
||||||
MinimalRebuild="false"
|
|
||||||
BasicRuntimeChecks="0"
|
|
||||||
RuntimeLibrary="2"
|
|
||||||
EnableFunctionLevelLinking="true"
|
|
||||||
PrecompiledHeaderFile=".\Debug/G3DTest.pch"
|
|
||||||
AssemblerListingLocation=".\Debug/"
|
|
||||||
ObjectFile=".\Debug/"
|
|
||||||
ProgramDataBaseFileName=".\Debug/"
|
|
||||||
WarningLevel="3"
|
|
||||||
SuppressStartupBanner="true"
|
|
||||||
DebugInformationFormat="3"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
PreprocessorDefinitions="_DEBUG"
|
|
||||||
Culture="4105"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLinkerTool"
|
|
||||||
AdditionalDependencies="Advapi32.lib UxTheme.lib Comctl32.lib Comdlg32.lib Shell32.lib"
|
|
||||||
OutputFile="./G3DTest-Debug.exe"
|
|
||||||
LinkIncremental="2"
|
|
||||||
SuppressStartupBanner="true"
|
|
||||||
GenerateDebugInformation="true"
|
|
||||||
ProgramDatabaseFile=".\Debug/G3DTest.pdb"
|
|
||||||
SubSystem="2"
|
|
||||||
TargetMachine="1"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManifestTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
SuppressStartupBanner="true"
|
|
||||||
OutputFile=".\Debug/G3DTest.bsc"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAppVerifierTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebDeploymentTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
</Configurations>
|
|
||||||
<References>
|
|
||||||
<AssemblyReference
|
|
||||||
RelativePath="System.dll"
|
|
||||||
AssemblyName="System, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"
|
|
||||||
/>
|
|
||||||
<AssemblyReference
|
|
||||||
RelativePath="System.Data.dll"
|
|
||||||
AssemblyName="System.Data, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=x86"
|
|
||||||
/>
|
|
||||||
<AssemblyReference
|
|
||||||
RelativePath="System.Drawing.dll"
|
|
||||||
AssemblyName="System.Drawing, Version=2.0.0.0, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
|
|
||||||
/>
|
|
||||||
<AssemblyReference
|
|
||||||
RelativePath="System.Windows.Forms.dll"
|
|
||||||
AssemblyName="System.Windows.Forms, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"
|
|
||||||
/>
|
|
||||||
<AssemblyReference
|
|
||||||
RelativePath="System.XML.dll"
|
|
||||||
AssemblyName="System.Xml, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"
|
|
||||||
/>
|
|
||||||
</References>
|
|
||||||
<Files>
|
|
||||||
<Filter
|
|
||||||
Name="Source Files"
|
|
||||||
Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
|
||||||
>
|
|
||||||
<File
|
|
||||||
RelativePath=".\AudioPlayer.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\ax.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\BrowserCallHandler.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\ButtonListener.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\CameraController.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\Globals.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\IEBrowser.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\IEBrowser.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\IEDispatcher.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="main.cpp"
|
|
||||||
>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|Win32"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PreprocessorDefinitions=""
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|Win32"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PreprocessorDefinitions=""
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\propertyGrid.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\PropertyWindow.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\WindowFunctions.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<Filter
|
|
||||||
Name="Instance"
|
|
||||||
>
|
|
||||||
<File
|
|
||||||
RelativePath=".\BaseButtonInstance.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\DataModelInstance.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\ImageButtonInstance.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\Instance.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\PhysicalInstance.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\TextButtonInstance.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\WorkspaceInstance.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
</Filter>
|
|
||||||
<Filter
|
|
||||||
Name="Header Files"
|
|
||||||
Filter="h;hpp;hxx;hm;inl"
|
|
||||||
>
|
|
||||||
<File
|
|
||||||
RelativePath=".\ActionType.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\AffectType.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\AudioPlayer.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\ax.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\BinType.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\BrowserCallHandler.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\ButtonListener.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\CameraController.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\ControllerType.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\Demo.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\Globals.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\IEDispatcher.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\InputType.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\JointType.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\KeywordFilterType.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\PartType.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\propertyGrid.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\PropertyWindow.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\resource.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\SoundType.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\Surface.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\SurfaceConstraint.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\SurfaceType.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\win32Defines.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\WindowFunctions.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<Filter
|
|
||||||
Name="Instance"
|
|
||||||
>
|
|
||||||
<File
|
|
||||||
RelativePath=".\BaseButtonInstance.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\DataModelInstance.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\ImageButtonInstance.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\Instance.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\PhysicalInstance.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\TextButtonInstance.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\WorkspaceInstance.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
</Filter>
|
|
||||||
<Filter
|
|
||||||
Name="Resource Files"
|
|
||||||
Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
|
|
||||||
>
|
|
||||||
<File
|
|
||||||
RelativePath=".\Dialogs.rc"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\icon1.ico"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
</Files>
|
|
||||||
<Globals>
|
|
||||||
<Global
|
|
||||||
Name="RESOURCE_FILE"
|
|
||||||
Value="Dialogs.rc"
|
|
||||||
/>
|
|
||||||
</Globals>
|
|
||||||
</VisualStudioProject>
|
|
||||||
19
Globals.cpp
@@ -1,19 +0,0 @@
|
|||||||
#include "Globals.h"
|
|
||||||
|
|
||||||
DataModelInstance* Globals::dataModel = NULL;
|
|
||||||
int const Globals::gen = 0;
|
|
||||||
int const Globals::major = 0;
|
|
||||||
int const Globals::minor = 4;
|
|
||||||
int const Globals::patch = 2;
|
|
||||||
int Globals::surfaceId = 2;
|
|
||||||
bool Globals::showMouse = true;
|
|
||||||
bool Globals::useMousePoint = false;
|
|
||||||
|
|
||||||
const std::string Globals::PlaceholderName = "Dynamica";
|
|
||||||
|
|
||||||
|
|
||||||
G3D::TextureRef Globals::surface;
|
|
||||||
POINT Globals::mousepoint;
|
|
||||||
Globals::Globals(void){}
|
|
||||||
|
|
||||||
Globals::~Globals(void){}
|
|
||||||
21
Globals.h
@@ -1,21 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
#include "DataModelInstance.h"
|
|
||||||
#include <G3DAll.h>
|
|
||||||
|
|
||||||
class Globals
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
Globals(void);
|
|
||||||
~Globals(void);
|
|
||||||
static DataModelInstance* dataModel;
|
|
||||||
static bool showMouse;
|
|
||||||
static POINT mousepoint;
|
|
||||||
static bool useMousePoint;
|
|
||||||
static const int gen;
|
|
||||||
static const int major;
|
|
||||||
static const int minor;
|
|
||||||
static const int patch;
|
|
||||||
static G3D::TextureRef surface;
|
|
||||||
static int surfaceId;
|
|
||||||
static const std::string PlaceholderName;
|
|
||||||
};
|
|
||||||
@@ -1,68 +0,0 @@
|
|||||||
#ifndef WIN32_LEAN_AND_MEAN
|
|
||||||
#define WIN32_LEAN_AND_MEAN
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <windows.h>
|
|
||||||
|
|
||||||
#include "IEBrowser.h"
|
|
||||||
#include "Globals.h"
|
|
||||||
#include "ax.h"
|
|
||||||
|
|
||||||
void IEBrowser::Boop(char* test)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
IEBrowser::IEBrowser(HWND attachHWnd) {
|
|
||||||
MSG messages;
|
|
||||||
while (PeekMessage (&messages, NULL, 0, 0,PM_REMOVE))
|
|
||||||
{
|
|
||||||
if (IsDialogMessage(hwnd, &messages) == 0)
|
|
||||||
{
|
|
||||||
TranslateMessage(&messages);
|
|
||||||
DispatchMessage(&messages);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
hwnd = attachHWnd;
|
|
||||||
spDocument = 0;
|
|
||||||
webBrowser = 0;
|
|
||||||
SendMessage(hwnd,AX_INPLACE,1,0);
|
|
||||||
SendMessage(hwnd,AX_QUERYINTERFACE,(WPARAM)&IID_IWebBrowser2,(LPARAM)&webBrowser);
|
|
||||||
}
|
|
||||||
|
|
||||||
IEBrowser::~IEBrowser(void) {
|
|
||||||
if (webBrowser)
|
|
||||||
{
|
|
||||||
webBrowser->Release();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bool IEBrowser::navigateSyncURL(wchar_t* url)
|
|
||||||
{
|
|
||||||
MSG messages;
|
|
||||||
if (webBrowser)
|
|
||||||
{
|
|
||||||
webBrowser->Navigate(url,0,0,0,0);
|
|
||||||
for (int i=1;i<1000;i++)
|
|
||||||
{
|
|
||||||
while (PeekMessage (&messages, NULL, 0, 0,PM_REMOVE))
|
|
||||||
{
|
|
||||||
if (IsDialogMessage(hwnd, &messages) == 0)
|
|
||||||
{
|
|
||||||
TranslateMessage(&messages);
|
|
||||||
DispatchMessage(&messages);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Sleep(30);
|
|
||||||
HRESULT hresult = webBrowser->get_Document(&spDocument);
|
|
||||||
if (&spDocument!=0)
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
MessageBox(NULL,"Cannot read IWebBrowser2...",(Globals::PlaceholderName+" Crash").c_str(),MB_OK);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
16
IEBrowser.h
@@ -1,16 +0,0 @@
|
|||||||
//#include "WindowFunctions.h"
|
|
||||||
#include <mshtml.h>
|
|
||||||
#include <exdisp.h>
|
|
||||||
//#include <Mshtmhst.h>
|
|
||||||
|
|
||||||
class IEBrowser {
|
|
||||||
public:
|
|
||||||
IEBrowser(HWND attachHWnd);
|
|
||||||
~IEBrowser(void);
|
|
||||||
bool navigateSyncURL(wchar_t* url);
|
|
||||||
void Boop(char* test);
|
|
||||||
private:
|
|
||||||
IWebBrowser2* webBrowser;
|
|
||||||
HWND hwnd;
|
|
||||||
IDispatch* spDocument;
|
|
||||||
};
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#ifndef INPUTTYPE_H
|
|
||||||
#define INPUTTYPE_H
|
|
||||||
static enum InputType {NoInput, LeftTread, RightTread, Steer, Throtle, UpDown, Action1, Action2, Action3, Action4, Action5, Constant, Sin};
|
|
||||||
#endif
|
|
||||||
BIN
Installer/Redist/vcredist_x64.exe
Normal file
BIN
Installer/Redist/vcredist_x86.exe
Normal file
49
Installer/install_script.iss
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
;InnoSetupVersion=5.5.7
|
||||||
|
|
||||||
|
[Setup]
|
||||||
|
AppName=Blocks3D
|
||||||
|
AppId={{4C5DF268-0208-4CDE-A7F0-65F7E2CB5067}
|
||||||
|
AppVersion=v0_0_104_4
|
||||||
|
AppPublisherURL=http://blocks3d.com/
|
||||||
|
AppSupportURL=http://blocks3d.com/
|
||||||
|
AppUpdatesURL=http://blocks3d.com/
|
||||||
|
DefaultDirName={%localappdata}\Blocks3D
|
||||||
|
OutputBaseFilename=Blocks3D_Setup_{#SetupSetting("AppVersion")}
|
||||||
|
Compression=lzma2
|
||||||
|
PrivilegesRequired=lowest
|
||||||
|
WizardImageFile=setup.bmp
|
||||||
|
DefaultGroupName=Blocks3D
|
||||||
|
|
||||||
|
|
||||||
|
[UninstallDelete]
|
||||||
|
Type: filesandordirs; Name: "{app}"
|
||||||
|
|
||||||
|
[Files]
|
||||||
|
Source: "Redist\vcredist_x86.exe"; DestDir: "{tmp}"; Flags: ignoreversion
|
||||||
|
Source: "Redist\vcredist_x64.exe"; DestDir: "{tmp}"; Check: "IsWin64"; Flags: ignoreversion
|
||||||
|
Source: "..\content\*"; DestDir: "{app}\content"; Flags: ignoreversion recursesubdirs
|
||||||
|
Source: "..\SDL.DLL"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs
|
||||||
|
Source: "..\Blocks3D.exe"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs
|
||||||
|
|
||||||
|
[Registry]
|
||||||
|
|
||||||
|
|
||||||
|
[Run]
|
||||||
|
Filename: "{tmp}\vcredist_x86.exe"; Parameters: "/q"; Tasks: instvc;
|
||||||
|
Filename: "{tmp}\vcredist_x64.exe"; Parameters: "/q"; Tasks: instvc; Check: "IsWin64";
|
||||||
|
Filename: "iexplore.exe"; Parameters: "http://www.blocks3d.com/FirstInstall"; Description: Start playing Blocks3D; Flags: shellexec postinstall nowait skipifsilent
|
||||||
|
|
||||||
|
[Icons]
|
||||||
|
Name: "{group}\Play Blocks3D"; Filename: "{%programfiles}\Internet Explorer\iexplore.exe"; Parameters: "http://www.blocks3d.com/Games"; IconFilename: "{app}\Blocks3D.exe"; Tasks: startscut;
|
||||||
|
Name: "{group}\Blocks3D Editor"; Filename: "{app}\Blocks3D.exe"; Tasks: startscut;
|
||||||
|
|
||||||
|
Name: "{userdesktop}\Play Blocks3D"; Filename: "{%programfiles}\Internet Explorer\iexplore.exe"; Parameters: "http://www.blocks3d.com/Games"; IconFilename: "{app}\Blocks3D.exe"; Tasks: startscut;
|
||||||
|
Name: "{userdesktop}\Blocks3D Editor"; Filename: "{app}\Blocks3D.exe"; Tasks: desktopicon
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[Tasks]
|
||||||
|
Name: "instvc"; Description: "Install Visual C++ Redistributable 2005 SP1 (Requires elevated permissions)";
|
||||||
|
Name: "desktopicon"; Description: "Create Desktop Icons";
|
||||||
|
Name: "startscut"; Description: "Create Start Menu Icons";
|
||||||
|
|
||||||
BIN
Installer/setup.bmp
Normal file
|
After Width: | Height: | Size: 151 KiB |
BIN
Installer/setup.png
Normal file
|
After Width: | Height: | Size: 6.4 KiB |
@@ -1,4 +0,0 @@
|
|||||||
#ifndef JOINTTYPE_H
|
|
||||||
#define JOINTTYPE_H
|
|
||||||
static enum ActionType {UNK0, Weld, Snap, UNK3, Rotate, RotateP, RotateV, Glue, UNK8, UNK9, None};
|
|
||||||
#endif
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#ifndef KEYWORDFILTERTYPE_H
|
|
||||||
#define KEYWORDFILTERTYPE_H
|
|
||||||
static enum KeywordFilterType {Include, Exclude};
|
|
||||||
#endif
|
|
||||||
339
LICENSE
Normal file
@@ -0,0 +1,339 @@
|
|||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 2, June 1991
|
||||||
|
|
||||||
|
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The licenses for most software are designed to take away your
|
||||||
|
freedom to share and change it. By contrast, the GNU General Public
|
||||||
|
License is intended to guarantee your freedom to share and change free
|
||||||
|
software--to make sure the software is free for all its users. This
|
||||||
|
General Public License applies to most of the Free Software
|
||||||
|
Foundation's software and to any other program whose authors commit to
|
||||||
|
using it. (Some other Free Software Foundation software is covered by
|
||||||
|
the GNU Lesser General Public License instead.) You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
this service if you wish), that you receive source code or can get it
|
||||||
|
if you want it, that you can change the software or use pieces of it
|
||||||
|
in new free programs; and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to make restrictions that forbid
|
||||||
|
anyone to deny you these rights or to ask you to surrender the rights.
|
||||||
|
These restrictions translate to certain responsibilities for you if you
|
||||||
|
distribute copies of the software, or if you modify it.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must give the recipients all the rights that
|
||||||
|
you have. You must make sure that they, too, receive or can get the
|
||||||
|
source code. And you must show them these terms so they know their
|
||||||
|
rights.
|
||||||
|
|
||||||
|
We protect your rights with two steps: (1) copyright the software, and
|
||||||
|
(2) offer you this license which gives you legal permission to copy,
|
||||||
|
distribute and/or modify the software.
|
||||||
|
|
||||||
|
Also, for each author's protection and ours, we want to make certain
|
||||||
|
that everyone understands that there is no warranty for this free
|
||||||
|
software. If the software is modified by someone else and passed on, we
|
||||||
|
want its recipients to know that what they have is not the original, so
|
||||||
|
that any problems introduced by others will not reflect on the original
|
||||||
|
authors' reputations.
|
||||||
|
|
||||||
|
Finally, any free program is threatened constantly by software
|
||||||
|
patents. We wish to avoid the danger that redistributors of a free
|
||||||
|
program will individually obtain patent licenses, in effect making the
|
||||||
|
program proprietary. To prevent this, we have made it clear that any
|
||||||
|
patent must be licensed for everyone's free use or not licensed at all.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. This License applies to any program or other work which contains
|
||||||
|
a notice placed by the copyright holder saying it may be distributed
|
||||||
|
under the terms of this General Public License. The "Program", below,
|
||||||
|
refers to any such program or work, and a "work based on the Program"
|
||||||
|
means either the Program or any derivative work under copyright law:
|
||||||
|
that is to say, a work containing the Program or a portion of it,
|
||||||
|
either verbatim or with modifications and/or translated into another
|
||||||
|
language. (Hereinafter, translation is included without limitation in
|
||||||
|
the term "modification".) Each licensee is addressed as "you".
|
||||||
|
|
||||||
|
Activities other than copying, distribution and modification are not
|
||||||
|
covered by this License; they are outside its scope. The act of
|
||||||
|
running the Program is not restricted, and the output from the Program
|
||||||
|
is covered only if its contents constitute a work based on the
|
||||||
|
Program (independent of having been made by running the Program).
|
||||||
|
Whether that is true depends on what the Program does.
|
||||||
|
|
||||||
|
1. You may copy and distribute verbatim copies of the Program's
|
||||||
|
source code as you receive it, in any medium, provided that you
|
||||||
|
conspicuously and appropriately publish on each copy an appropriate
|
||||||
|
copyright notice and disclaimer of warranty; keep intact all the
|
||||||
|
notices that refer to this License and to the absence of any warranty;
|
||||||
|
and give any other recipients of the Program a copy of this License
|
||||||
|
along with the Program.
|
||||||
|
|
||||||
|
You may charge a fee for the physical act of transferring a copy, and
|
||||||
|
you may at your option offer warranty protection in exchange for a fee.
|
||||||
|
|
||||||
|
2. You may modify your copy or copies of the Program or any portion
|
||||||
|
of it, thus forming a work based on the Program, and copy and
|
||||||
|
distribute such modifications or work under the terms of Section 1
|
||||||
|
above, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) You must cause the modified files to carry prominent notices
|
||||||
|
stating that you changed the files and the date of any change.
|
||||||
|
|
||||||
|
b) You must cause any work that you distribute or publish, that in
|
||||||
|
whole or in part contains or is derived from the Program or any
|
||||||
|
part thereof, to be licensed as a whole at no charge to all third
|
||||||
|
parties under the terms of this License.
|
||||||
|
|
||||||
|
c) If the modified program normally reads commands interactively
|
||||||
|
when run, you must cause it, when started running for such
|
||||||
|
interactive use in the most ordinary way, to print or display an
|
||||||
|
announcement including an appropriate copyright notice and a
|
||||||
|
notice that there is no warranty (or else, saying that you provide
|
||||||
|
a warranty) and that users may redistribute the program under
|
||||||
|
these conditions, and telling the user how to view a copy of this
|
||||||
|
License. (Exception: if the Program itself is interactive but
|
||||||
|
does not normally print such an announcement, your work based on
|
||||||
|
the Program is not required to print an announcement.)
|
||||||
|
|
||||||
|
These requirements apply to the modified work as a whole. If
|
||||||
|
identifiable sections of that work are not derived from the Program,
|
||||||
|
and can be reasonably considered independent and separate works in
|
||||||
|
themselves, then this License, and its terms, do not apply to those
|
||||||
|
sections when you distribute them as separate works. But when you
|
||||||
|
distribute the same sections as part of a whole which is a work based
|
||||||
|
on the Program, the distribution of the whole must be on the terms of
|
||||||
|
this License, whose permissions for other licensees extend to the
|
||||||
|
entire whole, and thus to each and every part regardless of who wrote it.
|
||||||
|
|
||||||
|
Thus, it is not the intent of this section to claim rights or contest
|
||||||
|
your rights to work written entirely by you; rather, the intent is to
|
||||||
|
exercise the right to control the distribution of derivative or
|
||||||
|
collective works based on the Program.
|
||||||
|
|
||||||
|
In addition, mere aggregation of another work not based on the Program
|
||||||
|
with the Program (or with a work based on the Program) on a volume of
|
||||||
|
a storage or distribution medium does not bring the other work under
|
||||||
|
the scope of this License.
|
||||||
|
|
||||||
|
3. You may copy and distribute the Program (or a work based on it,
|
||||||
|
under Section 2) in object code or executable form under the terms of
|
||||||
|
Sections 1 and 2 above provided that you also do one of the following:
|
||||||
|
|
||||||
|
a) Accompany it with the complete corresponding machine-readable
|
||||||
|
source code, which must be distributed under the terms of Sections
|
||||||
|
1 and 2 above on a medium customarily used for software interchange; or,
|
||||||
|
|
||||||
|
b) Accompany it with a written offer, valid for at least three
|
||||||
|
years, to give any third party, for a charge no more than your
|
||||||
|
cost of physically performing source distribution, a complete
|
||||||
|
machine-readable copy of the corresponding source code, to be
|
||||||
|
distributed under the terms of Sections 1 and 2 above on a medium
|
||||||
|
customarily used for software interchange; or,
|
||||||
|
|
||||||
|
c) Accompany it with the information you received as to the offer
|
||||||
|
to distribute corresponding source code. (This alternative is
|
||||||
|
allowed only for noncommercial distribution and only if you
|
||||||
|
received the program in object code or executable form with such
|
||||||
|
an offer, in accord with Subsection b above.)
|
||||||
|
|
||||||
|
The source code for a work means the preferred form of the work for
|
||||||
|
making modifications to it. For an executable work, complete source
|
||||||
|
code means all the source code for all modules it contains, plus any
|
||||||
|
associated interface definition files, plus the scripts used to
|
||||||
|
control compilation and installation of the executable. However, as a
|
||||||
|
special exception, the source code distributed need not include
|
||||||
|
anything that is normally distributed (in either source or binary
|
||||||
|
form) with the major components (compiler, kernel, and so on) of the
|
||||||
|
operating system on which the executable runs, unless that component
|
||||||
|
itself accompanies the executable.
|
||||||
|
|
||||||
|
If distribution of executable or object code is made by offering
|
||||||
|
access to copy from a designated place, then offering equivalent
|
||||||
|
access to copy the source code from the same place counts as
|
||||||
|
distribution of the source code, even though third parties are not
|
||||||
|
compelled to copy the source along with the object code.
|
||||||
|
|
||||||
|
4. You may not copy, modify, sublicense, or distribute the Program
|
||||||
|
except as expressly provided under this License. Any attempt
|
||||||
|
otherwise to copy, modify, sublicense or distribute the Program is
|
||||||
|
void, and will automatically terminate your rights under this License.
|
||||||
|
However, parties who have received copies, or rights, from you under
|
||||||
|
this License will not have their licenses terminated so long as such
|
||||||
|
parties remain in full compliance.
|
||||||
|
|
||||||
|
5. You are not required to accept this License, since you have not
|
||||||
|
signed it. However, nothing else grants you permission to modify or
|
||||||
|
distribute the Program or its derivative works. These actions are
|
||||||
|
prohibited by law if you do not accept this License. Therefore, by
|
||||||
|
modifying or distributing the Program (or any work based on the
|
||||||
|
Program), you indicate your acceptance of this License to do so, and
|
||||||
|
all its terms and conditions for copying, distributing or modifying
|
||||||
|
the Program or works based on it.
|
||||||
|
|
||||||
|
6. Each time you redistribute the Program (or any work based on the
|
||||||
|
Program), the recipient automatically receives a license from the
|
||||||
|
original licensor to copy, distribute or modify the Program subject to
|
||||||
|
these terms and conditions. You may not impose any further
|
||||||
|
restrictions on the recipients' exercise of the rights granted herein.
|
||||||
|
You are not responsible for enforcing compliance by third parties to
|
||||||
|
this License.
|
||||||
|
|
||||||
|
7. If, as a consequence of a court judgment or allegation of patent
|
||||||
|
infringement or for any other reason (not limited to patent issues),
|
||||||
|
conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot
|
||||||
|
distribute so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you
|
||||||
|
may not distribute the Program at all. For example, if a patent
|
||||||
|
license would not permit royalty-free redistribution of the Program by
|
||||||
|
all those who receive copies directly or indirectly through you, then
|
||||||
|
the only way you could satisfy both it and this License would be to
|
||||||
|
refrain entirely from distribution of the Program.
|
||||||
|
|
||||||
|
If any portion of this section is held invalid or unenforceable under
|
||||||
|
any particular circumstance, the balance of the section is intended to
|
||||||
|
apply and the section as a whole is intended to apply in other
|
||||||
|
circumstances.
|
||||||
|
|
||||||
|
It is not the purpose of this section to induce you to infringe any
|
||||||
|
patents or other property right claims or to contest validity of any
|
||||||
|
such claims; this section has the sole purpose of protecting the
|
||||||
|
integrity of the free software distribution system, which is
|
||||||
|
implemented by public license practices. Many people have made
|
||||||
|
generous contributions to the wide range of software distributed
|
||||||
|
through that system in reliance on consistent application of that
|
||||||
|
system; it is up to the author/donor to decide if he or she is willing
|
||||||
|
to distribute software through any other system and a licensee cannot
|
||||||
|
impose that choice.
|
||||||
|
|
||||||
|
This section is intended to make thoroughly clear what is believed to
|
||||||
|
be a consequence of the rest of this License.
|
||||||
|
|
||||||
|
8. If the distribution and/or use of the Program is restricted in
|
||||||
|
certain countries either by patents or by copyrighted interfaces, the
|
||||||
|
original copyright holder who places the Program under this License
|
||||||
|
may add an explicit geographical distribution limitation excluding
|
||||||
|
those countries, so that distribution is permitted only in or among
|
||||||
|
countries not thus excluded. In such case, this License incorporates
|
||||||
|
the limitation as if written in the body of this License.
|
||||||
|
|
||||||
|
9. The Free Software Foundation may publish revised and/or new versions
|
||||||
|
of the General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Program
|
||||||
|
specifies a version number of this License which applies to it and "any
|
||||||
|
later version", you have the option of following the terms and conditions
|
||||||
|
either of that version or of any later version published by the Free
|
||||||
|
Software Foundation. If the Program does not specify a version number of
|
||||||
|
this License, you may choose any version ever published by the Free Software
|
||||||
|
Foundation.
|
||||||
|
|
||||||
|
10. If you wish to incorporate parts of the Program into other free
|
||||||
|
programs whose distribution conditions are different, write to the author
|
||||||
|
to ask for permission. For software which is copyrighted by the Free
|
||||||
|
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||||
|
make exceptions for this. Our decision will be guided by the two goals
|
||||||
|
of preserving the free status of all derivatives of our free software and
|
||||||
|
of promoting the sharing and reuse of software generally.
|
||||||
|
|
||||||
|
NO WARRANTY
|
||||||
|
|
||||||
|
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||||
|
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||||
|
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||||
|
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||||
|
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||||
|
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||||
|
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||||
|
REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||||
|
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||||
|
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||||
|
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||||
|
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||||
|
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||||
|
POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
convey the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
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; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
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 for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along
|
||||||
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program is interactive, make it output a short notice like this
|
||||||
|
when it starts in an interactive mode:
|
||||||
|
|
||||||
|
Gnomovision version 69, Copyright (C) year name of author
|
||||||
|
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, the commands you use may
|
||||||
|
be called something other than `show w' and `show c'; they could even be
|
||||||
|
mouse-clicks or menu items--whatever suits your program.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or your
|
||||||
|
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||||
|
necessary. Here is a sample; alter the names:
|
||||||
|
|
||||||
|
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||||
|
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||||
|
|
||||||
|
<signature of Ty Coon>, 1 April 1989
|
||||||
|
Ty Coon, President of Vice
|
||||||
|
|
||||||
|
This General Public License does not permit incorporating your program into
|
||||||
|
proprietary programs. If your program is a subroutine library, you may
|
||||||
|
consider it more useful to permit linking proprietary applications with the
|
||||||
|
library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License.
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#ifndef PARTTYPE_H
|
|
||||||
#define PARTTYPE_H
|
|
||||||
static enum PartType {Ball, Block, Cylinder};
|
|
||||||
#endif
|
|
||||||
@@ -1,220 +0,0 @@
|
|||||||
#include "PhysicalInstance.h"
|
|
||||||
#include "Globals.h"
|
|
||||||
GLfloat vertecies[96];
|
|
||||||
bool changed = true;
|
|
||||||
Box itemBox = Box();
|
|
||||||
|
|
||||||
PhysicalInstance::PhysicalInstance(void)
|
|
||||||
{
|
|
||||||
name = "Default PhysicalInstance";
|
|
||||||
className = "Part";
|
|
||||||
canCollide = true;
|
|
||||||
anchored = true;
|
|
||||||
size = Vector3(2,1,4);
|
|
||||||
setCFrame(CoordinateFrame(Vector3(0,0,0)));
|
|
||||||
color = Color3::gray();
|
|
||||||
velocity = Vector3(0,0,0);
|
|
||||||
rotVelocity = Vector3(0,0,0);
|
|
||||||
top = Smooth;
|
|
||||||
front = Smooth;
|
|
||||||
right = Smooth;
|
|
||||||
back = Smooth;
|
|
||||||
left = Smooth;
|
|
||||||
bottom = Smooth;
|
|
||||||
}
|
|
||||||
|
|
||||||
PhysicalInstance::PhysicalInstance(const PhysicalInstance &oinst)
|
|
||||||
{
|
|
||||||
name = oinst.name;
|
|
||||||
className = "Part";
|
|
||||||
canCollide = oinst.canCollide;
|
|
||||||
setParent(oinst.parent);
|
|
||||||
anchored = oinst.anchored;
|
|
||||||
size = oinst.size;
|
|
||||||
setCFrame(oinst.cFrame);
|
|
||||||
color = oinst.color;
|
|
||||||
velocity = oinst.velocity;
|
|
||||||
rotVelocity = oinst.rotVelocity;
|
|
||||||
top = oinst.top;
|
|
||||||
front = oinst.front;
|
|
||||||
right = oinst.right;
|
|
||||||
back = oinst.back;
|
|
||||||
left = oinst.left;
|
|
||||||
bottom = oinst.bottom;
|
|
||||||
}
|
|
||||||
|
|
||||||
void PhysicalInstance::setSize(Vector3 newSize)
|
|
||||||
{
|
|
||||||
int minsize = 1;
|
|
||||||
int maxsize = 512;
|
|
||||||
changed = true;
|
|
||||||
int sizex = (int)newSize.x;
|
|
||||||
if(sizex <= 0)
|
|
||||||
sizex = 1;
|
|
||||||
if(sizex > 512)
|
|
||||||
sizex = 512;
|
|
||||||
|
|
||||||
int sizey = (int)newSize.y;
|
|
||||||
if(sizey <= 0)
|
|
||||||
sizey = 1;
|
|
||||||
if(sizey > 512)
|
|
||||||
sizey = 512;
|
|
||||||
|
|
||||||
int sizez = (int)newSize.z;
|
|
||||||
if(sizez <= 0)
|
|
||||||
sizez = 1;
|
|
||||||
if(sizez > 512)
|
|
||||||
sizez = 512;
|
|
||||||
|
|
||||||
size = Vector3(sizex, sizey, sizez);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
Vector3 PhysicalInstance::getSize()
|
|
||||||
{
|
|
||||||
return size;
|
|
||||||
}
|
|
||||||
Vector3 PhysicalInstance::getPosition()
|
|
||||||
{
|
|
||||||
return position;
|
|
||||||
}
|
|
||||||
void PhysicalInstance::setPosition(Vector3 pos)
|
|
||||||
{
|
|
||||||
position = pos;
|
|
||||||
cFrame = CoordinateFrame(pos);
|
|
||||||
changed = true;
|
|
||||||
}
|
|
||||||
CoordinateFrame PhysicalInstance::getCFrame()
|
|
||||||
{
|
|
||||||
return cFrame;
|
|
||||||
}
|
|
||||||
void PhysicalInstance::setCFrame(CoordinateFrame coordinateFrame)
|
|
||||||
{
|
|
||||||
cFrame = coordinateFrame;
|
|
||||||
position = coordinateFrame.translation;
|
|
||||||
changed = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
CoordinateFrame PhysicalInstance::getCFrameRenderBased()
|
|
||||||
{
|
|
||||||
return CoordinateFrame(getCFrame().rotation,Vector3(getCFrame().translation.x/2, getCFrame().translation.y/2, getCFrame().translation.z/2));
|
|
||||||
}
|
|
||||||
|
|
||||||
Box PhysicalInstance::getBox()
|
|
||||||
{
|
|
||||||
if(changed)
|
|
||||||
{
|
|
||||||
Box box = Box(Vector3(0+size.x/4, 0+size.y/4, 0+size.z/4) ,Vector3(0-size.x/4,0-size.y/4,0-size.z/4));
|
|
||||||
CoordinateFrame c = getCFrameRenderBased();
|
|
||||||
itemBox = c.toWorldSpace(box);
|
|
||||||
Vector3 v0,v1,v2,v3;
|
|
||||||
for (int f = 0; f < 6; f++) {
|
|
||||||
itemBox.getFaceCorners(f, v0,v1,v2,v3);
|
|
||||||
vertecies[f*16] = v0.x;
|
|
||||||
vertecies[(f*16)+1] = v0.y;
|
|
||||||
vertecies[(f*16)+2] = v0.z;
|
|
||||||
vertecies[(f*16)+3] = v1.x;
|
|
||||||
vertecies[(f*16)+4] = v1.y;
|
|
||||||
vertecies[(f*16)+5] = v1.z;
|
|
||||||
vertecies[(f*16)+6] = v2.x;
|
|
||||||
vertecies[(f*16)+7] = v2.y;
|
|
||||||
vertecies[(f*16)+8] = v2.z;
|
|
||||||
vertecies[(f*16)+9] = v3.x;
|
|
||||||
vertecies[(f*16)+10] = v3.y;
|
|
||||||
vertecies[(f*16)+11] = v3.z;
|
|
||||||
vertecies[(f*16)+12] = color.r;
|
|
||||||
vertecies[(f*16)+13] = color.g;
|
|
||||||
vertecies[(f*16)+14] = color.b;
|
|
||||||
vertecies[(f*16)+15] = 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return itemBox;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool PhysicalInstance::collides(Box box)
|
|
||||||
{
|
|
||||||
return CollisionDetection::fixedSolidBoxIntersectsFixedSolidBox(getBox(), box);
|
|
||||||
}
|
|
||||||
|
|
||||||
void PhysicalInstance::render(RenderDevice* rd)
|
|
||||||
{
|
|
||||||
if(changed)
|
|
||||||
Box box = getBox();
|
|
||||||
|
|
||||||
glColor(color);
|
|
||||||
/*glEnable( GL_TEXTURE_2D );
|
|
||||||
glEnable(GL_BLEND);// you enable blending function
|
|
||||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
|
||||||
glBindTexture( GL_TEXTURE_2D, Globals::surfaceId);
|
|
||||||
glBegin(GL_QUADS);*/
|
|
||||||
for(int i = 0; i < 96; i+=16)
|
|
||||||
{
|
|
||||||
double add = 0.8;
|
|
||||||
Surface face;
|
|
||||||
if(i == 0)//Back
|
|
||||||
face = back;
|
|
||||||
else if(i == 16)//Right
|
|
||||||
face = right;
|
|
||||||
else if(i == 32)//Front
|
|
||||||
face = front;
|
|
||||||
else if(i == 48)//Top
|
|
||||||
face = top;
|
|
||||||
else if(i == 64)//Left
|
|
||||||
face = left;
|
|
||||||
else if(i == 80)//Bottom
|
|
||||||
face = bottom;
|
|
||||||
|
|
||||||
/*if(face == Snaps)
|
|
||||||
add = 0.0;
|
|
||||||
else if(face == Inlets)
|
|
||||||
add = 0.2;*/
|
|
||||||
|
|
||||||
Vector3 v0 = Vector3(vertecies[i], vertecies[i+1], vertecies[i+2]), v1 = Vector3(vertecies[i+3], vertecies[i+4], vertecies[i+5]), v3 = Vector3(vertecies[i+9], vertecies[i+10], vertecies[i+11]);
|
|
||||||
/*glNormal3fv((v1 - v0).cross(v3 - v0).direction());
|
|
||||||
glTexCoord2f(0.0F,0.0F);
|
|
||||||
glVertex3fv(v0);
|
|
||||||
glTexCoord2f(1.0F,0.0F);
|
|
||||||
glVertex3fv(v1);
|
|
||||||
glTexCoord2f(1.0F,0.25F);
|
|
||||||
glVertex3f(vertecies[i+6], vertecies[i+7], vertecies[i+8]);
|
|
||||||
glTexCoord2f(0.0F,0.25F);
|
|
||||||
glVertex3fv(v3);*/
|
|
||||||
|
|
||||||
glEnable( GL_TEXTURE_2D );
|
|
||||||
glEnable(GL_BLEND);// you enable blending function
|
|
||||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
|
||||||
glBindTexture( GL_TEXTURE_2D, Globals::surfaceId);
|
|
||||||
glBegin( GL_QUADS );
|
|
||||||
glNormal3fv((v1 - v0).cross(v3 - v0).direction());
|
|
||||||
glTexCoord2d(0.0,0.0+add);
|
|
||||||
glVertex3fv(v0);
|
|
||||||
glTexCoord2d( 1.0,0.0+add);
|
|
||||||
glVertex3fv(v1);
|
|
||||||
glTexCoord2d(1.0,0.2+add);
|
|
||||||
glVertex3f(vertecies[i+6], vertecies[i+7], vertecies[i+8]);
|
|
||||||
glTexCoord2d( 0.0,0.2+add);
|
|
||||||
glVertex3fv(v3);
|
|
||||||
glEnd();
|
|
||||||
glDisable( GL_TEXTURE_2D );
|
|
||||||
}
|
|
||||||
/*glEnd();
|
|
||||||
glDisable(GL_TEXTURE_2D);*/
|
|
||||||
glColor(Color3::white());
|
|
||||||
if(!children.empty())
|
|
||||||
{
|
|
||||||
for(size_t i = 0; i < children.size(); i++)
|
|
||||||
{
|
|
||||||
children.at(i)->render(rd);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
PhysicalInstance::~PhysicalInstance(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
#include "instance.h"
|
|
||||||
#include "Surface.h"
|
|
||||||
|
|
||||||
class PhysicalInstance :
|
|
||||||
public Instance
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
PhysicalInstance(void);
|
|
||||||
PhysicalInstance(const PhysicalInstance &oinst);
|
|
||||||
Instance* clone() const { return new PhysicalInstance(*this); }
|
|
||||||
~PhysicalInstance(void);
|
|
||||||
virtual void render(RenderDevice*);
|
|
||||||
Vector3 velocity;
|
|
||||||
Surface top;
|
|
||||||
Surface front;
|
|
||||||
Surface right;
|
|
||||||
Surface back;
|
|
||||||
Surface left;
|
|
||||||
Surface bottom;
|
|
||||||
CoordinateFrame cFrame;
|
|
||||||
Color3 color;
|
|
||||||
Vector3 getPosition();
|
|
||||||
void setPosition(Vector3);
|
|
||||||
CoordinateFrame getCFrame();
|
|
||||||
void setCFrame(CoordinateFrame);
|
|
||||||
Box getBox();
|
|
||||||
Box getScaledBox();
|
|
||||||
CoordinateFrame getCFrameRenderBased();
|
|
||||||
Vector3 getSize();
|
|
||||||
void setSize(Vector3);
|
|
||||||
bool canCollide;
|
|
||||||
bool anchored;
|
|
||||||
Vector3 rotVelocity;
|
|
||||||
bool collides(Box);
|
|
||||||
private:
|
|
||||||
Vector3 position;
|
|
||||||
Vector3 size;
|
|
||||||
};
|
|
||||||
@@ -1,109 +0,0 @@
|
|||||||
#include <windows.h>
|
|
||||||
#include "WindowFunctions.h"
|
|
||||||
#include "propertyGrid.h"
|
|
||||||
#include "resource.h"
|
|
||||||
#include "PropertyWindow.h"
|
|
||||||
|
|
||||||
LRESULT CALLBACK PropProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|
||||||
{
|
|
||||||
PropertyWindow *propWind = (PropertyWindow *)GetWindowLongPtr(hwnd, GWL_USERDATA);
|
|
||||||
if (propWind==NULL)
|
|
||||||
{
|
|
||||||
return DefWindowProc(hwnd, msg, wParam, lParam);
|
|
||||||
}
|
|
||||||
switch(msg)
|
|
||||||
{
|
|
||||||
case WM_SIZE:
|
|
||||||
{
|
|
||||||
propWind->onResize();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
return DefWindowProc(hwnd, msg, wParam, lParam);
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool PropertyWindow::onCreate(int x, int y, int sx, int sy, HMODULE hThisInstance) {
|
|
||||||
|
|
||||||
if (!createWindowClass("propHWND",PropProc,hThisInstance))
|
|
||||||
return false;
|
|
||||||
_hwndProp = CreateWindowEx(
|
|
||||||
WS_EX_TOOLWINDOW,
|
|
||||||
"propHWND",
|
|
||||||
"Prop Test",
|
|
||||||
WS_VISIBLE | WS_POPUPWINDOW | WS_THICKFRAME | WS_CAPTION,
|
|
||||||
CW_USEDEFAULT,
|
|
||||||
CW_USEDEFAULT,
|
|
||||||
300,
|
|
||||||
660,
|
|
||||||
NULL, // parent
|
|
||||||
NULL, // menu
|
|
||||||
hThisInstance,
|
|
||||||
NULL
|
|
||||||
);
|
|
||||||
|
|
||||||
_propGrid = New_PropertyGrid(_hwndProp,IDC_PROPERTYGRID);
|
|
||||||
|
|
||||||
PROPGRIDITEM pItem;
|
|
||||||
PropGrid_ItemInit(pItem);
|
|
||||||
|
|
||||||
pItem.lpszCatalog="Test";
|
|
||||||
pItem.lpszPropName="Offset";
|
|
||||||
pItem.lpszzCmbItems="What";
|
|
||||||
pItem.lpszPropDesc="Description";
|
|
||||||
pItem.lpCurValue=(LPARAM)"0, 0, 0";
|
|
||||||
|
|
||||||
pItem.iItemType=PIT_EDIT;
|
|
||||||
|
|
||||||
PROPGRIDITEM pItem2;
|
|
||||||
PropGrid_ItemInit(pItem2);
|
|
||||||
|
|
||||||
pItem2.lpszCatalog="Test";
|
|
||||||
pItem2.lpszPropName="s";
|
|
||||||
pItem2.lpszzCmbItems="itemlist\0itemlist2\0itemlist3";
|
|
||||||
pItem2.lpszPropDesc="";
|
|
||||||
pItem2.lpCurValue=0;
|
|
||||||
|
|
||||||
pItem2.iItemType=PIT_COMBO;
|
|
||||||
|
|
||||||
/*PROPGRIDITEM FauxExplorerItem;
|
|
||||||
PropGrid_ItemInit(FauxExplorerItem);
|
|
||||||
FauxExplorerItem.lpszCatalog="Test";
|
|
||||||
FauxExplorerItem.lpszPropName = "Editable Combo Field";
|
|
||||||
FauxExplorerItem.lpszzCmbItems = "Test1\0Test2\0Test3";
|
|
||||||
FauxExplorerItem.lpszPropDesc = "Press F4 to view drop down.";
|
|
||||||
FauxExplorerItem.iItemType = PIT_EDITCOMBO;
|
|
||||||
FauxExplorerItem.lpCurValue = 1;
|
|
||||||
PropGrid_AddItem(_propGrid, &FauxExplorerItem);*/
|
|
||||||
|
|
||||||
PropGrid_Enable(_propGrid,true);
|
|
||||||
ShowWindow(_propGrid,SW_SHOW);
|
|
||||||
PropGrid_AddItem(_propGrid,&pItem);
|
|
||||||
PropGrid_AddItem(_propGrid,&pItem2);
|
|
||||||
PropGrid_SetItemHeight(_propGrid,20);
|
|
||||||
PropGrid_ShowToolTips(_propGrid,TRUE);
|
|
||||||
PropGrid_ShowPropertyDescriptions(_propGrid,TRUE);
|
|
||||||
PropGrid_ExpandAllCatalogs(_propGrid);
|
|
||||||
|
|
||||||
SetWindowLongPtr(_propGrid,GWL_USERDATA,(LONG)this);
|
|
||||||
_redraw();
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
PropertyWindow::PropertyWindow(int x, int y, int sx, int sy, HMODULE hThisInstance) {
|
|
||||||
onCreate(x, y, sx, sy, hThisInstance);
|
|
||||||
}
|
|
||||||
|
|
||||||
void PropertyWindow::onResize()
|
|
||||||
{
|
|
||||||
_redraw();
|
|
||||||
}
|
|
||||||
|
|
||||||
void PropertyWindow::_redraw()
|
|
||||||
{
|
|
||||||
RECT rect;
|
|
||||||
GetClientRect(_hwndProp,&rect);
|
|
||||||
SetWindowPos(_propGrid, NULL, 0, 20, rect.right, rect.bottom-20, SWP_NOZORDER | SWP_NOACTIVATE);
|
|
||||||
}
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#ifndef SOUNDTYPE_H
|
|
||||||
#define SOUNDTYPE_H
|
|
||||||
static enum SoundType {NoSound, Boing, Bomb, Break, Click, Clock, Slingshot, Page, Ping, Snap, Splat, Step, StepOn, Swoosh, Victory};
|
|
||||||
#endif
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#ifndef SURFACE_H
|
|
||||||
#define SURFACE_H
|
|
||||||
static enum Surface {Smooth, Snaps, Inlets, Glue, Weld, Hinge, Motor};
|
|
||||||
#endif
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#ifndef SURFACECONSTRAINT_H
|
|
||||||
#define SURFACECONSTRAINT_H
|
|
||||||
static enum SurfaceConstraint {None, Hinge, SteppingMotor, Motor};
|
|
||||||
#endif
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#ifndef SURFACETYPE_H
|
|
||||||
#define SURFACETYPE_H
|
|
||||||
static enum SurfaceType {Smooth, Bumps, Weld, Snaps, Inlet};
|
|
||||||
#endif
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
#include "instance.h"
|
|
||||||
|
|
||||||
class WorkspaceInstance :
|
|
||||||
public Instance
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
float timer;
|
|
||||||
int score;
|
|
||||||
WorkspaceInstance(void);
|
|
||||||
~WorkspaceInstance(void);
|
|
||||||
};
|
|
||||||
BIN
content/images/ArrowCursor.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
content/images/ArrowFarCursor.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
content/images/BumpTool.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
content/images/BumpTool_dn.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
content/images/Clone.png
Normal file
|
After Width: | Height: | Size: 6.1 KiB |
BIN
content/images/GameTool.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
content/images/GlueTool.png
Normal file
|
After Width: | Height: | Size: 950 B |
BIN
content/images/GlueTool_dn.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
content/images/Grab.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
content/images/GrabRotateCursor.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
content/images/Hammer.png
Normal file
|
After Width: | Height: | Size: 5.2 KiB |
BIN
content/images/Laser.png
Normal file
|
After Width: | Height: | Size: 7.8 KiB |
BIN
content/images/RightMotorFastTool.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
content/images/RightMotorFastTool_dn.png
Normal file
|
After Width: | Height: | Size: 4.4 KiB |
BIN
content/images/RightMotorTool.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
content/images/RightMotorTool_dn.png
Normal file
|
After Width: | Height: | Size: 4.4 KiB |
BIN
content/images/Rocket.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
content/images/Slingshot.png
Normal file
|
After Width: | Height: | Size: 6.0 KiB |
BIN
content/images/SmoothTool.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
content/images/SmoothTool_dn.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
122
content/page/color.html
Normal file
@@ -0,0 +1,122 @@
|
|||||||
|
<html>
|
||||||
|
<script>
|
||||||
|
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
img{
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.container
|
||||||
|
{
|
||||||
|
height: 47px;
|
||||||
|
width: 50px;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
.color
|
||||||
|
{
|
||||||
|
border-style: inset;
|
||||||
|
border-width: 2px;
|
||||||
|
width:16px;
|
||||||
|
height:16px;
|
||||||
|
font-size: 0;
|
||||||
|
|
||||||
|
display:inline-block;
|
||||||
|
*display:inline;
|
||||||
|
*zoom:1;
|
||||||
|
}
|
||||||
|
#currentcolor
|
||||||
|
{
|
||||||
|
width; 80%;
|
||||||
|
height: 80%;
|
||||||
|
border-style: inset;
|
||||||
|
border-width: 2px;
|
||||||
|
}
|
||||||
|
.colorPicker
|
||||||
|
{
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<script>
|
||||||
|
var currentcolor = "white"; //This will be queried from the application later
|
||||||
|
function setColor(btn)
|
||||||
|
{
|
||||||
|
var color = btn.style.backgroundColor;
|
||||||
|
var clInt = parseInt(color.replace("#","0x"));
|
||||||
|
document.getElementById("currentcolor").style.backgroundColor = color;
|
||||||
|
window.external.SetColor(clInt);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function decimalColorToHTMLcolor(number) {
|
||||||
|
//Found at https://bytes.com/topic/javascript/insights/636088-function-convert-decimal-color-number-into-html-hex-color-string
|
||||||
|
var intnumber = number - 0;
|
||||||
|
var red, green, blue;
|
||||||
|
var template = "#000000";
|
||||||
|
red = (intnumber&0x0000ff) << 16;
|
||||||
|
green = intnumber&0x00ff00;
|
||||||
|
blue = (intnumber&0xff0000) >>> 16;
|
||||||
|
intnumber = red|green|blue;
|
||||||
|
var HTMLcolor = intnumber.toString(16);
|
||||||
|
HTMLcolor = template.substring(0,7 - HTMLcolor.length) + HTMLcolor;
|
||||||
|
return HTMLcolor;
|
||||||
|
}
|
||||||
|
|
||||||
|
function hex2decInt(hex)
|
||||||
|
{
|
||||||
|
return parseInt(hex, 16);
|
||||||
|
}
|
||||||
|
|
||||||
|
function queryColor()
|
||||||
|
{
|
||||||
|
var color = window.external.ChooseColor();
|
||||||
|
if(color != null)
|
||||||
|
{
|
||||||
|
color = decimalColorToHTMLcolor(color);
|
||||||
|
document.getElementById("currentcolor").style.backgroundColor = color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<body style="background-color: ButtonFace; margin: 0; padding: 5px; overflow: hidden; border: outset 2px;">
|
||||||
|
<table height="100%">
|
||||||
|
<tr>
|
||||||
|
<th>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #000000"></div>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #808080"></div>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #800000"></div>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #808000"></div>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #008000"></div>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #008080"></div>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #000080"></div>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #800080"></div>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #808040"></div>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #004040"></div>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #0080FF"></div>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #004080"></div>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #8000FF"></div>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #804000"></div><br>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #FFFFFF"></div>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #C0C0C0"></div>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #FF0000"></div>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #FFFF00"></div>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #00FF00"></div>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #00FFFF"></div>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #0000FF"></div>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #FF00FF"></div>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #FFFF80"></div>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #00FF80"></div>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #80FFFF"></div>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #8080FF"></div>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #FF0080"></div>
|
||||||
|
<div class="color" onclick="setColor(this)" style="background-color: #FF8040"></div>
|
||||||
|
</th>
|
||||||
|
<td>
|
||||||
|
<button onclick="queryColor();" class='colorPicker'>
|
||||||
|
<div id='currentcolor' style="background-color:white;">
|
||||||
|
</button>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
21
content/page/controller.html
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
<html>
|
||||||
|
<script>
|
||||||
|
function toolOvr(image)
|
||||||
|
{
|
||||||
|
if(image.src.indexOf("_dn.png") == -1)
|
||||||
|
image.src = image.src.replace(".png", "_dn.png");
|
||||||
|
}
|
||||||
|
function toolOut(image)
|
||||||
|
{
|
||||||
|
if(image.src.indexOf("_dn.png") != -1)
|
||||||
|
image.src = image.src.replace("_dn.png",".png");
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<body style="background-color: ButtonFace; margin: 0; padding: 5px; overflow: hidden; border: outset 2px;">
|
||||||
|
<img src="../images/Controller1Tool.png" onclick="window.external.SetController(1)" onmousedown="toolOvr(this)" onmouseup="toolOut(this)"/>
|
||||||
|
<img src="../images/Controller2Tool.png" onclick="window.external.SetController(2)" onmousedown="toolOvr(this)" onmouseup="toolOut(this)"/>
|
||||||
|
<img src="../images/ControllerAI1Tool.png" onclick="window.external.SetController(5)" onmousedown="toolOvr(this)" onmouseup="toolOut(this)"/>
|
||||||
|
<img src="../images/ControllerAI2Tool.png" onclick="window.external.SetController(6)" onmousedown="toolOvr(this)" onmouseup="toolOut(this)"/>
|
||||||
|
<img src="../images/ControllerNoneTool.png" onclick="window.external.SetController(0)" onmousedown="toolOvr(this)" onmouseup="toolOut(this)"/>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
47
content/page/hopper.html
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
<html>
|
||||||
|
<script>
|
||||||
|
function toolOvr(image)
|
||||||
|
{
|
||||||
|
image.style.backgroundColor = "#cccccc";
|
||||||
|
}
|
||||||
|
function toolOut(image)
|
||||||
|
{
|
||||||
|
|
||||||
|
image.style.backgroundColor = "transparent";
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
img{
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.container
|
||||||
|
{
|
||||||
|
height: 47px;
|
||||||
|
width: 50px;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<body style="background-color: ButtonFace; margin: 0; padding: 5px; overflow: hidden; border: outset 2px;">
|
||||||
|
<span class="container" onmousedown="toolOvr(this)" onmouseup="toolOut(this)" onmouseout="toolOut(this)" onclick="alert(window.external.ToggleHopperBin(0))">
|
||||||
|
<img src="../images/GameTool.png" />
|
||||||
|
</span>
|
||||||
|
<span class="container" onmousedown="toolOvr(this)" onmouseup="toolOut(this)" onmouseout="toolOut(this)" onclick="window.external.ToggleHopperBin(1)">
|
||||||
|
<img src="../images/Grab.png" />
|
||||||
|
</span>
|
||||||
|
<span class="container" onmousedown="toolOvr(this)" onmouseup="toolOut(this)" onmouseout="toolOut(this)" onclick="window.external.ToggleHopperBin(2)">
|
||||||
|
<img src="../images/Clone.png" />
|
||||||
|
</span>
|
||||||
|
<span class="container" onmousedown="toolOvr(this)" onmouseup="toolOut(this)" onmouseout="toolOut(this)" onclick="window.external.ToggleHopperBin(3)">
|
||||||
|
<img src="../images/Hammer.png" />
|
||||||
|
</span>
|
||||||
|
<span class="container" onmousedown="toolOvr(this)" onmouseup="toolOut(this)" onmouseout="toolOut(this)" onclick="window.external.ToggleHopperBin(4)">
|
||||||
|
<img src="../images/Slingshot.png" />
|
||||||
|
</span>
|
||||||
|
<span class="container" onmousedown="toolOvr(this)" onmouseup="toolOut(this)" onmouseout="toolOut(this)" onclick="window.external.ToggleHopperBin(5)">
|
||||||
|
<img src="../images/Rocket.png" />
|
||||||
|
</span>
|
||||||
|
<span class="container" onmousedown="toolOvr(this)" onmouseup="toolOut(this)" onmouseout="toolOut(this)" onclick="window.external.ToggleHopperBin(6)">
|
||||||
|
<img src="../images/Laser.png" />
|
||||||
|
</span>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
23
content/page/surface.html
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<html>
|
||||||
|
<script>
|
||||||
|
function toolOvr(image)
|
||||||
|
{
|
||||||
|
if(image.src.indexOf("_dn.png") == -1)
|
||||||
|
image.src = image.src.replace(".png", "_dn.png");
|
||||||
|
}
|
||||||
|
function toolOut(image)
|
||||||
|
{
|
||||||
|
if(image.src.indexOf("_dn.png") != -1)
|
||||||
|
image.src = image.src.replace("_dn.png",".png");
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<body style="background-color: ButtonFace; margin: 0; padding: 5px; overflow: hidden; border: outset 2px;">
|
||||||
|
<img src="../images/FlatTool.png" onmouseout="toolOut(this)" onclick="window.external.SetSurface(0, 0)" onmousedown="toolOvr(this)" onmouseup="toolOut(this)"/>
|
||||||
|
<img src="../images/BumpTool.png" onmouseout="toolOut(this)" onclick="window.external.SetSurface(1, 0)" onmousedown="toolOvr(this)" onmouseup="toolOut(this)"/>
|
||||||
|
<img src="../images/HingeTool.png" onmouseout="toolOut(this)" onclick="window.external.SetSurface(2, 0)" onmousedown="toolOvr(this)" onmouseup="toolOut(this)"/>
|
||||||
|
<img src="../images/LeftMotorTool.png" onmouseout="toolOut(this)" onclick="window.external.SetSurface(3, 1)" onmousedown="toolOvr(this)" onmouseup="toolOut(this)"/>
|
||||||
|
<img src="../images/LeftMotorFastTool.png" onmouseout="toolOut(this)" onclick="window.external.SetSurface(3, 2)" onmousedown="toolOvr(this)" onmouseup="toolOut(this)"/>
|
||||||
|
<img src="../images/RightMotorTool.png" onmouseout="toolOut(this)" onclick="window.external.SetSurface(3, 3)" onmousedown="toolOvr(this)" onmouseup="toolOut(this)"/>
|
||||||
|
<img src="../images/RightMotorFastTool.png" onmouseout="toolOut(this)" onclick="window.external.SetSurface(3, 4)" onmousedown="toolOvr(this)" onmouseup="toolOut(this)"/>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
2051
resource.h
BIN
roblox_RN1_icon.ico
Normal file
|
After Width: | Height: | Size: 29 KiB |
@@ -1,13 +1,24 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <G3DAll.h>
|
#include <G3DAll.h>
|
||||||
#include "CameraController.h"
|
|
||||||
#include "PropertyWindow.h"
|
#include "PropertyWindow.h"
|
||||||
|
#include "DataModelV2/TextButtonInstance.h"
|
||||||
|
#include "DataModelV2/ImageButtonInstance.h"
|
||||||
|
#include "CameraController.h"
|
||||||
|
#include "IEBrowser.h"
|
||||||
|
#include "Mouse.h"
|
||||||
|
#include "Tool/Tool.h"
|
||||||
|
//#include "GuiRoot.h"
|
||||||
|
|
||||||
class Demo { // : public GApp {
|
class TextButtonInstance;
|
||||||
|
class ImageButtonInstance;
|
||||||
|
class PartInstance;
|
||||||
|
class CameraController;
|
||||||
|
|
||||||
|
class Application { // : public GApp {
|
||||||
public:
|
public:
|
||||||
Demo(const GAppSettings& settings,HWND parentWindow);
|
Application(HWND parentWindow);
|
||||||
void Boop();
|
void Boop();
|
||||||
virtual ~Demo() {}
|
virtual ~Application() {}
|
||||||
virtual void exitApplication();
|
virtual void exitApplication();
|
||||||
virtual void onInit();
|
virtual void onInit();
|
||||||
virtual void onLogic();
|
virtual void onLogic();
|
||||||
@@ -16,8 +27,13 @@ class Demo { // : public GApp {
|
|||||||
virtual void onGraphics(RenderDevice* rd);
|
virtual void onGraphics(RenderDevice* rd);
|
||||||
virtual void onUserInput(UserInput* ui);
|
virtual void onUserInput(UserInput* ui);
|
||||||
virtual void onCleanup();
|
virtual void onCleanup();
|
||||||
|
void clearInstances();
|
||||||
|
void navigateToolbox(std::string);
|
||||||
|
PartInstance* makePart();
|
||||||
|
void drawButtons(RenderDevice* rd);
|
||||||
|
void drawOutline(Vector3 from, Vector3 to, RenderDevice* rd, LightingParameters lighting, Vector3 size, Vector3 pos, CoordinateFrame c);
|
||||||
std::vector<Instance*> getSelection();
|
std::vector<Instance*> getSelection();
|
||||||
|
void deleteInstance();
|
||||||
void run();
|
void run();
|
||||||
void QuitApp();
|
void QuitApp();
|
||||||
void resizeWithParent(HWND parentWindow);
|
void resizeWithParent(HWND parentWindow);
|
||||||
@@ -25,17 +41,29 @@ class Demo { // : public GApp {
|
|||||||
void onKeyPressed(int key);
|
void onKeyPressed(int key);
|
||||||
void onKeyUp(int key);
|
void onKeyUp(int key);
|
||||||
void onMouseLeftPressed(HWND hwnd,int x, int y);
|
void onMouseLeftPressed(HWND hwnd,int x, int y);
|
||||||
void onMouseLeftUp(int x, int y);
|
void onMouseLeftUp(RenderDevice* renderDevice, int x, int y);
|
||||||
void onMouseRightPressed(int x, int y);
|
void onMouseRightPressed(int x, int y);
|
||||||
void onMouseRightUp(int x, int y);
|
void onMouseRightUp(int x, int y);
|
||||||
void onMouseMoved(int x, int y);
|
void onMouseMoved(int x, int y);
|
||||||
void onMouseWheel(int x, int y, short delta);
|
void onMouseWheel(int x, int y, short delta);
|
||||||
|
void setFocus(bool isFocused);
|
||||||
|
int getMode();
|
||||||
|
void unSetMode();
|
||||||
CameraController cameraController;
|
CameraController cameraController;
|
||||||
RenderDevice* renderDevice;
|
|
||||||
UserInput* userInput;
|
UserInput* userInput;
|
||||||
|
PropertyWindow* _propWindow;
|
||||||
|
void generateShadowMap(const CoordinateFrame& lightViewMatrix) const;
|
||||||
|
RenderDevice* getRenderDevice();
|
||||||
|
void selectInstance(Instance* selectedInstance,PropertyWindow* propWindow);
|
||||||
|
void setMode(int mode);
|
||||||
|
|
||||||
|
Tool * tool;
|
||||||
|
void changeTool(Tool *);
|
||||||
|
Mouse mouse;
|
||||||
private:
|
private:
|
||||||
void initGUI();
|
bool mouseMoveState;
|
||||||
|
RenderDevice* renderDevice;
|
||||||
|
//void initGUI();
|
||||||
HWND _hWndMain;
|
HWND _hWndMain;
|
||||||
SkyRef sky;
|
SkyRef sky;
|
||||||
bool quit;
|
bool quit;
|
||||||
@@ -46,7 +74,14 @@ class Demo { // : public GApp {
|
|||||||
HWND _hwndToolbox;
|
HWND _hwndToolbox;
|
||||||
HWND _buttonTest;
|
HWND _buttonTest;
|
||||||
HWND _hwndRenderer;
|
HWND _hwndRenderer;
|
||||||
PropertyWindow* _propWindow;
|
DataModelInstance* _dataModel;
|
||||||
|
G3D::TextureRef shadowMap;
|
||||||
|
std::string _title;
|
||||||
|
bool _dragging;
|
||||||
|
int _mode;
|
||||||
|
GAppSettings _settings;
|
||||||
|
double lightProjX, lightProjY, lightProjNear, lightProjFar;
|
||||||
|
IEBrowser* webBrowser;
|
||||||
protected:
|
protected:
|
||||||
Stopwatch m_graphicsWatch;
|
Stopwatch m_graphicsWatch;
|
||||||
Stopwatch m_logicWatch;
|
Stopwatch m_logicWatch;
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <G3DAll.h>
|
#include <G3DAll.h>
|
||||||
#include "Instance.h"
|
#include "DataModelV2/Instance.h"
|
||||||
#include "Globals.h"
|
#include "Globals.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#define CAM_ZOOM_MIN 0.1f
|
#define CAM_ZOOM_MIN 0.1f
|
||||||
#define CAM_ZOOM_MAX 100.f
|
#define CAM_ZOOM_MAX 100.f
|
||||||
|
|
||||||
class Demo;
|
class Application;
|
||||||
|
|
||||||
class CameraController {
|
class CameraController {
|
||||||
public:
|
public:
|
||||||
@@ -19,7 +19,8 @@ class CameraController {
|
|||||||
void lookAt(const Vector3& position);
|
void lookAt(const Vector3& position);
|
||||||
void refreshZoom(const CoordinateFrame& frame);
|
void refreshZoom(const CoordinateFrame& frame);
|
||||||
void pan(CoordinateFrame* frame,float spdX,float spdY);
|
void pan(CoordinateFrame* frame,float spdX,float spdY);
|
||||||
void update(Demo* demo);
|
void panLock(CoordinateFrame* frame,float spdX,float spdY);
|
||||||
|
void update(Application* app);
|
||||||
void centerCamera(Instance* selection);
|
void centerCamera(Instance* selection);
|
||||||
void panLeft();
|
void panLeft();
|
||||||
void panRight();
|
void panRight();
|
||||||
@@ -1,8 +1,10 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "instance.h"
|
#include "Instance.h"
|
||||||
#pragma once
|
#include "Listener/ButtonListener.h"
|
||||||
#include "ButtonListener.h"
|
|
||||||
class ButtonListener;
|
class ButtonListener;
|
||||||
|
class Instance;
|
||||||
|
|
||||||
class BaseButtonInstance : public Instance
|
class BaseButtonInstance : public Instance
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -12,11 +14,11 @@ public:
|
|||||||
virtual void drawObj(RenderDevice* rd, Vector2 mousePos, bool mouseDown);
|
virtual void drawObj(RenderDevice* rd, Vector2 mousePos, bool mouseDown);
|
||||||
virtual bool mouseInButton(float, float, RenderDevice* rd);
|
virtual bool mouseInButton(float, float, RenderDevice* rd);
|
||||||
virtual void onMouseClick();
|
virtual void onMouseClick();
|
||||||
void setButtonListener(ButtonListener*);
|
void setButtonListener(ButtonListener&);
|
||||||
bool floatBottom;
|
bool floatBottom;
|
||||||
bool floatRight;
|
bool floatRight;
|
||||||
bool floatCenter;
|
bool floatCenter;
|
||||||
bool disabled;
|
volatile bool disabled;
|
||||||
bool selected;
|
bool selected;
|
||||||
protected:
|
protected:
|
||||||
bool mouseInArea(float, float, float, float, float, float);
|
bool mouseInArea(float, float, float, float, float, float);
|
||||||
49
src/include/DataModelV2/BaseGuiInstance.h
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
#pragma once
|
||||||
|
#include "Instance.h"
|
||||||
|
|
||||||
|
struct UDim
|
||||||
|
{
|
||||||
|
float scale;
|
||||||
|
float offset;
|
||||||
|
UDim()
|
||||||
|
{
|
||||||
|
scale = offset = 0;
|
||||||
|
}
|
||||||
|
UDim(float scale_, float offset_)
|
||||||
|
{
|
||||||
|
scale = scale_;
|
||||||
|
offset = offset_;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
struct UDim2
|
||||||
|
{
|
||||||
|
UDim x;
|
||||||
|
UDim y;
|
||||||
|
UDim2(UDim x_, UDim y_)
|
||||||
|
{
|
||||||
|
x = x_;
|
||||||
|
y = y_;
|
||||||
|
}
|
||||||
|
UDim2(float scale_x, float offset_x, float scale_y, float offset_y)
|
||||||
|
{
|
||||||
|
x = UDim(scale_x, offset_x);
|
||||||
|
y = UDim(scale_y, offset_y);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
class Instance;
|
||||||
|
|
||||||
|
class BaseGuiInstance : public Instance
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
BaseGuiInstance(void);
|
||||||
|
virtual ~BaseGuiInstance(void);
|
||||||
|
virtual void render(RenderDevice* rd);
|
||||||
|
virtual bool mouseHovered(float, float, RenderDevice* rd);
|
||||||
|
UDim2 position;
|
||||||
|
UDim2 size;
|
||||||
|
protected:
|
||||||
|
bool mouseInArea(float, float, float, float, float, float);
|
||||||
|
class ButtonListener* listener;
|
||||||
|
};
|
||||||
57
src/include/DataModelV2/DataModelInstance.h
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
#pragma once
|
||||||
|
#include "WorkspaceInstance.h"
|
||||||
|
#include "LevelInstance.h"
|
||||||
|
#include "PartInstance.h"
|
||||||
|
#include "rapidxml/rapidxml.hpp"
|
||||||
|
#include "GuiRootInstance.h"
|
||||||
|
|
||||||
|
class GuiRootInstance;
|
||||||
|
|
||||||
|
class DataModelInstance :
|
||||||
|
public Instance
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
DataModelInstance(void);
|
||||||
|
~DataModelInstance(void);
|
||||||
|
void setMessage(std::string);
|
||||||
|
void setMessageBrickCount();
|
||||||
|
void clearMessage();
|
||||||
|
bool debugGetOpen();
|
||||||
|
bool getOpen();
|
||||||
|
bool load(const char* filename,bool clearObjects);
|
||||||
|
bool readXMLFileStream(std::ifstream* file);
|
||||||
|
void drawMessage(RenderDevice*);
|
||||||
|
WorkspaceInstance* getWorkspace();
|
||||||
|
LevelInstance * getLevel();
|
||||||
|
std::string message;
|
||||||
|
std::string _loadedFileName;
|
||||||
|
bool showMessage;
|
||||||
|
G3D::GFontRef font;
|
||||||
|
GuiRootInstance* getGuiRoot();
|
||||||
|
//float mousex;
|
||||||
|
//float mousey;
|
||||||
|
//Vector2 getMousePos();
|
||||||
|
//void setMousePos(int x,int y);
|
||||||
|
//void setMousePos(Vector2 pos);
|
||||||
|
//bool mouseButton1Down;
|
||||||
|
PartInstance* makePart();
|
||||||
|
void clearLevel();
|
||||||
|
void toggleRun();
|
||||||
|
bool isRunning();
|
||||||
|
#if _DEBUG
|
||||||
|
void modXMLLevel(float modY);
|
||||||
|
#endif
|
||||||
|
private:
|
||||||
|
bool isBrickCount;
|
||||||
|
bool scanXMLObject(rapidxml::xml_node<>* node);
|
||||||
|
rapidxml::xml_node<>* getNode(rapidxml::xml_node<> * node,const char* name );
|
||||||
|
float getFloatValue(rapidxml::xml_node<> * node,const char* name);
|
||||||
|
bool _successfulLoad;
|
||||||
|
std::string _errMsg;
|
||||||
|
bool _legacyLoad;
|
||||||
|
float _modY;
|
||||||
|
WorkspaceInstance* workspace;
|
||||||
|
LevelInstance * level;
|
||||||
|
GuiRootInstance* guiRoot;
|
||||||
|
bool running;
|
||||||
|
};
|
||||||
16
src/include/DataModelV2/GroupInstance.h
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#pragma once
|
||||||
|
#include "PartInstance.h"
|
||||||
|
|
||||||
|
class GroupInstance :
|
||||||
|
public PVInstance
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
GroupInstance(void);
|
||||||
|
~GroupInstance(void);
|
||||||
|
GroupInstance(const GroupInstance &oinst);
|
||||||
|
virtual std::vector<PROPGRIDITEM> getProperties();
|
||||||
|
virtual void PropUpdate(LPPROPGRIDITEM &pItem);
|
||||||
|
std::vector<Instance *> unGroup();
|
||||||
|
PartInstance * primaryPart;
|
||||||
|
void render(RenderDevice * r);
|
||||||
|
};
|
||||||
24
src/include/DataModelV2/GuiRootInstance.h
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
#pragma once
|
||||||
|
#include "Instance.h"
|
||||||
|
|
||||||
|
class ImageButtonInstance;
|
||||||
|
|
||||||
|
class TextButtonInstance;
|
||||||
|
|
||||||
|
class GuiRootInstance : public Instance
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
GuiRootInstance();
|
||||||
|
GuiRootInstance::~GuiRootInstance();
|
||||||
|
TextButtonInstance* makeTextButton();
|
||||||
|
void drawButtons(RenderDevice* rd);
|
||||||
|
ImageButtonInstance* makeImageButton(G3D::TextureRef newImage, G3D::TextureRef overImage, G3D::TextureRef downImage, G3D::TextureRef disableImage);
|
||||||
|
void renderGUI(G3D::RenderDevice* rd, double fps);
|
||||||
|
void setDebugMessage(std::string msg, G3D::RealTime msgTime);
|
||||||
|
void update();
|
||||||
|
bool mouseInGUI(G3D::RenderDevice* renderDevice,int x,int y);
|
||||||
|
void onMouseLeftUp(G3D::RenderDevice* renderDevice, int x,int y);
|
||||||
|
private:
|
||||||
|
std::string _message;
|
||||||
|
G3D::RealTime _messageTime;
|
||||||
|
};
|
||||||
@@ -1,5 +1,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "BaseButtonInstance.h"
|
#include "BaseButtonInstance.h"
|
||||||
|
|
||||||
|
class BaseButtonInstance;
|
||||||
|
|
||||||
class ImageButtonInstance : public BaseButtonInstance
|
class ImageButtonInstance : public BaseButtonInstance
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -1,25 +1,38 @@
|
|||||||
#include <G3DAll.h>
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
#include <G3DAll.h>
|
||||||
|
#include "propertyGrid.h"
|
||||||
|
#include "map"
|
||||||
|
//#include "Properties/BoolProperty.h"
|
||||||
|
|
||||||
class Instance
|
class Instance
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
bool canDelete;
|
||||||
Instance(void);
|
Instance(void);
|
||||||
Instance(const Instance&);
|
Instance(const Instance&);
|
||||||
virtual ~Instance(void);
|
virtual ~Instance(void);
|
||||||
std::string name;
|
std::string name;
|
||||||
virtual void render(RenderDevice*);
|
virtual void render(RenderDevice*);
|
||||||
|
virtual void update();
|
||||||
std::vector<Instance*> children; // All children.
|
std::vector<Instance*> children; // All children.
|
||||||
std::string getClassName();
|
std::string getClassName();
|
||||||
Instance* findFirstChild(std::string);
|
Instance* findFirstChild(std::string);
|
||||||
std::vector<Instance* > getChildren();
|
std::vector<Instance* > getChildren();
|
||||||
std::vector<Instance* > getAllChildren();
|
std::vector<Instance* > getAllChildren();
|
||||||
void setParent(Instance*);
|
virtual void setParent(Instance*);
|
||||||
|
void setName(std::string newName);
|
||||||
void addChild(Instance*);
|
void addChild(Instance*);
|
||||||
void removeChild(Instance*);
|
void removeChild(Instance*);
|
||||||
|
void clearChildren();
|
||||||
Instance* getParent();
|
Instance* getParent();
|
||||||
virtual Instance* clone() const { return new Instance(*this); }
|
virtual Instance* clone() const { return new Instance(*this); }
|
||||||
|
virtual std::vector<PROPGRIDITEM> getProperties();
|
||||||
|
virtual void PropUpdate(LPPROPGRIDITEM &pItem);
|
||||||
|
int listicon;
|
||||||
protected:
|
protected:
|
||||||
std::string className;
|
std::string className;
|
||||||
Instance* parent; // Another pointer.
|
Instance* parent; // Another pointer.
|
||||||
|
PROPGRIDITEM createPGI(LPSTR catalog, LPSTR propName, LPSTR propDesc, LPARAM curVal, INT type, TCHAR choices[] = NULL);
|
||||||
|
private:
|
||||||
|
static const std::map<std::string, Instance> g_logLevelsDescriptions;
|
||||||
};
|
};
|
||||||
16
src/include/DataModelV2/LevelInstance.h
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#pragma once
|
||||||
|
#include "instance.h"
|
||||||
|
|
||||||
|
class LevelInstance :
|
||||||
|
public Instance
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
LevelInstance(void);
|
||||||
|
~LevelInstance(void);
|
||||||
|
float timer;
|
||||||
|
int score;
|
||||||
|
virtual std::vector<PROPGRIDITEM> getProperties();
|
||||||
|
std::string winMessage;
|
||||||
|
std::string loseMessage;
|
||||||
|
virtual void PropUpdate(LPPROPGRIDITEM &pItem);
|
||||||
|
};
|
||||||
35
src/include/DataModelV2/PVInstance.h
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
#pragma once
|
||||||
|
#include "instance.h"
|
||||||
|
#include "enum.h"
|
||||||
|
|
||||||
|
class PVInstance :
|
||||||
|
public Instance
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
PVInstance(void);
|
||||||
|
~PVInstance(void);
|
||||||
|
PVInstance(const PVInstance &oinst);
|
||||||
|
virtual void postRender(RenderDevice* rd);
|
||||||
|
virtual std::vector<PROPGRIDITEM> getProperties();
|
||||||
|
virtual void PropUpdate(LPPROPGRIDITEM &pItem);
|
||||||
|
bool nameShown;
|
||||||
|
bool controllerFlagShown;
|
||||||
|
Enum::Controller::Value controller;
|
||||||
|
protected:
|
||||||
|
CoordinateFrame cFrame;
|
||||||
|
static G3D::Color3 getControllerColor(int controller)
|
||||||
|
{
|
||||||
|
switch(controller)
|
||||||
|
{
|
||||||
|
case Enum::Controller::KeyboardLeft:
|
||||||
|
return Color3::red();
|
||||||
|
case Enum::Controller::KeyboardRight:
|
||||||
|
return Color3::blue();
|
||||||
|
case Enum::Controller::Chase:
|
||||||
|
return Color3::black();
|
||||||
|
case Enum::Controller::Flee:
|
||||||
|
return Color3::yellow();
|
||||||
|
}
|
||||||
|
return Color3::gray();
|
||||||
|
}
|
||||||
|
};
|
||||||
70
src/include/DataModelV2/PartInstance.h
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
#pragma once
|
||||||
|
#include "PVInstance.h"
|
||||||
|
#include "Enum.h"
|
||||||
|
#define _USE_MATH_DEFINES
|
||||||
|
#include <cmath>
|
||||||
|
|
||||||
|
class PartInstance : public PVInstance
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
PartInstance(void);
|
||||||
|
PartInstance(const PartInstance &oinst);
|
||||||
|
~PartInstance(void);
|
||||||
|
Instance* clone() const { return new PartInstance(*this); }
|
||||||
|
|
||||||
|
//Rendering
|
||||||
|
virtual void PartInstance::postRender(RenderDevice* rd);
|
||||||
|
virtual void render(RenderDevice*);
|
||||||
|
|
||||||
|
//Surfaces
|
||||||
|
Enum::SurfaceType::Value top;
|
||||||
|
Enum::SurfaceType::Value front;
|
||||||
|
Enum::SurfaceType::Value right;
|
||||||
|
Enum::SurfaceType::Value back;
|
||||||
|
Enum::SurfaceType::Value left;
|
||||||
|
Enum::SurfaceType::Value bottom;
|
||||||
|
Enum::Shape::Value shape;
|
||||||
|
|
||||||
|
//Variables
|
||||||
|
Color3 color;
|
||||||
|
bool canCollide;
|
||||||
|
bool anchored;
|
||||||
|
|
||||||
|
//Getters
|
||||||
|
Vector3 getPosition();
|
||||||
|
Vector3 getVelocity();
|
||||||
|
Vector3 getRotVelocity();
|
||||||
|
Vector3 getSize();
|
||||||
|
Box getBox();
|
||||||
|
Sphere getSphere();
|
||||||
|
Box getScaledBox();
|
||||||
|
CoordinateFrame getCFrame();
|
||||||
|
|
||||||
|
//Setters
|
||||||
|
void setParent(Instance* parent);
|
||||||
|
void setPosition(Vector3);
|
||||||
|
void setVelocity(Vector3);
|
||||||
|
void setRotVelocity(Vector3);
|
||||||
|
void setCFrame(CoordinateFrame);
|
||||||
|
void setSize(Vector3);
|
||||||
|
void setShape(Enum::Shape::Value shape);
|
||||||
|
void setChanged();
|
||||||
|
void setSurface(int face, Enum::SurfaceType::Value surface);
|
||||||
|
|
||||||
|
//Collision
|
||||||
|
bool collides(PartInstance * part);
|
||||||
|
bool collides(Box);
|
||||||
|
|
||||||
|
//Properties
|
||||||
|
virtual std::vector<PROPGRIDITEM> getProperties();
|
||||||
|
virtual void PropUpdate(LPPROPGRIDITEM &pItem);
|
||||||
|
private:
|
||||||
|
Vector3 position;
|
||||||
|
Vector3 size;
|
||||||
|
Vector3 velocity;
|
||||||
|
Vector3 rotVelocity;
|
||||||
|
bool changed;
|
||||||
|
Box itemBox;
|
||||||
|
GLuint glList;
|
||||||
|
};
|
||||||
@@ -21,6 +21,10 @@ public:
|
|||||||
Color4 textOutlineColorDn;
|
Color4 textOutlineColorDn;
|
||||||
Color4 boxColorDn;
|
Color4 boxColorDn;
|
||||||
Color4 boxOutlineColorDn;
|
Color4 boxOutlineColorDn;
|
||||||
|
Color4 textColorDis;
|
||||||
|
Color4 textOutlineColorDis;
|
||||||
|
Color4 boxColorDis;
|
||||||
|
Color4 boxOutlineColorDis;
|
||||||
bool centeredWithinBox;
|
bool centeredWithinBox;
|
||||||
std::string title;
|
std::string title;
|
||||||
G3D::GFontRef font;
|
G3D::GFontRef font;
|
||||||
29
src/include/DataModelV2/ToggleImageButtonInstance.h
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
#pragma once
|
||||||
|
#include "imagebuttoninstance.h"
|
||||||
|
|
||||||
|
|
||||||
|
class ToggleImageButtonInstance : public ImageButtonInstance
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
//ImageButtonInstance(G3D::TextureRef);
|
||||||
|
//ImageButtonInstance(G3D::TextureRef,G3D::TextureRef);
|
||||||
|
//ImageButtonInstance(G3D::TextureRef,G3D::TextureRef,G3D::TextureRef);
|
||||||
|
ToggleImageButtonInstance(G3D::TextureRef newImage,G3D::TextureRef overImage = NULL,
|
||||||
|
G3D::TextureRef downImage = NULL,
|
||||||
|
G3D::TextureRef disableImage = NULL,
|
||||||
|
G3D::TextureRef newImage2 = NULL,
|
||||||
|
G3D::TextureRef overImage2 = NULL,
|
||||||
|
G3D::TextureRef downImage2 = NULL,
|
||||||
|
G3D::TextureRef disableImage2 = NULL);
|
||||||
|
~ToggleImageButtonInstance(void);
|
||||||
|
void drawObj(RenderDevice*, Vector2, bool);
|
||||||
|
bool checked;
|
||||||
|
G3D::TextureRef image2;
|
||||||
|
int openGLID2;
|
||||||
|
G3D::TextureRef image_ovr2;
|
||||||
|
int openGLID2_ovr;
|
||||||
|
G3D::TextureRef image_dn2;
|
||||||
|
int openGLID2_dn;
|
||||||
|
G3D::TextureRef image_ds2;
|
||||||
|
int openGLID2_ds;
|
||||||
|
};
|
||||||
13
src/include/DataModelV2/WorkspaceInstance.h
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#pragma once
|
||||||
|
#include "GroupInstance.h"
|
||||||
|
#include "PartInstance.h"
|
||||||
|
|
||||||
|
class WorkspaceInstance :
|
||||||
|
public GroupInstance
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
WorkspaceInstance(void);
|
||||||
|
~WorkspaceInstance(void);
|
||||||
|
void clearChildren();
|
||||||
|
std::vector<PartInstance *> partObjects;
|
||||||
|
};
|
||||||
23
src/include/Enum.h
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
namespace Enum
|
||||||
|
{
|
||||||
|
namespace SurfaceType
|
||||||
|
{
|
||||||
|
enum Value {
|
||||||
|
Smooth = 0, Bumps = 1, Hinge = 2, Motor = 3, StepperMotor = 4, Spawn = 5
|
||||||
|
};
|
||||||
|
}
|
||||||
|
namespace Shape
|
||||||
|
{
|
||||||
|
enum Value {
|
||||||
|
Ball = 0, Block = 1, Cylinder = 2
|
||||||
|
};
|
||||||
|
}
|
||||||
|
namespace Controller
|
||||||
|
{
|
||||||
|
enum Value {
|
||||||
|
Player = 7, KeyboardRight = 1, KeyboardLeft = 2, Joypad1 = 3, Joypad2 = 4, Chase = 5, Flee = 6, None = 0
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/include/ErrorFunctions.h
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#pragma once
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
void OnError(int err, std::string msg = "");
|
||||||
|
void MessageBoxStr(std::string msg);
|
||||||
|
void MessageBoxStream(std::stringstream msg);
|
||||||
9
src/include/Faces.h
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#ifndef FACES_H
|
||||||
|
#define FACES_H
|
||||||
|
#define TOP 3
|
||||||
|
#define BOTTOM 5
|
||||||
|
#define LEFT 1
|
||||||
|
#define RIGHT 4
|
||||||
|
#define FRONT 0
|
||||||
|
#define BACK 2
|
||||||
|
#endif
|
||||||
41
src/include/Globals.h
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
#pragma once
|
||||||
|
#include "DataModelV2/DataModelInstance.h"
|
||||||
|
|
||||||
|
|
||||||
|
class Application;
|
||||||
|
|
||||||
|
class Globals
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
Globals(void);
|
||||||
|
~Globals(void);
|
||||||
|
static DataModelInstance* dataModel;
|
||||||
|
//static bool showMouse;
|
||||||
|
static POINT mousepoint;
|
||||||
|
static bool useMousePoint;
|
||||||
|
static const int gen;
|
||||||
|
static const int major;
|
||||||
|
static const int minor;
|
||||||
|
static const int patch;
|
||||||
|
static G3D::TextureRef surface;
|
||||||
|
static int surfaceId;
|
||||||
|
static const std::string g_appName;
|
||||||
|
static COLORREF g_acrCustClr[16]; //Will be dynamic later
|
||||||
|
static HWND mainHwnd;
|
||||||
|
};
|
||||||
|
|
||||||
|
extern std::vector<Instance*> postRenderStack;
|
||||||
|
extern std::vector<Instance*> g_selectedInstances;
|
||||||
|
extern bool running;
|
||||||
|
extern DataModelInstance* g_dataModel;
|
||||||
|
extern Application* g_usableApp;
|
||||||
|
|
||||||
|
extern GFontRef g_fntdominant;
|
||||||
|
extern GFontRef g_fntlighttrek;
|
||||||
|
|
||||||
|
extern COLORREF g_acrCustClr[16]; //Will be dynamic later
|
||||||
|
extern std::string cameraSound;
|
||||||
|
extern std::string clickSound;
|
||||||
|
extern std::string dingSound;
|
||||||
|
extern HWND mainHwnd;
|
||||||
|
const std::string g_appName = "Blocks3D";
|
||||||
28
src/include/IEBrowser.h
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
//#include "WindowFunctions.h"
|
||||||
|
#pragma once
|
||||||
|
#include "Globals.h"
|
||||||
|
#pragma once
|
||||||
|
#include <mshtml.h>
|
||||||
|
#include <exdisp.h>
|
||||||
|
#include <Mshtmhst.h>
|
||||||
|
#include "IEDispatcher.h"
|
||||||
|
#include "AudioPlayer.h"
|
||||||
|
|
||||||
|
class IEBrowser {
|
||||||
|
public:
|
||||||
|
IEBrowser(HWND attachHWnd);
|
||||||
|
~IEBrowser(void);
|
||||||
|
bool navigateSyncURL(wchar_t* url);
|
||||||
|
HRESULT doExternal(std::wstring funcName,
|
||||||
|
DISPID dispIdMember,
|
||||||
|
REFIID riid,
|
||||||
|
LCID lcid,
|
||||||
|
WORD wFlags,
|
||||||
|
DISPPARAMS FAR* pDispParams,
|
||||||
|
VARIANT FAR* pVarResult,
|
||||||
|
EXCEPINFO FAR* pExcepInfo,
|
||||||
|
unsigned int FAR* puArgErr);
|
||||||
|
private:
|
||||||
|
IWebBrowser2* webBrowser;
|
||||||
|
HWND parentHwnd;
|
||||||
|
};
|
||||||
@@ -1,8 +1,18 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "oaidl.h"
|
#include "oaidl.h"
|
||||||
|
//DEFINE_GUID(CLSID_G3d, 0xB323F8E0L, 0x2E68, 0x11D0, 0x90, 0xEA, 0x00, 0xAA, 0x00, 0x60, 0xF8, 0x6F);
|
||||||
|
|
||||||
class IEDispatcher : public IDispatch
|
class IEDispatcher : public IDispatch
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
|
EXTERN_C const IID IID_IDispatch;
|
||||||
|
|
||||||
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
||||||
|
|
||||||
|
MIDL_INTERFACE("B323F8E0-2E68-11D0-90EA-00AA0060F86F")
|
||||||
|
IEDispatcher : public IDispatch
|
||||||
|
{
|
||||||
|
*/
|
||||||
public:
|
public:
|
||||||
IEDispatcher(void);
|
IEDispatcher(void);
|
||||||
~IEDispatcher(void);
|
~IEDispatcher(void);
|
||||||
@@ -15,3 +25,5 @@ public:
|
|||||||
HRESULT STDMETHODCALLTYPE IEDispatcher::Invoke(DISPID, const IID &, LCID, WORD, DISPPARAMS *, VARIANT *, EXCEPINFO *, UINT *);
|
HRESULT STDMETHODCALLTYPE IEDispatcher::Invoke(DISPID, const IID &, LCID, WORD, DISPPARAMS *, VARIANT *, EXCEPINFO *, UINT *);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//#endif
|
||||||
22
src/include/Listener/ButtonListener.h
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
#pragma once
|
||||||
|
//#include "Application.h"
|
||||||
|
#include "DataModelV2/BaseButtonInstance.h"
|
||||||
|
|
||||||
|
class BaseButtonInstance;
|
||||||
|
|
||||||
|
class ButtonListener
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ButtonListener();
|
||||||
|
~ButtonListener(void);
|
||||||
|
virtual void onButton1MouseClick(BaseButtonInstance*);
|
||||||
|
bool doDelete;
|
||||||
|
//virtual void onMouseOver(); //TODO
|
||||||
|
//virtual void onMouseOut(); //TODO
|
||||||
|
//virtual void onButton1MouseDown(); //TODO
|
||||||
|
//virtual void onButton1MouseUp(); //TODO
|
||||||
|
//virtual void onButton2MouseClick(); //TODO
|
||||||
|
//virtual void onButton2MouseDown(); //TODO
|
||||||
|
//virtual void onButton2MouseUp(); //TODO
|
||||||
|
//What to do now...
|
||||||
|
};
|
||||||
7
src/include/Listener/CameraButtonListener.h
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#pragma once
|
||||||
|
#include "ButtonListener.h"
|
||||||
|
|
||||||
|
class CameraButtonListener : public ButtonListener {
|
||||||
|
public:
|
||||||
|
void onButton1MouseClick(BaseButtonInstance*);
|
||||||
|
};
|
||||||
6
src/include/Listener/DeleteListener.h
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#include "ButtonListener.h"
|
||||||
|
|
||||||
|
class DeleteListener : public ButtonListener {
|
||||||
|
public:
|
||||||
|
void onButton1MouseClick(BaseButtonInstance*);
|
||||||
|
};
|
||||||
7
src/include/Listener/GUDButtonListener.h
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#pragma once
|
||||||
|
#include "ButtonListener.h"
|
||||||
|
|
||||||
|
class GUDButtonListener : public ButtonListener {
|
||||||
|
public:
|
||||||
|
void onButton1MouseClick(BaseButtonInstance*);
|
||||||
|
};
|
||||||
8
src/include/Listener/MenuButtonListener.h
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#pragma once
|
||||||
|
#include "buttonlistener.h"
|
||||||
|
class MenuButtonListener :
|
||||||
|
public ButtonListener
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
void onButton1MouseClick(BaseButtonInstance*);
|
||||||
|
};
|
||||||
11
src/include/Listener/ModeSelectionListener.h
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#pragma once
|
||||||
|
#include "ButtonListener.h"
|
||||||
|
|
||||||
|
#define CURSOR 0
|
||||||
|
#define ARROWS 1
|
||||||
|
#define RESIZE 2
|
||||||
|
|
||||||
|
class ModeSelectionListener : public ButtonListener {
|
||||||
|
public:
|
||||||
|
void onButton1MouseClick(BaseButtonInstance*);
|
||||||
|
};
|
||||||