-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pulled in monogame dependencies to avoid compatibility breaks.
- Loading branch information
1 parent
313261a
commit 7a2c63a
Showing
53 changed files
with
337 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# No value in any of the docu-.xmls in this path. | ||
*.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<MonoGameInstallDirectory Condition=" '$(MonoGameInstallDirectory)' == '' And Exists('/usr/lib/mono/xbuild/MonoGame/v3.0/MonoGame.Common.props') ">/usr/lib/mono/xbuild/</MonoGameInstallDirectory> | ||
<MonoGameInstallDirectory Condition=" '$(MonoGameInstallDirectory)' == '' And Exists('/Library/Frameworks/Mono.framework/External/xbuild/MonoGame/v3.0/MonoGame.Common.props') ">/Library/Frameworks/Mono.framework/External/xbuild</MonoGameInstallDirectory> | ||
<MonoGameInstallDirectory Condition=" '$(MonoGameInstallDirectory)' == '' ">$(MSBuildProgramFiles32)</MonoGameInstallDirectory> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
<!-- | ||
MonoGame - Copyright (C) The MonoGame Team | ||
This file is subject to the terms and conditions defined in | ||
file 'LICENSE.txt', which is part of this source code package. | ||
--> | ||
|
||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
|
||
<!-- Add MonoGameContentReference to item type selection in Visual Studio --> | ||
<ItemGroup> | ||
<AvailableItemName Include="MonoGameContentReference" /> | ||
</ItemGroup> | ||
|
||
<!-- This disables the IDE feature that skips executing msbuild in some build situations. --> | ||
<PropertyGroup> | ||
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck> | ||
</PropertyGroup> | ||
|
||
<Target Name="Prepare"> | ||
|
||
<PropertyGroup> | ||
|
||
<ContentRootDirectory Condition=" '$(ContentRootDirectory)' == '' " >Content</ContentRootDirectory> | ||
<ParentOutputDir Condition=" '$(ParentOutputDir)' == '' " >$(ProjectDir)$(ContentRootDirectory)\bin\$(MonoGamePlatform)</ParentOutputDir> | ||
<ParentIntermediateDir Condition=" '$(ParentIntermediateDir)' == '' " >$(ProjectDir)$(ContentRootDirectory)\obj\$(MonoGamePlatform)</ParentIntermediateDir> | ||
|
||
<!-- El Capitan Support --> | ||
<MonoExe Condition=" '$(OS)' != 'Windows_NT' And Exists ('/Library/Frameworks/Mono.framework/Versions/Current/bin/mono') ">/Library/Frameworks/Mono.framework/Versions/Current/bin/mono</MonoExe> | ||
<MonoExe Condition=" '$(OS)' != 'Windows_NT' And Exists ('/usr/local/bin/mono') ">/usr/local/bin/mono</MonoExe> | ||
<MonoExe Condition=" '$(OS)' != 'Windows_NT' And Exists ('/usr/bin/mono') ">/usr/bin/mono</MonoExe> | ||
<MonoExe Condition=" '$(OS)' != 'Windows_NT' And '$(MonoExe)' == '' ">mono</MonoExe> | ||
|
||
<MonoGameContentBuilderExe Condition="'$(MonoGameContentBuilderExe)' == ''">$(MSBuildThisFileDirectory)Tools\MGCB.exe</MonoGameContentBuilderExe> | ||
<MonoGameContentBuilderCmd>"$(MonoGameContentBuilderExe)"</MonoGameContentBuilderCmd> | ||
<MonoGameContentBuilderCmd Condition=" '$(OS)' != 'Windows_NT' ">$(MonoExe) $(MonoGameContentBuilderCmd)</MonoGameContentBuilderCmd> | ||
|
||
<PlatformResourcePrefix Condition="'$(MonoGamePlatform)' == 'MacOSX' Or '$(MonoGamePlatform)' == 'iOS'">Resources\</PlatformResourcePrefix> | ||
<PlatformResourcePrefix Condition="'$(MonoGamePlatform)' == 'Android'">Assets\</PlatformResourcePrefix> | ||
<PlatformResourcePrefix Condition="'$(PlatformResourcePrefix)' == ''"></PlatformResourcePrefix> | ||
|
||
<Header>/platform:$(MonoGamePlatform) /outputDir:"$(ParentOutputDir)" /intermediateDir:"$(ParentIntermediateDir)" /quiet</Header> | ||
</PropertyGroup> | ||
|
||
<!-- Get all Mono Game Content References and store them in a list --> | ||
<!-- We do this here so we are compatible with xbuild --> | ||
<ItemGroup> | ||
<ContentReferences Include="@(MonoGameContentReference)"/> | ||
</ItemGroup> | ||
|
||
<Error Text="The MonoGamePlatform property was not defined in the project! It must be set to Windows, WindowsGL, WindowsStoreApp, WindowsPhone8, MacOSX, iOS, Linux, DesktopGL, RaspberryPi, Android, Ouya, NativeClient, PlayStation4, or PlayStationMobile." | ||
Condition=" '$(MonoGamePlatform)' != 'Windows' And | ||
'$(MonoGamePlatform)' != 'iOS' And | ||
'$(MonoGamePlatform)' != 'Android' And | ||
'$(MonoGamePlatform)' != 'Linux' And | ||
'$(MonoGamePlatform)' != 'DesktopGL' And | ||
'$(MonoGamePlatform)' != 'MacOSX' And | ||
'$(MonoGamePlatform)' != 'WindowsStoreApp' And | ||
'$(MonoGamePlatform)' != 'NativeClient' And | ||
'$(MonoGamePlatform)' != 'Ouya' And | ||
'$(MonoGamePlatform)' != 'PlayStationMobile' And | ||
'$(MonoGamePlatform)' != 'WindowsPhone8' And | ||
'$(MonoGamePlatform)' != 'RaspberryPi' And | ||
'$(MonoGamePlatform)' != 'PlayStation4' And | ||
'$(MonoGamePlatform)' != 'WindowsGL'" /> | ||
|
||
<Error | ||
Text="The MonoGame content builder executable could not be located at '$(MonoGameContentBuilderExe)'!" | ||
Condition="!Exists('$(MonoGameContentBuilderExe)')" | ||
/> | ||
|
||
<Warning | ||
Text="No Content References Found. Please make sure your .mgcb file has a build action of MonoGameContentReference" | ||
Condition=" '%(ContentReferences.FullPath)' == '' " | ||
/> | ||
|
||
<MakeDir Directories="$(ParentIntermediateDir)"/> | ||
<MakeDir Directories="$(ParentOutputDir)"/> | ||
|
||
</Target> | ||
|
||
<PropertyGroup> | ||
<BuildDependsOn> | ||
BuildContent; | ||
$(BuildDependsOn); | ||
</BuildDependsOn> | ||
</PropertyGroup> | ||
|
||
<Target Name="RunContentBuilder"> | ||
<Exec Condition=" '%(ContentReferences.FullPath)' != '' " Command="$(MonoGameContentBuilderCmd) /@:"%(ContentReferences.FullPath)" $(Header)" | ||
WorkingDirectory="%(ContentReferences.RootDir)%(ContentReferences.Directory)" /> | ||
|
||
<CreateItem Include="$(ParentOutputDir)\**\*.*"> | ||
<Output TaskParameter="Include" ItemName="ExtraContent" /> | ||
</CreateItem> | ||
</Target> | ||
|
||
<Target Name="BuildContent" DependsOnTargets="Prepare;RunContentBuilder" | ||
Outputs="%(ExtraContent.RecursiveDir)%(ExtraContent.Filename)%(ExtraContent.Extension)"> | ||
<CreateItem Include="$(ParentOutputDir)\%(ExtraContent.RecursiveDir)%(ExtraContent.Filename)%(ExtraContent.Extension)" | ||
AdditionalMetadata="Link=$(PlatformResourcePrefix)$(ContentRootDirectory)\%(ExtraContent.RecursiveDir)%(ExtraContent.Filename)%(ExtraContent.Extension);CopyToOutputDirectory=PreserveNewest" | ||
Condition="'%(ExtraContent.Filename)' != ''"> | ||
<Output TaskParameter="Include" ItemName="Content" Condition="'$(MonoGamePlatform)' != 'Android' And '$(MonoGamePlatform)' != 'iOS' And '$(MonoGamePlatform)' != 'MacOSX'" /> | ||
<Output TaskParameter="Include" ItemName="BundleResource" Condition="'$(MonoGamePlatform)' == 'MacOSX' Or '$(MonoGamePlatform)' == 'iOS'" /> | ||
<Output TaskParameter="Include" ItemName="AndroidAsset" Condition="'$(MonoGamePlatform)' == 'Android'" /> | ||
</CreateItem> | ||
</Target> | ||
|
||
</Project> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<configuration> | ||
<dllmap os="linux" dll="TextureConverter.dll" target="libTextureConverter.so"/> | ||
<dllmap os="osx" dll="TextureConverter.dll" target="libTextureConverter.dylib"/> | ||
</configuration> |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<configuration> | ||
<dllmap os="macos" dll="assimp.dll" target="libassimp.dylib"/> | ||
<dllmap os="linux" dll="assimp.dll" target="libassimp.so"/> | ||
</configuration> | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?xml version="1.0"?> | ||
<configuration> | ||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup></configuration> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<configuration> | ||
|
||
<dllmap os="macos" dll="nvtt.dll" target="libnvtt.dylib"/> | ||
|
||
<dllmap os="linux" dll="nvtt.dll" target="libnvtt.so"/> | ||
|
||
</configuration> | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<configuration> | ||
<dllmap os="linux" dll="PVRTexLibWrapper.dll" cpu="x86-64" target="libPVRTexLibWrapper.so"/> | ||
<dllmap os="osx" dll="PVRTexLibWrapper.dll" target="libPVRTexLibWrapper.dylib"/> | ||
</configuration> |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> | ||
</startup> | ||
</configuration> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<configuration> | ||
<dllmap dll="freetype6.dll"> | ||
<dllentry os="linux" dll="libfreetype.so.6" /> | ||
<dllentry os="osx" dll="libfreetype.6.dylib" /> | ||
</dllmap> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#if OPENGL | ||
#define SV_POSITION POSITION | ||
#define VS_SHADERMODEL vs_3_0 | ||
#define PS_SHADERMODEL ps_3_0 | ||
#else | ||
#define VS_SHADERMODEL vs_4_0_level_9_1 | ||
#define PS_SHADERMODEL ps_4_0_level_9_1 | ||
#endif | ||
|
||
matrix WorldViewProjection; | ||
|
||
struct VertexShaderInput | ||
{ | ||
float4 Position : SV_POSITION; | ||
float4 Color : COLOR0; | ||
}; | ||
|
||
struct VertexShaderOutput | ||
{ | ||
float4 Position : SV_POSITION; | ||
float4 Color : COLOR0; | ||
}; | ||
|
||
VertexShaderOutput MainVS(in VertexShaderInput input) | ||
{ | ||
VertexShaderOutput output = (VertexShaderOutput)0; | ||
|
||
output.Position = mul(input.Position, WorldViewProjection); | ||
output.Color = input.Color; | ||
|
||
return output; | ||
} | ||
|
||
float4 MainPS(VertexShaderOutput input) : COLOR | ||
{ | ||
return input.Color; | ||
} | ||
|
||
technique BasicColorDrawing | ||
{ | ||
pass P0 | ||
{ | ||
VertexShader = compile VS_SHADERMODEL MainVS(); | ||
PixelShader = compile PS_SHADERMODEL MainPS(); | ||
} | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Effect | ||
Effect.png | ||
EffectImporter | ||
EffectProcessor | ||
Effect.fx |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#if OPENGL | ||
#define SV_POSITION POSITION | ||
#define VS_SHADERMODEL vs_3_0 | ||
#define PS_SHADERMODEL ps_3_0 | ||
#else | ||
#define VS_SHADERMODEL vs_4_0_level_9_1 | ||
#define PS_SHADERMODEL ps_4_0_level_9_1 | ||
#endif | ||
|
||
Texture2D SpriteTexture; | ||
|
||
sampler2D SpriteTextureSampler = sampler_state | ||
{ | ||
Texture = <SpriteTexture>; | ||
}; | ||
|
||
struct VertexShaderOutput | ||
{ | ||
float4 Position : SV_POSITION; | ||
float4 Color : COLOR0; | ||
float2 TextureCoordinates : TEXCOORD0; | ||
}; | ||
|
||
float4 MainPS(VertexShaderOutput input) : COLOR | ||
{ | ||
return tex2D(SpriteTextureSampler,input.TextureCoordinates) * input.Color; | ||
} | ||
|
||
technique SpriteDrawing | ||
{ | ||
pass P0 | ||
{ | ||
PixelShader = compile PS_SHADERMODEL MainPS(); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Sprite Effect | ||
Effect.png | ||
EffectImporter | ||
EffectProcessor | ||
SpriteEffect.fx |
Oops, something went wrong.