Przeglądaj źródła

Added RenderTarget Sample

kjpou1 13 lat temu
rodzic
commit
fbe6b9cadb

+ 20 - 0
Samples/Linux/RenderTarget2DSample/Program.cs

@@ -0,0 +1,20 @@
+using System;
+
+namespace RenderTarget2DSample
+{
+    static class Program
+    {
+        /// <summary>
+        /// The main entry point for the application.
+        /// </summary>
+        static void Main(string[] args)
+        {
+            using (Game1 game = new Game1())
+            {
+                game.Run();
+            }
+        }
+    }
+}
+
+

+ 70 - 0
Samples/Linux/RenderTarget2DSample/RenderTarget2DSample.csproj

@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>10.0.0</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{DED4371E-B92B-46FC-B4A3-B56BCAE12477}</ProjectGuid>
+    <OutputType>Exe</OutputType>
+    <RootNamespace>RenderTarget2DSample</RootNamespace>
+    <AssemblyName>RenderTarget2DSample</AssemblyName>
+    <StartupObject>RenderTarget2DSample.Program</StartupObject>
+    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug</OutputPath>
+    <DefineConstants>DEBUG</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+    <ConsolePause>false</ConsolePause>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>none</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Release</OutputPath>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+    <ConsolePause>false</ConsolePause>
+  </PropertyGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <ItemGroup>
+    <ProjectReference Include="..\..\..\..\MonoGame\MonoGame.Framework\MonoGame.Framework.Linux.csproj">
+      <Project>{35253CE1-C864-4CD3-8249-4D1319748E8F}</Project>
+      <Name>MonoGame.Framework.Linux</Name>
+    </ProjectReference>
+  </ItemGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="..\..\MacOS\RenderTarget2DSample\Background.png">
+      <Link>Background.png</Link>
+    </None>
+    <None Include="..\..\MacOS\RenderTarget2DSample\Game.ico">
+      <Link>Game.ico</Link>
+    </None>
+    <None Include="..\..\MacOS\RenderTarget2DSample\GameThumbnail.png">
+      <Link>GameThumbnail.png</Link>
+    </None>
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="..\..\MacOS\RenderTarget2DSample\Game1.cs">
+      <Link>Game1.cs</Link>
+    </Compile>
+    <Compile Include="Program.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <Content Include="..\..\MacOS\RenderTarget2DSample\Content\MooTheMerciless.xnb">
+      <Link>Content\MooTheMerciless.xnb</Link>
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
+    <Content Include="..\..\MacOS\RenderTarget2DSample\Content\wood.xnb">
+      <Link>Content\wood.xnb</Link>
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
+  </ItemGroup>
+</Project>

+ 23 - 1
Samples/MonoGame.Samples.Linux.sln

@@ -27,6 +27,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ParticleSample", "Linux\Par
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GooCursor", "Linux\GooCursor\GooCursor.csproj", "{EA7CF275-795B-4385-80AA-C41DA3B9B0F9}"
 EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RenderTarget2DSample", "Linux\RenderTarget2DSample\RenderTarget2DSample.csproj", "{DED4371E-B92B-46FC-B4A3-B56BCAE12477}"
+EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Any CPU = Debug|Any CPU
@@ -261,6 +263,26 @@ Global
 		{D0E05092-60B2-47FF-B924-D5CDED0C0DD1}.Release|Mixed Platforms.Build.0 = Release|x86
 		{D0E05092-60B2-47FF-B924-D5CDED0C0DD1}.Release|x86.ActiveCfg = Release|x86
 		{D0E05092-60B2-47FF-B924-D5CDED0C0DD1}.Release|x86.Build.0 = Release|x86
+		{DED4371E-B92B-46FC-B4A3-B56BCAE12477}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{DED4371E-B92B-46FC-B4A3-B56BCAE12477}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{DED4371E-B92B-46FC-B4A3-B56BCAE12477}.Debug|iPhone.ActiveCfg = Debug|Any CPU
+		{DED4371E-B92B-46FC-B4A3-B56BCAE12477}.Debug|iPhone.Build.0 = Debug|Any CPU
+		{DED4371E-B92B-46FC-B4A3-B56BCAE12477}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
+		{DED4371E-B92B-46FC-B4A3-B56BCAE12477}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
+		{DED4371E-B92B-46FC-B4A3-B56BCAE12477}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+		{DED4371E-B92B-46FC-B4A3-B56BCAE12477}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+		{DED4371E-B92B-46FC-B4A3-B56BCAE12477}.Debug|x86.ActiveCfg = Debug|Any CPU
+		{DED4371E-B92B-46FC-B4A3-B56BCAE12477}.Debug|x86.Build.0 = Debug|Any CPU
+		{DED4371E-B92B-46FC-B4A3-B56BCAE12477}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{DED4371E-B92B-46FC-B4A3-B56BCAE12477}.Release|Any CPU.Build.0 = Release|Any CPU
+		{DED4371E-B92B-46FC-B4A3-B56BCAE12477}.Release|iPhone.ActiveCfg = Release|Any CPU
+		{DED4371E-B92B-46FC-B4A3-B56BCAE12477}.Release|iPhone.Build.0 = Release|Any CPU
+		{DED4371E-B92B-46FC-B4A3-B56BCAE12477}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
+		{DED4371E-B92B-46FC-B4A3-B56BCAE12477}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
+		{DED4371E-B92B-46FC-B4A3-B56BCAE12477}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+		{DED4371E-B92B-46FC-B4A3-B56BCAE12477}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+		{DED4371E-B92B-46FC-B4A3-B56BCAE12477}.Release|x86.ActiveCfg = Release|Any CPU
+		{DED4371E-B92B-46FC-B4A3-B56BCAE12477}.Release|x86.Build.0 = Release|Any CPU
 		{EA7CF275-795B-4385-80AA-C41DA3B9B0F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 		{EA7CF275-795B-4385-80AA-C41DA3B9B0F9}.Debug|Any CPU.Build.0 = Debug|Any CPU
 		{EA7CF275-795B-4385-80AA-C41DA3B9B0F9}.Debug|iPhone.ActiveCfg = Debug|Any CPU
@@ -303,7 +325,7 @@ Global
 		{EB1F36EC-5DB8-41AC-AB99-E9337239A9F9}.Release|x86.Build.0 = Release|Any CPU
 	EndGlobalSection
 	GlobalSection(MonoDevelopProperties) = preSolution
-		StartupItem = Linux\GooCursor\GooCursor.csproj
+		StartupItem = Linux\RenderTarget2DSample\RenderTarget2DSample.csproj
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE