Skip to content

Commit

Permalink
Upgrade OpentTK demo
Browse files Browse the repository at this point in the history
  • Loading branch information
AndresTraks committed Jul 29, 2016
1 parent b7d0819 commit 475b46f
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 16 deletions.
18 changes: 10 additions & 8 deletions BulletSharp.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,16 @@
<ItemGroup Condition="'$(Configuration)'=='Release Numerics'">
<Reference Include="System.Numerics" />
</ItemGroup>
<ItemGroup Condition="'$(Configuration)'=='Debug OpenTK'">
<Reference Include="OpenTK">
<HintPath>packages\OpenTK.1.1.2349.61993\OpenTK.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup Condition="'$(Configuration)'=='Release OpenTK'">
<Reference Include="OpenTK">
<HintPath>packages\OpenTK.1.1.2349.61993\OpenTK.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup Condition="'$(Configuration)'=='Debug SharpDX'">
<Reference Include="SharpDX">
<HintPath>packages\SharpDX.3.0.2\lib\net45\SharpDX.dll</HintPath>
Expand All @@ -881,14 +891,6 @@
<HintPath>packages\SharpDX.Mathematics.3.0.2\lib\net45\SharpDX.Mathematics.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup Condition="'$(Configuration)'=='Debug OpenTK'">
<Reference Include="OpenTK, Version=1.1.0.0, Culture=neutral, PublicKeyToken=bad199fe84eb3df4">
</Reference>
</ItemGroup>
<ItemGroup Condition="'$(Configuration)'=='Release OpenTK'">
<Reference Include="OpenTK, Version=1.1.0.0, Culture=neutral, PublicKeyToken=bad199fe84eb3df4">
</Reference>
</ItemGroup>
<ItemGroup>
<ClCompile Include="src\Stdafx.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug Generic|Win32'">Create</PrecompiledHeader>
Expand Down
4 changes: 2 additions & 2 deletions demos/OpenTK/BasicDemo/BasicDemo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ protected override void OnRenderFrame(FrameEventArgs e)

private void DrawCube(Color color, float size)
{
GL.Begin(PrimitiveType.Quads);
GL.Begin(BeginMode.Quads);

GL.Color3(color);
GL.Vertex3(-size, -size, -size);
Expand Down Expand Up @@ -174,7 +174,7 @@ void UninitCube()
void DrawCube2(Color color)
{
GL.Color3(color);
GL.DrawElements(PrimitiveType.Quads, 24, DrawElementsType.UnsignedByte, indices);
GL.DrawElements(BeginMode.Quads, 24, DrawElementsType.UnsignedByte, indices);
}
}
}
20 changes: 16 additions & 4 deletions demos/OpenTK/BasicDemo/BasicDemo.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Expand All @@ -10,11 +10,12 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>BasicDemo</RootNamespace>
<AssemblyName>BasicDemo</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
Expand All @@ -27,6 +28,7 @@
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>bin\x86\Release\</OutputPath>
Expand All @@ -35,6 +37,7 @@
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -45,6 +48,7 @@
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
Expand All @@ -56,6 +60,7 @@
<CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
<CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
<CodeAnalysisFailOnMissingRules>false</CodeAnalysisFailOnMissingRules>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand All @@ -70,7 +75,10 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\Release OpenTK\BulletSharp.dll</HintPath>
</Reference>
<Reference Include="OpenTK, Version=1.1.0.0, Culture=neutral, PublicKeyToken=bad199fe84eb3df4, processorArchitecture=MSIL" />
<Reference Include="OpenTK, Version=1.1.0.0, Culture=neutral, PublicKeyToken=bad199fe84eb3df4, processorArchitecture=MSIL">
<HintPath>packages\OpenTK.1.1.2349.61993\lib\NET40\OpenTK.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
Expand All @@ -80,4 +88,8 @@
<Compile Include="Physics.cs" />
<Compile Include="Program.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="packages.config" />
</ItemGroup>
</Project>
6 changes: 4 additions & 2 deletions demos/OpenTK/BasicDemo/BasicDemo.sln
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25123.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicDemo", "BasicDemo.csproj", "{085F79E4-C90B-4D62-BE4D-FE5C5E279D39}"
EndProject
Global
Expand Down
1 change: 1 addition & 0 deletions packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MonoGame.Framework.DesktopGL" version="3.5.1.1679" />
<package id="OpenTK" version="1.1.2349.61993" />
<package id="SharpDX" version="3.0.2" />
<package id="SharpDX.Mathematics" version="3.0.2" />
</packages>

0 comments on commit 475b46f

Please sign in to comment.