aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/lib
diff options
context:
space:
mode:
Diffstat (limited to 'Game/Code/lib')
-rw-r--r--Game/Code/lib/projectM/1.0/cwrapper/projectM-cwrapper.sln20
-rw-r--r--Game/Code/lib/projectM/1.0/cwrapper/projectM-cwrapper.vcproj207
-rw-r--r--Game/Code/lib/projectM/1.0/cwrapper/projectM.cpp69
-rw-r--r--Game/Code/lib/projectM/1.0/cwrapper/projectM.h27
4 files changed, 323 insertions, 0 deletions
diff --git a/Game/Code/lib/projectM/1.0/cwrapper/projectM-cwrapper.sln b/Game/Code/lib/projectM/1.0/cwrapper/projectM-cwrapper.sln
new file mode 100644
index 00000000..e05f79a3
--- /dev/null
+++ b/Game/Code/lib/projectM/1.0/cwrapper/projectM-cwrapper.sln
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 9.00
+# Visual Studio 2005
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "projectM-cwrapper", "projectM-cwrapper.vcproj", "{8E653284-12F3-4A90-9D0D-4195557051F7}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Win32 = Debug|Win32
+ Release|Win32 = Release|Win32
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {8E653284-12F3-4A90-9D0D-4195557051F7}.Debug|Win32.ActiveCfg = Debug|Win32
+ {8E653284-12F3-4A90-9D0D-4195557051F7}.Debug|Win32.Build.0 = Debug|Win32
+ {8E653284-12F3-4A90-9D0D-4195557051F7}.Release|Win32.ActiveCfg = Release|Win32
+ {8E653284-12F3-4A90-9D0D-4195557051F7}.Release|Win32.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/Game/Code/lib/projectM/1.0/cwrapper/projectM-cwrapper.vcproj b/Game/Code/lib/projectM/1.0/cwrapper/projectM-cwrapper.vcproj
new file mode 100644
index 00000000..9c182cac
--- /dev/null
+++ b/Game/Code/lib/projectM/1.0/cwrapper/projectM-cwrapper.vcproj
@@ -0,0 +1,207 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="8,00"
+ Name="projectM-cwrapper"
+ ProjectGUID="{8E653284-12F3-4A90-9D0D-4195557051F7}"
+ RootNamespace="projectMcwrapper"
+ Keyword="Win32Proj"
+ >
+ <Platforms>
+ <Platform
+ Name="Win32"
+ />
+ </Platforms>
+ <ToolFiles>
+ </ToolFiles>
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="2"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories="../projectM"
+ PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;PROJECTMCWRAPPER_EXPORTS"
+ MinimalRebuild="true"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="3"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ Detect64BitPortabilityProblems="true"
+ DebugInformationFormat="4"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="projectM.lib"
+ LinkIncremental="2"
+ AdditionalLibraryDirectories="../projectM/Debug"
+ GenerateDebugInformation="true"
+ SubSystem="2"
+ TargetMachine="1"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCWebDeploymentTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="2"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories="../projectM"
+ PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PROJECTMCWRAPPER_EXPORTS"
+ RuntimeLibrary="2"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ Detect64BitPortabilityProblems="true"
+ DebugInformationFormat="3"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="projectM.lib"
+ LinkIncremental="1"
+ AdditionalLibraryDirectories="../projectM/Release"
+ GenerateDebugInformation="true"
+ SubSystem="2"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
+ TargetMachine="1"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCWebDeploymentTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ </Configurations>
+ <References>
+ </References>
+ <Files>
+ <Filter
+ Name="Quelldateien"
+ Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+ UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+ >
+ <File
+ RelativePath=".\projectM.cpp"
+ >
+ </File>
+ </Filter>
+ <Filter
+ Name="Headerdateien"
+ Filter="h;hpp;hxx;hm;inl;inc;xsd"
+ UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+ >
+ <File
+ RelativePath=".\projectM.h"
+ >
+ </File>
+ </Filter>
+ <Filter
+ Name="Ressourcendateien"
+ Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
+ UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
+ >
+ </Filter>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
diff --git a/Game/Code/lib/projectM/1.0/cwrapper/projectM.cpp b/Game/Code/lib/projectM/1.0/cwrapper/projectM.cpp
new file mode 100644
index 00000000..ff8e2a2f
--- /dev/null
+++ b/Game/Code/lib/projectM/1.0/cwrapper/projectM.cpp
@@ -0,0 +1,69 @@
+#include "projectM.h"
+
+projectM* projectM_create1(char* config_file)
+{
+ return new projectM(config_file);
+}
+
+projectM* projectM_create2(int gx, int gy, int fps, int texsize,
+ int width, int height, char* preset_url, char* title_fonturl, char* title_menuurl)
+{
+ return new projectM(gx, gy, fps, texsize, width, height,
+ preset_url, title_fonturl, title_menuurl);
+}
+
+void projectM_resetGL(projectM* pm, int width, int height)
+{
+ pm->projectM_resetGL(width, height);
+}
+
+void projectM_setTitle(projectM* pm, char* title)
+{
+ pm->projectM_setTitle(title);
+}
+
+void projectM_renderFrame(projectM* pm)
+{
+ pm->renderFrame();
+}
+
+unsigned projectM_initRenderToTexture(projectM* pm)
+{
+ return pm->initRenderToTexture();
+}
+
+void projectM_key_handler(projectM* pm, projectMEvent event,
+ projectMKeycode keycode, projectMModifier modifier)
+{
+ pm->key_handler(event, keycode, modifier);
+}
+
+void projectM_free(projectM* pm)
+{
+ delete pm;
+}
+
+void PCM_addPCMfloat(projectM* pm, float *PCMdata, int samples)
+{
+ pm->pcm->addPCMfloat(PCMdata, samples);
+}
+
+void PCM_addPCM16(projectM* pm, short pcm_data[2][512])
+{
+ pm->pcm->addPCM16(pcm_data);
+}
+
+void PCM_addPCM16Data(projectM* pm, const short* pcm_data, short samples)
+{
+ pm->pcm->addPCM16Data(pcm_data, samples);
+}
+
+void PCM_addPCM8(projectM* pm, unsigned char pcm_data[2][1024])
+{
+ pm->pcm->addPCM8(pcm_data);
+}
+
+void PCM_addPCM8_512(projectM* pm, const unsigned char pcm_data[2][512])
+{
+ pm->pcm->addPCM8_512(pcm_data);
+}
diff --git a/Game/Code/lib/projectM/1.0/cwrapper/projectM.h b/Game/Code/lib/projectM/1.0/cwrapper/projectM.h
new file mode 100644
index 00000000..a64f2666
--- /dev/null
+++ b/Game/Code/lib/projectM/1.0/cwrapper/projectM.h
@@ -0,0 +1,27 @@
+#ifndef __PROJECTM_CWRAPPER_H__
+#define __PROJECTM_CWRAPPER_H__
+
+#include "projectM.hpp"
+
+extern "C" {
+ DLLEXPORT projectM* projectM_create1(char* config_file);
+ DLLEXPORT projectM* projectM_create2(int gx, int gy, int fps, int texsize,
+ int width, int height, char* preset_url, char* title_fonturl, char* title_menuurl);
+
+ DLLEXPORT void projectM_resetGL(projectM* pm, int width, int height);
+ DLLEXPORT void projectM_setTitle(projectM* pm, char* title);
+ DLLEXPORT void projectM_renderFrame(projectM* pm);
+ DLLEXPORT unsigned projectM_initRenderToTexture(projectM* pm);
+ DLLEXPORT void projectM_key_handler(projectM* pm, projectMEvent event,
+ projectMKeycode keycode, projectMModifier modifier);
+
+ DLLEXPORT void projectM_free(projectM* pm);
+
+ DLLEXPORT void PCM_addPCMfloat(projectM* pm, float *PCMdata, int samples);
+ DLLEXPORT void PCM_addPCM16(projectM* pm, short [2][512]);
+ DLLEXPORT void PCM_addPCM16Data(projectM* pm, const short* pcm_data, short samples);
+ DLLEXPORT void PCM_addPCM8(projectM* pm, unsigned char [2][1024]);
+ DLLEXPORT void PCM_addPCM8_512(projectM* pm, const unsigned char [2][512]);
+}
+
+#endif \ No newline at end of file