Skip to content

Commit

Permalink
First Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic81 committed Jul 7, 2016
1 parent 270d08f commit 7eaf5c2
Show file tree
Hide file tree
Showing 132 changed files with 6,044 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Camera/Camera.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using OpenTK;

namespace Camera
{
public class Camera : ICamera
{
public Vector3 CameraPosition{ get; set;}
public Vector3 CameraLookAt { get; set; }
public Vector3 UpVector { get; set; }

public Camera(Vector3 cameraPosition, Vector3 cameraLookAt, Vector3 upVector)
{
CameraPosition = cameraPosition;
CameraLookAt = cameraLookAt;
UpVector = upVector;
}
}
}
70 changes: 70 additions & 0 deletions Camera/Camera.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{2FFAD715-5103-415D-B7EB-6FDEB2E5865B}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Camera</RootNamespace>
<AssemblyName>Camera</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="OpenTK, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bad199fe84eb3df4, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\OpenTK\1.0\Binaries\OpenTK\Release\OpenTK.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Camera.cs" />
<Compile Include="CameraFactory.cs" />
<Compile Include="ICamera.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\CustomVertex\CustomVertex.csproj">
<Project>{d2d8fd2f-6d4b-41f0-b6d9-85a776c03fc7}</Project>
<Name>CustomVertex</Name>
</ProjectReference>
<ProjectReference Include="..\VertexBuffer\VertexBuffer.csproj">
<Project>{22bc5edd-c41c-412c-ad93-90bf63ee426c}</Project>
<Name>VertexBuffer</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
12 changes: 12 additions & 0 deletions Camera/CameraFactory.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using OpenTK;

namespace Camera
{
public class CameraFactory
{
public static ICamera Create(Vector3 cameraPosition, Vector3 cameraLookAt, Vector3 upVector)
{
return new Camera(cameraPosition, cameraLookAt, upVector);
}
}
}
11 changes: 11 additions & 0 deletions Camera/ICamera.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using OpenTK;

namespace Camera
{
public interface ICamera
{
Vector3 CameraPosition { get; set; }
Vector3 CameraLookAt { get; set; }
Vector3 UpVector { get; set; }
}
}
36 changes: 36 additions & 0 deletions Camera/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Camera")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Camera")]
[assembly: AssemblyCopyright("Copyright © 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("3bb7cd50-8ef5-41f6-bb36-f5b8c903ffa1")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Loading

0 comments on commit 7eaf5c2

Please sign in to comment.