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
#region File Description | |
//----------------------------------------------------------------------------- | |
// GraphicsDeviceControl.cs | |
// | |
// Microsoft XNA Community Game Platform | |
// Copyright (C) Microsoft Corporation. All rights reserved. | |
//----------------------------------------------------------------------------- | |
#endregion | |
#region Using Statements |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<CoreCompileDependsOn>CompileEffect;$(CoreCompileDependsOn)</CoreCompileDependsOn> | |
<UseHostCompilerIfAvailable>false</UseHostCompilerIfAvailable> | |
</PropertyGroup> | |
<Target Name="CompileEffect" Inputs="@(FxCompile)" Outputs="@(FxCompile->'%(RelativeDir)%(Filename).mgfxo')"> | |
<Exec Command=""$(MSBuildProgramFiles32)\MSBuild\MonoGame\v3.0\Tools\2MGFX.exe" "%(FxCompile.Identity)" "@(FxCompile->'%(RelativeDir)%(Filename).mgfxo')" /Profile:DirectX_11" /> |
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
////////////////////////////////////////////////////////////////////////// | |
public static System.Drawing.Image TextureToImage(SmartTexture texture) | |
{ | |
// SaveAsPng is buggy in monogame (it's actually a compression bug in ZlibStream) | |
//Image img; | |
//using (MemoryStream ms = new MemoryStream()) | |
//{ | |
// texture.SaveAsPng(ms, texture.Width, texture.Height); | |
// ms.Seek(0, SeekOrigin.Begin); |
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
using System; | |
namespace DeadCode.Slate.World2D | |
{ | |
public class WorldTime : IEquatable<WorldTime> | |
{ | |
private int m_TotalDays; | |
////////////////////////////////////////////////////////////////////////// | |
public int TotalDays |