ofxGui | |||||
ofxOsc | |||||
ofxVectorGraphics |
Microsoft Visual Studio Solution File, Format Version 12.00 | |||||
# Visual Studio 15 | |||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "forum_particle", "forum_particle.vcxproj", "{7FD42DF7-442E-479A-BA76-D0022F99702A}" | |||||
EndProject | |||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "openframeworksLib", "..\..\..\libs\openFrameworksCompiled\project\vs\openframeworksLib.vcxproj", "{5837595D-ACA9-485C-8E76-729040CE4B0B}" | |||||
EndProject | |||||
Global | |||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | |||||
Debug|Win32 = Debug|Win32 | |||||
Debug|x64 = Debug|x64 | |||||
Release|Win32 = Release|Win32 | |||||
Release|x64 = Release|x64 | |||||
EndGlobalSection | |||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | |||||
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Debug|Win32.ActiveCfg = Debug|Win32 | |||||
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Debug|Win32.Build.0 = Debug|Win32 | |||||
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Debug|x64.ActiveCfg = Debug|x64 | |||||
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Debug|x64.Build.0 = Debug|x64 | |||||
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Release|Win32.ActiveCfg = Release|Win32 | |||||
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Release|Win32.Build.0 = Release|Win32 | |||||
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Release|x64.ActiveCfg = Release|x64 | |||||
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Release|x64.Build.0 = Release|x64 | |||||
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Debug|Win32.ActiveCfg = Debug|Win32 | |||||
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Debug|Win32.Build.0 = Debug|Win32 | |||||
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Debug|x64.ActiveCfg = Debug|x64 | |||||
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Debug|x64.Build.0 = Debug|x64 | |||||
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Release|Win32.ActiveCfg = Release|Win32 | |||||
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Release|Win32.Build.0 = Release|Win32 | |||||
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Release|x64.ActiveCfg = Release|x64 | |||||
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Release|x64.Build.0 = Release|x64 | |||||
EndGlobalSection | |||||
GlobalSection(SolutionProperties) = preSolution | |||||
HideSolutionNode = FALSE | |||||
EndGlobalSection | |||||
EndGlobal |
<?xml version="1.0" encoding="utf-8"?> | |||||
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||||
<ItemGroup Label="ProjectConfigurations"> | |||||
<ProjectConfiguration Include="Debug|Win32"> | |||||
<Configuration>Debug</Configuration> | |||||
<Platform>Win32</Platform> | |||||
</ProjectConfiguration> | |||||
<ProjectConfiguration Include="Debug|x64"> | |||||
<Configuration>Debug</Configuration> | |||||
<Platform>x64</Platform> | |||||
</ProjectConfiguration> | |||||
<ProjectConfiguration Include="Release|Win32"> | |||||
<Configuration>Release</Configuration> | |||||
<Platform>Win32</Platform> | |||||
</ProjectConfiguration> | |||||
<ProjectConfiguration Include="Release|x64"> | |||||
<Configuration>Release</Configuration> | |||||
<Platform>x64</Platform> | |||||
</ProjectConfiguration> | |||||
</ItemGroup> | |||||
<PropertyGroup Condition="'$(WindowsTargetPlatformVersion)'==''"> | |||||
<LatestTargetPlatformVersion>$([Microsoft.Build.Utilities.ToolLocationHelper]::GetLatestSDKTargetPlatformVersion('Windows', '10.0'))</LatestTargetPlatformVersion> | |||||
<WindowsTargetPlatformVersion Condition="'$(WindowsTargetPlatformVersion)' == ''">$(LatestTargetPlatformVersion)</WindowsTargetPlatformVersion> | |||||
<TargetPlatformVersion>$(WindowsTargetPlatformVersion)</TargetPlatformVersion> | |||||
</PropertyGroup> | |||||
<PropertyGroup Label="Globals"> | |||||
<ProjectGuid>{7FD42DF7-442E-479A-BA76-D0022F99702A}</ProjectGuid> | |||||
<Keyword>Win32Proj</Keyword> | |||||
<RootNamespace>forum_particle</RootNamespace> | |||||
</PropertyGroup> | |||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | |||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | |||||
<ConfigurationType>Application</ConfigurationType> | |||||
<CharacterSet>Unicode</CharacterSet> | |||||
<PlatformToolset>v141</PlatformToolset> | |||||
</PropertyGroup> | |||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> | |||||
<ConfigurationType>Application</ConfigurationType> | |||||
<CharacterSet>Unicode</CharacterSet> | |||||
<PlatformToolset>v141</PlatformToolset> | |||||
</PropertyGroup> | |||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | |||||
<ConfigurationType>Application</ConfigurationType> | |||||
<CharacterSet>Unicode</CharacterSet> | |||||
<WholeProgramOptimization>true</WholeProgramOptimization> | |||||
<PlatformToolset>v141</PlatformToolset> | |||||
</PropertyGroup> | |||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> | |||||
<ConfigurationType>Application</ConfigurationType> | |||||
<CharacterSet>Unicode</CharacterSet> | |||||
<WholeProgramOptimization>true</WholeProgramOptimization> | |||||
<PlatformToolset>v141</PlatformToolset> | |||||
</PropertyGroup> | |||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | |||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> | |||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | |||||
<Import Project="..\..\..\libs\openFrameworksCompiled\project\vs\openFrameworksRelease.props" /> | |||||
</ImportGroup> | |||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets"> | |||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | |||||
<Import Project="..\..\..\libs\openFrameworksCompiled\project\vs\openFrameworksRelease.props" /> | |||||
</ImportGroup> | |||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> | |||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | |||||
<Import Project="..\..\..\libs\openFrameworksCompiled\project\vs\openFrameworksDebug.props" /> | |||||
</ImportGroup> | |||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets"> | |||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | |||||
<Import Project="..\..\..\libs\openFrameworksCompiled\project\vs\openFrameworksDebug.props" /> | |||||
</ImportGroup> | |||||
<PropertyGroup Label="UserMacros" /> | |||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |||||
<OutDir>bin\</OutDir> | |||||
<IntDir>obj\$(Platform)\$(Configuration)\</IntDir> | |||||
<TargetName>$(ProjectName)_debug</TargetName> | |||||
<LinkIncremental>true</LinkIncremental> | |||||
<GenerateManifest>true</GenerateManifest> | |||||
</PropertyGroup> | |||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | |||||
<OutDir>bin\</OutDir> | |||||
<IntDir>obj\$(Platform)\$(Configuration)\</IntDir> | |||||
<TargetName>$(ProjectName)_debug</TargetName> | |||||
<LinkIncremental>true</LinkIncremental> | |||||
<GenerateManifest>true</GenerateManifest> | |||||
</PropertyGroup> | |||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | |||||
<OutDir>bin\</OutDir> | |||||
<IntDir>obj\$(Platform)\$(Configuration)\</IntDir> | |||||
<LinkIncremental>false</LinkIncremental> | |||||
</PropertyGroup> | |||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | |||||
<OutDir>bin\</OutDir> | |||||
<IntDir>obj\$(Platform)\$(Configuration)\</IntDir> | |||||
<LinkIncremental>false</LinkIncremental> | |||||
</PropertyGroup> | |||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |||||
<ClCompile> | |||||
<Optimization>Disabled</Optimization> | |||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> | |||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions> | |||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> | |||||
<WarningLevel>Level3</WarningLevel> | |||||
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);..\..\..\addons\ofxGui\src;..\..\..\addons\ofxOsc\libs;..\..\..\addons\ofxOsc\libs\oscpack;..\..\..\addons\ofxOsc\libs\oscpack\src;..\..\..\addons\ofxOsc\libs\oscpack\src\ip;..\..\..\addons\ofxOsc\libs\oscpack\src\ip\posix;..\..\..\addons\ofxOsc\libs\oscpack\src\ip\win32;..\..\..\addons\ofxOsc\libs\oscpack\src\osc;..\..\..\addons\ofxOsc\src;..\..\..\addons\ofxVectorGraphics\libs;..\..\..\addons\ofxVectorGraphics\src</AdditionalIncludeDirectories> | |||||
<CompileAs>CompileAsCpp</CompileAs> | |||||
<ObjectFileName>$(IntDir)</ObjectFileName> | |||||
<PreprocessorDefinitions>OSC_HOST_LITTLE_ENDIAN</PreprocessorDefinitions> | |||||
</ClCompile> | |||||
<Link> | |||||
<GenerateDebugInformation>true</GenerateDebugInformation> | |||||
<SubSystem>Console</SubSystem> | |||||
<RandomizedBaseAddress>false</RandomizedBaseAddress> | |||||
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies> | |||||
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | |||||
</Link> | |||||
<PostBuildEvent /> | |||||
</ItemDefinitionGroup> | |||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | |||||
<ClCompile> | |||||
<Optimization>Disabled</Optimization> | |||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> | |||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions> | |||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> | |||||
<WarningLevel>Level3</WarningLevel> | |||||
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);..\..\..\addons\ofxGui\src;..\..\..\addons\ofxOsc\libs;..\..\..\addons\ofxOsc\libs\oscpack;..\..\..\addons\ofxOsc\libs\oscpack\src;..\..\..\addons\ofxOsc\libs\oscpack\src\ip;..\..\..\addons\ofxOsc\libs\oscpack\src\ip\posix;..\..\..\addons\ofxOsc\libs\oscpack\src\ip\win32;..\..\..\addons\ofxOsc\libs\oscpack\src\osc;..\..\..\addons\ofxOsc\src;..\..\..\addons\ofxVectorGraphics\libs;..\..\..\addons\ofxVectorGraphics\src</AdditionalIncludeDirectories> | |||||
<CompileAs>CompileAsCpp</CompileAs> | |||||
<MultiProcessorCompilation>true</MultiProcessorCompilation> | |||||
<ObjectFileName>$(IntDir)</ObjectFileName> | |||||
<PreprocessorDefinitions>OSC_HOST_LITTLE_ENDIAN</PreprocessorDefinitions> | |||||
</ClCompile> | |||||
<Link> | |||||
<GenerateDebugInformation>true</GenerateDebugInformation> | |||||
<SubSystem>Console</SubSystem> | |||||
<RandomizedBaseAddress>false</RandomizedBaseAddress> | |||||
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies> | |||||
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | |||||
</Link> | |||||
<PostBuildEvent /> | |||||
</ItemDefinitionGroup> | |||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | |||||
<ClCompile> | |||||
<WholeProgramOptimization>false</WholeProgramOptimization> | |||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions> | |||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> | |||||
<WarningLevel>Level3</WarningLevel> | |||||
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);..\..\..\addons\ofxGui\src;..\..\..\addons\ofxOsc\libs;..\..\..\addons\ofxOsc\libs\oscpack;..\..\..\addons\ofxOsc\libs\oscpack\src;..\..\..\addons\ofxOsc\libs\oscpack\src\ip;..\..\..\addons\ofxOsc\libs\oscpack\src\ip\posix;..\..\..\addons\ofxOsc\libs\oscpack\src\ip\win32;..\..\..\addons\ofxOsc\libs\oscpack\src\osc;..\..\..\addons\ofxOsc\src;..\..\..\addons\ofxVectorGraphics\libs;..\..\..\addons\ofxVectorGraphics\src</AdditionalIncludeDirectories> | |||||
<CompileAs>CompileAsCpp</CompileAs> | |||||
<MultiProcessorCompilation>true</MultiProcessorCompilation> | |||||
<ObjectFileName>$(IntDir)</ObjectFileName> | |||||
<PreprocessorDefinitions>OSC_HOST_LITTLE_ENDIAN</PreprocessorDefinitions> | |||||
</ClCompile> | |||||
<Link> | |||||
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries> | |||||
<GenerateDebugInformation>false</GenerateDebugInformation> | |||||
<SubSystem>Console</SubSystem> | |||||
<OptimizeReferences>true</OptimizeReferences> | |||||
<EnableCOMDATFolding>true</EnableCOMDATFolding> | |||||
<RandomizedBaseAddress>false</RandomizedBaseAddress> | |||||
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies> | |||||
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | |||||
</Link> | |||||
<PostBuildEvent /> | |||||
</ItemDefinitionGroup> | |||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | |||||
<ClCompile> | |||||
<WholeProgramOptimization>false</WholeProgramOptimization> | |||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions> | |||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> | |||||
<WarningLevel>Level3</WarningLevel> | |||||
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);..\..\..\addons\ofxGui\src;..\..\..\addons\ofxOsc\libs;..\..\..\addons\ofxOsc\libs\oscpack;..\..\..\addons\ofxOsc\libs\oscpack\src;..\..\..\addons\ofxOsc\libs\oscpack\src\ip;..\..\..\addons\ofxOsc\libs\oscpack\src\ip\posix;..\..\..\addons\ofxOsc\libs\oscpack\src\ip\win32;..\..\..\addons\ofxOsc\libs\oscpack\src\osc;..\..\..\addons\ofxOsc\src;..\..\..\addons\ofxVectorGraphics\libs;..\..\..\addons\ofxVectorGraphics\src</AdditionalIncludeDirectories> | |||||
<CompileAs>CompileAsCpp</CompileAs> | |||||
<ObjectFileName>$(IntDir)</ObjectFileName> | |||||
<PreprocessorDefinitions>OSC_HOST_LITTLE_ENDIAN</PreprocessorDefinitions> | |||||
</ClCompile> | |||||
<Link> | |||||
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries> | |||||
<GenerateDebugInformation>false</GenerateDebugInformation> | |||||
<SubSystem>Console</SubSystem> | |||||
<OptimizeReferences>true</OptimizeReferences> | |||||
<EnableCOMDATFolding>true</EnableCOMDATFolding> | |||||
<RandomizedBaseAddress>false</RandomizedBaseAddress> | |||||
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies> | |||||
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | |||||
</Link> | |||||
<PostBuildEvent /> | |||||
</ItemDefinitionGroup> | |||||
<ItemGroup> | |||||
<ClCompile Include="..\..\forum_particle\src\particle.cpp" /> | |||||
<ClCompile Include="src\attractor.cpp" /> | |||||
<ClCompile Include="src\main.cpp" /> | |||||
<ClCompile Include="src\ofApp.cpp" /> | |||||
<ClCompile Include="..\..\..\addons\ofxGui\src\ofxBaseGui.cpp" /> | |||||
<ClCompile Include="..\..\..\addons\ofxGui\src\ofxButton.cpp" /> | |||||
<ClCompile Include="..\..\..\addons\ofxGui\src\ofxColorPicker.cpp" /> | |||||
<ClCompile Include="..\..\..\addons\ofxGui\src\ofxGuiGroup.cpp" /> | |||||
<ClCompile Include="..\..\..\addons\ofxGui\src\ofxInputField.cpp" /> | |||||
<ClCompile Include="..\..\..\addons\ofxGui\src\ofxLabel.cpp" /> | |||||
<ClCompile Include="..\..\..\addons\ofxGui\src\ofxPanel.cpp" /> | |||||
<ClCompile Include="..\..\..\addons\ofxGui\src\ofxSlider.cpp" /> | |||||
<ClCompile Include="..\..\..\addons\ofxGui\src\ofxSliderGroup.cpp" /> | |||||
<ClCompile Include="..\..\..\addons\ofxGui\src\ofxToggle.cpp" /> | |||||
<ClCompile Include="..\..\..\addons\ofxOsc\src\ofxOscBundle.cpp" /> | |||||
<ClCompile Include="..\..\..\addons\ofxOsc\src\ofxOscMessage.cpp" /> | |||||
<ClCompile Include="..\..\..\addons\ofxOsc\src\ofxOscParameterSync.cpp" /> | |||||
<ClCompile Include="..\..\..\addons\ofxOsc\src\ofxOscReceiver.cpp" /> | |||||
<ClCompile Include="..\..\..\addons\ofxOsc\src\ofxOscSender.cpp" /> | |||||
<ClCompile Include="..\..\..\addons\ofxOsc\libs\oscpack\src\ip\IpEndpointName.cpp" /> | |||||
<ClCompile Include="..\..\..\addons\ofxOsc\libs\oscpack\src\ip\win32\NetworkingUtils.cpp" /> | |||||
<ClCompile Include="..\..\..\addons\ofxOsc\libs\oscpack\src\ip\win32\UdpSocket.cpp" /> | |||||
<ClCompile Include="..\..\..\addons\ofxOsc\libs\oscpack\src\osc\OscOutboundPacketStream.cpp" /> | |||||
<ClCompile Include="..\..\..\addons\ofxOsc\libs\oscpack\src\osc\OscPrintReceivedElements.cpp" /> | |||||
<ClCompile Include="..\..\..\addons\ofxOsc\libs\oscpack\src\osc\OscReceivedElements.cpp" /> | |||||
<ClCompile Include="..\..\..\addons\ofxOsc\libs\oscpack\src\osc\OscTypes.cpp" /> | |||||
<ClCompile Include="..\..\..\addons\ofxVectorGraphics\src\ofxVectorGraphics.cpp" /> | |||||
<ClCompile Include="..\..\..\addons\ofxVectorGraphics\libs\CreEPS.cpp" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<ClInclude Include="..\..\forum_particle\src\particle.h" /> | |||||
<ClInclude Include="src\attractor.h" /> | |||||
<ClInclude Include="src\ofApp.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxGui\src\ofxBaseGui.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxGui\src\ofxButton.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxGui\src\ofxColorPicker.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxGui\src\ofxGui.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxGui\src\ofxGuiGroup.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxGui\src\ofxInputField.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxGui\src\ofxLabel.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxGui\src\ofxPanel.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxGui\src\ofxSlider.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxGui\src\ofxSliderGroup.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxGui\src\ofxToggle.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\src\ofxOsc.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\src\ofxOscArg.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\src\ofxOscBundle.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\src\ofxOscMessage.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\src\ofxOscParameterSync.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\src\ofxOscReceiver.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\src\ofxOscSender.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\libs\oscpack\src\ip\IpEndpointName.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\libs\oscpack\src\ip\NetworkingUtils.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\libs\oscpack\src\ip\PacketListener.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\libs\oscpack\src\ip\TimerListener.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\libs\oscpack\src\ip\UdpSocket.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\libs\oscpack\src\osc\MessageMappingOscPacketListener.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\libs\oscpack\src\osc\OscException.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\libs\oscpack\src\osc\OscHostEndianness.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\libs\oscpack\src\osc\OscOutboundPacketStream.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\libs\oscpack\src\osc\OscPacketListener.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\libs\oscpack\src\osc\OscPrintReceivedElements.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\libs\oscpack\src\osc\OscReceivedElements.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\libs\oscpack\src\osc\OscTypes.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxVectorGraphics\src\ofxVectorGraphics.h" /> | |||||
<ClInclude Include="..\..\..\addons\ofxVectorGraphics\libs\CreEPS.hpp" /> | |||||
<ClInclude Include="..\..\..\addons\ofxVectorGraphics\libs\CreEPS_Types.hpp" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<ProjectReference Include="$(OF_ROOT)\libs\openFrameworksCompiled\project\vs\openframeworksLib.vcxproj"> | |||||
<Project>{5837595d-aca9-485c-8e76-729040ce4b0b}</Project> | |||||
</ProjectReference> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<ResourceCompile Include="icon.rc"> | |||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/D_DEBUG %(AdditionalOptions)</AdditionalOptions> | |||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">/D_DEBUG %(AdditionalOptions)</AdditionalOptions> | |||||
<AdditionalIncludeDirectories>$(OF_ROOT)\libs\openFrameworksCompiled\project\vs</AdditionalIncludeDirectories> | |||||
</ResourceCompile> | |||||
</ItemGroup> | |||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | |||||
<ProjectExtensions> | |||||
<VisualStudio> | |||||
<UserProperties RESOURCE_FILE="icon.rc" /> | |||||
</VisualStudio> | |||||
</ProjectExtensions> | |||||
</Project> |
<?xml version="1.0" encoding="utf-8"?> | |||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||||
<ItemGroup> | |||||
<ClCompile Include="src\ofApp.cpp"> | |||||
<Filter>src</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="src\main.cpp"> | |||||
<Filter>src</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="..\..\..\addons\ofxGui\src\ofxBaseGui.cpp"> | |||||
<Filter>addons\ofxGui\src</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="..\..\..\addons\ofxGui\src\ofxButton.cpp"> | |||||
<Filter>addons\ofxGui\src</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="..\..\..\addons\ofxGui\src\ofxColorPicker.cpp"> | |||||
<Filter>addons\ofxGui\src</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="..\..\..\addons\ofxGui\src\ofxGuiGroup.cpp"> | |||||
<Filter>addons\ofxGui\src</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="..\..\..\addons\ofxGui\src\ofxInputField.cpp"> | |||||
<Filter>addons\ofxGui\src</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="..\..\..\addons\ofxGui\src\ofxLabel.cpp"> | |||||
<Filter>addons\ofxGui\src</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="..\..\..\addons\ofxGui\src\ofxPanel.cpp"> | |||||
<Filter>addons\ofxGui\src</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="..\..\..\addons\ofxGui\src\ofxSlider.cpp"> | |||||
<Filter>addons\ofxGui\src</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="..\..\..\addons\ofxGui\src\ofxSliderGroup.cpp"> | |||||
<Filter>addons\ofxGui\src</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="..\..\..\addons\ofxGui\src\ofxToggle.cpp"> | |||||
<Filter>addons\ofxGui\src</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="..\..\..\addons\ofxOsc\src\ofxOscBundle.cpp"> | |||||
<Filter>addons\ofxOsc\src</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="..\..\..\addons\ofxOsc\src\ofxOscMessage.cpp"> | |||||
<Filter>addons\ofxOsc\src</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="..\..\..\addons\ofxOsc\src\ofxOscParameterSync.cpp"> | |||||
<Filter>addons\ofxOsc\src</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="..\..\..\addons\ofxOsc\src\ofxOscReceiver.cpp"> | |||||
<Filter>addons\ofxOsc\src</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="..\..\..\addons\ofxOsc\src\ofxOscSender.cpp"> | |||||
<Filter>addons\ofxOsc\src</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="..\..\..\addons\ofxOsc\libs\oscpack\src\ip\IpEndpointName.cpp"> | |||||
<Filter>addons\ofxOsc\libs\oscpack\src\ip</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="..\..\..\addons\ofxOsc\libs\oscpack\src\ip\win32\NetworkingUtils.cpp"> | |||||
<Filter>addons\ofxOsc\libs\oscpack\src\ip\win32</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="..\..\..\addons\ofxOsc\libs\oscpack\src\ip\win32\UdpSocket.cpp"> | |||||
<Filter>addons\ofxOsc\libs\oscpack\src\ip\win32</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="..\..\..\addons\ofxOsc\libs\oscpack\src\osc\OscOutboundPacketStream.cpp"> | |||||
<Filter>addons\ofxOsc\libs\oscpack\src\osc</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="..\..\..\addons\ofxOsc\libs\oscpack\src\osc\OscPrintReceivedElements.cpp"> | |||||
<Filter>addons\ofxOsc\libs\oscpack\src\osc</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="..\..\..\addons\ofxOsc\libs\oscpack\src\osc\OscReceivedElements.cpp"> | |||||
<Filter>addons\ofxOsc\libs\oscpack\src\osc</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="..\..\..\addons\ofxOsc\libs\oscpack\src\osc\OscTypes.cpp"> | |||||
<Filter>addons\ofxOsc\libs\oscpack\src\osc</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="..\..\..\addons\ofxVectorGraphics\src\ofxVectorGraphics.cpp"> | |||||
<Filter>addons\ofxVectorGraphics\src</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="..\..\..\addons\ofxVectorGraphics\libs\CreEPS.cpp"> | |||||
<Filter>addons\ofxVectorGraphics\libs</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="src\attractor.cpp"> | |||||
<Filter>src</Filter> | |||||
</ClCompile> | |||||
<ClCompile Include="..\..\forum_particle\src\particle.cpp"> | |||||
<Filter>src</Filter> | |||||
</ClCompile> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<Filter Include="src"> | |||||
<UniqueIdentifier>{d8376475-7454-4a24-b08a-aac121d3ad6f}</UniqueIdentifier> | |||||
</Filter> | |||||
<Filter Include="addons"> | |||||
<UniqueIdentifier>{71834F65-F3A9-211E-73B8-DC85}</UniqueIdentifier> | |||||
</Filter> | |||||
<Filter Include="addons\ofxGui"> | |||||
<UniqueIdentifier>{4F2A59AF-5F4E-704B-D067-EC13}</UniqueIdentifier> | |||||
</Filter> | |||||
<Filter Include="addons\ofxGui\src"> | |||||
<UniqueIdentifier>{645E9533-4DCD-6179-1CDF-CB65}</UniqueIdentifier> | |||||
</Filter> | |||||
<Filter Include="addons\ofxOsc"> | |||||
<UniqueIdentifier>{D91DCA33-6E5D-4481-2AEC-9FBB}</UniqueIdentifier> | |||||
</Filter> | |||||
<Filter Include="addons\ofxOsc\src"> | |||||
<UniqueIdentifier>{B9DD339A-D93D-92A1-0A2F-4B41}</UniqueIdentifier> | |||||
</Filter> | |||||
<Filter Include="addons\ofxOsc\libs"> | |||||
<UniqueIdentifier>{99ECA1D9-873F-4622-8FC0-FC7B}</UniqueIdentifier> | |||||
</Filter> | |||||
<Filter Include="addons\ofxOsc\libs\oscpack"> | |||||
<UniqueIdentifier>{D3A98534-1602-4FEF-57A6-6593}</UniqueIdentifier> | |||||
</Filter> | |||||
<Filter Include="addons\ofxOsc\libs\oscpack\src"> | |||||
<UniqueIdentifier>{BFB5BB47-98C8-BBCB-3066-1046}</UniqueIdentifier> | |||||
</Filter> | |||||
<Filter Include="addons\ofxOsc\libs\oscpack\src\ip"> | |||||
<UniqueIdentifier>{5A029128-EB41-95C5-CBC0-CDED}</UniqueIdentifier> | |||||
</Filter> | |||||
<Filter Include="addons\ofxOsc\libs\oscpack\src\ip\win32"> | |||||
<UniqueIdentifier>{79DFDFE2-400B-8654-3675-01A3}</UniqueIdentifier> | |||||
</Filter> | |||||
<Filter Include="addons\ofxOsc\libs\oscpack\src\osc"> | |||||
<UniqueIdentifier>{EDACB89C-9768-9551-4D41-B590}</UniqueIdentifier> | |||||
</Filter> | |||||
<Filter Include="addons\ofxVectorGraphics"> | |||||
<UniqueIdentifier>{5A7F3658-B06B-DB97-F4E1-DD19}</UniqueIdentifier> | |||||
</Filter> | |||||
<Filter Include="addons\ofxVectorGraphics\src"> | |||||
<UniqueIdentifier>{F615F000-D48C-B1D6-F1C2-6EDD}</UniqueIdentifier> | |||||
</Filter> | |||||
<Filter Include="addons\ofxVectorGraphics\libs"> | |||||
<UniqueIdentifier>{B341F552-35C4-7EB6-B3C9-9D96}</UniqueIdentifier> | |||||
</Filter> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<ClInclude Include="src\ofApp.h"> | |||||
<Filter>src</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxGui\src\ofxBaseGui.h"> | |||||
<Filter>addons\ofxGui\src</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxGui\src\ofxButton.h"> | |||||
<Filter>addons\ofxGui\src</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxGui\src\ofxColorPicker.h"> | |||||
<Filter>addons\ofxGui\src</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxGui\src\ofxGui.h"> | |||||
<Filter>addons\ofxGui\src</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxGui\src\ofxGuiGroup.h"> | |||||
<Filter>addons\ofxGui\src</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxGui\src\ofxInputField.h"> | |||||
<Filter>addons\ofxGui\src</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxGui\src\ofxLabel.h"> | |||||
<Filter>addons\ofxGui\src</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxGui\src\ofxPanel.h"> | |||||
<Filter>addons\ofxGui\src</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxGui\src\ofxSlider.h"> | |||||
<Filter>addons\ofxGui\src</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxGui\src\ofxSliderGroup.h"> | |||||
<Filter>addons\ofxGui\src</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxGui\src\ofxToggle.h"> | |||||
<Filter>addons\ofxGui\src</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\src\ofxOsc.h"> | |||||
<Filter>addons\ofxOsc\src</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\src\ofxOscArg.h"> | |||||
<Filter>addons\ofxOsc\src</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\src\ofxOscBundle.h"> | |||||
<Filter>addons\ofxOsc\src</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\src\ofxOscMessage.h"> | |||||
<Filter>addons\ofxOsc\src</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\src\ofxOscParameterSync.h"> | |||||
<Filter>addons\ofxOsc\src</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\src\ofxOscReceiver.h"> | |||||
<Filter>addons\ofxOsc\src</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\src\ofxOscSender.h"> | |||||
<Filter>addons\ofxOsc\src</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\libs\oscpack\src\ip\IpEndpointName.h"> | |||||
<Filter>addons\ofxOsc\libs\oscpack\src\ip</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\libs\oscpack\src\ip\NetworkingUtils.h"> | |||||
<Filter>addons\ofxOsc\libs\oscpack\src\ip</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\libs\oscpack\src\ip\PacketListener.h"> | |||||
<Filter>addons\ofxOsc\libs\oscpack\src\ip</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\libs\oscpack\src\ip\TimerListener.h"> | |||||
<Filter>addons\ofxOsc\libs\oscpack\src\ip</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\libs\oscpack\src\ip\UdpSocket.h"> | |||||
<Filter>addons\ofxOsc\libs\oscpack\src\ip</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\libs\oscpack\src\osc\MessageMappingOscPacketListener.h"> | |||||
<Filter>addons\ofxOsc\libs\oscpack\src\osc</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\libs\oscpack\src\osc\OscException.h"> | |||||
<Filter>addons\ofxOsc\libs\oscpack\src\osc</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\libs\oscpack\src\osc\OscHostEndianness.h"> | |||||
<Filter>addons\ofxOsc\libs\oscpack\src\osc</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\libs\oscpack\src\osc\OscOutboundPacketStream.h"> | |||||
<Filter>addons\ofxOsc\libs\oscpack\src\osc</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\libs\oscpack\src\osc\OscPacketListener.h"> | |||||
<Filter>addons\ofxOsc\libs\oscpack\src\osc</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\libs\oscpack\src\osc\OscPrintReceivedElements.h"> | |||||
<Filter>addons\ofxOsc\libs\oscpack\src\osc</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\libs\oscpack\src\osc\OscReceivedElements.h"> | |||||
<Filter>addons\ofxOsc\libs\oscpack\src\osc</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxOsc\libs\oscpack\src\osc\OscTypes.h"> | |||||
<Filter>addons\ofxOsc\libs\oscpack\src\osc</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxVectorGraphics\src\ofxVectorGraphics.h"> | |||||
<Filter>addons\ofxVectorGraphics\src</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxVectorGraphics\libs\CreEPS.hpp"> | |||||
<Filter>addons\ofxVectorGraphics\libs</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\..\addons\ofxVectorGraphics\libs\CreEPS_Types.hpp"> | |||||
<Filter>addons\ofxVectorGraphics\libs</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="src\attractor.h"> | |||||
<Filter>src</Filter> | |||||
</ClInclude> | |||||
<ClInclude Include="..\..\forum_particle\src\particle.h"> | |||||
<Filter>src</Filter> | |||||
</ClInclude> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<ResourceCompile Include="icon.rc" /> | |||||
</ItemGroup> | |||||
</Project> |
// Icon Resource Definition | |||||
#define MAIN_ICON 102 | |||||
#if defined(_DEBUG) | |||||
MAIN_ICON ICON "icon_debug.ico" | |||||
#else | |||||
MAIN_ICON ICON "icon.ico" | |||||
#endif |
#include "attractor.h" | |||||
Attractor::Attractor() | |||||
{ | |||||
x = 0; | |||||
y = 0; | |||||
} | |||||
//-------------------------------------------------------------------------------------- | |||||
Attractor::~Attractor() | |||||
{ | |||||
} | |||||
//-------------------------------------------------------------------------------------- | |||||
float Attractor::getY() { | |||||
return y; | |||||
} | |||||
float Attractor::getX() { | |||||
return x; | |||||
} | |||||
void Attractor::setX(float xNew) { | |||||
x = xNew; | |||||
} | |||||
void Attractor::setY(float yNew) { | |||||
y = yNew; | |||||
} | |||||
void Attractor::setup(float xSetup, float ySetup) { | |||||
x = xSetup; | |||||
y = ySetup; | |||||
} | |||||
// | |||||
// attractor.h | |||||
// particleSystem | |||||
// | |||||
#include <stdio.h> | |||||
class Attractor { | |||||
public: | |||||
Attractor(); | |||||
~Attractor(); | |||||
float getX(); | |||||
float getY(); | |||||
void setX(float x); | |||||
void setY(float y); | |||||
void setup(float x, float y); | |||||
private: | |||||
//ofVec2f direction | |||||
float x; | |||||
float y; | |||||
float force; | |||||
}; |
#include "ofMain.h" | |||||
#include "ofApp.h" | |||||
//======================================================================== | |||||
int main() { | |||||
ofSetupOpenGL(1000, 1000, OF_WINDOW); // <-------- setup the GL context | |||||
ofRunApp(new ofApp()); | |||||
} | |||||
#include "ofApp.h" | |||||
//-------------------------------------------------------------- | |||||
void ofApp::setup() { | |||||
//Initialize 8 empty attractrs | |||||
for (int i = 0; i < 8; i++) | |||||
{ | |||||
attractors.push_back(new Attractor); | |||||
} | |||||
//OSC reciever port setup | |||||
receiver.setup(PORT); | |||||
//Black background | |||||
ofSetBackgroundColor(0, 0, 0); | |||||
ofSetFrameRate(60); | |||||
birthCount = 0; | |||||
//attractors.at(0)->setup(200, 200); | |||||
} | |||||
//-------------------------------------------------------------- | |||||
void ofApp::update() { | |||||
// *** OSC RECEIVER *** | |||||
while (receiver.hasWaitingMessages()) { | |||||
ofxOscMessage contourCentroids; | |||||
receiver.getNextMessage(&contourCentroids); | |||||
oscMsg = ofToString(contourCentroids); | |||||
//Get active ammount of attractors (nBlobs) and their x & y coordinates | |||||
//Exp. OSC Message: " /centroidsOfBlob ammount xValue, yValue" | |||||
if (contourCentroids.getAddress() == "/centroidsOfBlob") { | |||||
nBlobs = contourCentroids.getArgAsInt(0); | |||||
for (int i = 1; i <= nBlobs; i++) { | |||||
xOfCentroid = contourCentroids.getArgAsFloat(i * 2 - 1) * ofGetWindowWidth(); | |||||
yOfCentroid = contourCentroids.getArgAsFloat(i * 2) * ofGetWindowHeight(); | |||||
attractors.at(i - 1)->setup(xOfCentroid, yOfCentroid); | |||||
} | |||||
} | |||||
//Delete all Attractors on command | |||||
if (contourCentroids.getAddress() == "/checkin") { | |||||
for (int i = 0; i < 8; i++) { | |||||
attractors.at(i)->setup(0, 0); | |||||
} | |||||
} | |||||
} | |||||
// *** PARTICLE EMITTER *** | |||||
//Capture time based on FrameTime | |||||
double deltaT = ofGetLastFrameTime(); | |||||
birthCount += deltaT; | |||||
//Birth control for new particles | |||||
if (birthCount > 0.001) { | |||||
for (int i = 0;i < 4;i++) { | |||||
system.push_back(new thParticle); | |||||
system.back()->setup(ofVec2f(ofGetWidth()*.5, ofGetHeight()*.5)); | |||||
} | |||||
birthCount = 0; | |||||
} | |||||
for (int p = 0; p < system.size();) | |||||
{ | |||||
//Upate particle system /w all active attractors | |||||
system.at(p)->update(deltaT, &attractors); | |||||
//Delete particles, that reached max Age | |||||
if (system.at(p)->getAgeNorm() > 4) { | |||||
delete system.at(p); | |||||
system.erase(system.begin() + p); | |||||
} | |||||
else { | |||||
p++; | |||||
} | |||||
} | |||||
} | |||||
//-------------------------------------------------------------- | |||||
void ofApp::draw() { | |||||
//Draw particle system | |||||
for (int p = 0; p < system.size(); p++) { | |||||
system.at(p)->draw(); | |||||
} | |||||
//Capture time based on FrameTime | |||||
double deltaT = ofGetLastFrameTime(); | |||||
time += deltaT; | |||||
// Delete inactive attractors after 4 seconds based on Frametime | |||||
if (time > 2) { | |||||
for (int i = 0; i < 8; i++) { | |||||
//attractors.at(i)->setup(0, 0); | |||||
time = 0; | |||||
} | |||||
} | |||||
// *** DEBUG INFO *** | |||||
//All 8 Attractors with x | y coordinates | |||||
for (int i = 0; i < 8; i++) { | |||||
//string x = ofToString(attractors.at(i)->getX()); | |||||
//string y = ofToString(attractors.at(i)->getY()); | |||||
//ofDrawBitmapString("x: " + x + " y: " + y, 100, 100 + i * 20); | |||||
} | |||||
//Recieved OSC messages | |||||
//ofDrawBitmapString("OSC: " + ofToString(oscMsg),100, 275); | |||||
//Elapsed time since last clear of attractors | |||||
//ofDrawBitmapString("Time: " + ofToString(time),100, 300); | |||||
//Current FPS | |||||
//ofDrawBitmapString("FPS: " + ofToString(ofGetFrameRate()), 100, 325); | |||||
} | |||||
//-------------------------------------------------------------- | |||||
void ofApp::keyPressed(int key) { | |||||
} | |||||
//-------------------------------------------------------------- | |||||
void ofApp::keyReleased(int key) { | |||||
} | |||||
//-------------------------------------------------------------- | |||||
void ofApp::mouseMoved(int x, int y) { | |||||
} | |||||
//-------------------------------------------------------------- | |||||
void ofApp::mousePressed(int x, int y, int button) { | |||||
} | |||||
//-------------------------------------------------------------- | |||||
void ofApp::mouseReleased(int x, int y, int button) { | |||||
} | |||||
#pragma once | |||||
#include "ofMain.h" | |||||
#include "particle.h" | |||||
#include "ofxOsc.h" | |||||
#include "ofxGui.h" | |||||
//OSC Reciever PORT & HOST IP | |||||
#define PORT 12345 | |||||
#define HOST "172.20.10.2" | |||||
class ofApp : public ofBaseApp { | |||||
public: | |||||
void setup(); | |||||
void update(); | |||||
void draw(); | |||||
void keyPressed(int key); | |||||
void keyReleased(int key); | |||||
void mouseMoved(int x, int y); | |||||
void mousePressed(int x, int y, int button); | |||||
void mouseReleased(int x, int y, int button); | |||||
private: | |||||
// OSC Receiver | |||||
string oscMsg; | |||||
ofxOscReceiver receiver; | |||||
float timeSent, timeReceived; | |||||
int nBlobs; | |||||
int blobCount; | |||||
float xOfCentroid; | |||||
float yOfCentroid; | |||||
vector<thParticle*> system; | |||||
vector<Attractor*> attractors; | |||||
float birthCount; | |||||
double time; | |||||
}; |
#pragma once | |||||
#include "ofMain.h" | |||||
#include "attractor.h" | |||||
class thParticle | |||||
{ | |||||
public: | |||||
thParticle(); | |||||
~thParticle(); | |||||
void setup(ofVec2f position); | |||||
void update(float deltaT, vector<Attractor*>* attractors); | |||||
// void update(float deltaT, ofVec2f attractor); | |||||
//Partikel wird komplett upgedated (Bewegung, Farbe, etc...) | |||||
//deltaT Zeitintervall seit letztem Update | |||||
void draw(); //Partikel anzeigen | |||||
float getAgeNorm(); | |||||
float getMaxLife(); | |||||
ofImage tex; | |||||
private: | |||||
int counterOfActiveAttractors; | |||||
ofVec2f vel; | |||||
ofVec2f position; | |||||
float maxLife; | |||||
float age; | |||||
float size; | |||||
float mass; | |||||
int blobCounterInParticle; | |||||
ofColor color; | |||||
}; |