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
static void testFunction () | |
{ | |
Vector3 camPos,camDir; | |
// test camera looking into X direction | |
camPos=new Vector3 (0,0,0); | |
camDir=new Vector3 (1,0,0); | |
doFrustumTest (camPos,camDir); |
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
// Patch to detect GPU memory leaks | |
// the code of the patch is marked with //////////patch | |
#region License | |
// /* | |
// Microsoft Public License (Ms-PL) | |
// MonoGame - Copyright © 2009 The MonoGame Team | |
// | |
// All rights reserved. | |
// |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Assimp; // note: install AssimpNET 4.1 via nuget | |
namespace assimpDataDump |
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; | |
using System.Runtime.InteropServices; | |
using SharpDX.Mathematics.Interop; | |
using Microsoft.Xna.Framework; | |
namespace Snippets | |
{ | |
static class PIXMarkers | |
{ |
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
// 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. | |
using SharpDX.Direct3D11; | |
using SharpDX.Mathematics.Interop; | |
using System.Collections.Generic; | |
using System.Runtime.InteropServices; | |
namespace Microsoft.Xna.Framework.Graphics |