Skip to content

Instantly share code, notes, and snippets.

View KakCAT's full-sized avatar
💭
Getting hit by the spanish fascist police

KakCAT

💭
Getting hit by the spanish fascist police
View GitHub Profile
@KakCAT
KakCAT / boundingFrustumTest.cs
Created February 24, 2022 10:29
BoundingFrustum test
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);
// 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.
//
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
using System;
using System.Runtime.InteropServices;
using SharpDX.Mathematics.Interop;
using Microsoft.Xna.Framework;
namespace Snippets
{
static class PIXMarkers
{
// 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