- removed ANX.BaseDirectX and replaced it using shared source files - renamed ANX.Framework.Windows.DX10 to ANX.RenderSystem.Windows.DX10 - some refactoring in ANX.RenderSystem.Windows.DX10 - some refactoring in ANX.RenderSystem.Windows.DX11 - fixed some minor issues in DX10 stock shader generation - fixed sample projects There's still an issue with the AddIn-System: The WindowsGame sample does not work currently.
40 lines
1.0 KiB
C#
40 lines
1.0 KiB
C#
using System;
|
|
using System.IO;
|
|
using SharpDX.D3DCompiler;
|
|
|
|
// This file is part of the ANX.Framework created by the
|
|
// "ANX.Framework developer group" and released under the Ms-PL license.
|
|
// For details see: http://anxframework.codeplex.com/license
|
|
|
|
namespace ANX.RenderSystem.DirectX
|
|
{
|
|
public class IncludeHandler : Include
|
|
{
|
|
private string directory;
|
|
|
|
public IDisposable Shadow { get; set; }
|
|
|
|
public IncludeHandler(string directory)
|
|
{
|
|
this.directory = directory;
|
|
}
|
|
|
|
public void Close(Stream stream)
|
|
{
|
|
stream.Close();
|
|
}
|
|
|
|
public Stream Open(IncludeType type, string fileName, Stream parentStream)
|
|
{
|
|
//Console.WriteLine("Including {0} file {1} from directory {2}", type.ToString(), fileName, directory);
|
|
|
|
return File.OpenRead(Path.Combine(directory, fileName));
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|