- added drawing test

- changed mipmap generation filters
This commit is contained in:
codeimp 2009-01-13 13:53:13 +00:00
parent 7317bd5b30
commit d08150ba80
4 changed files with 29 additions and 4 deletions

View file

@ -276,7 +276,7 @@ namespace CodeImp.DoomBuilder.Data
memstream.Seek(0, SeekOrigin.Begin);
texture = Texture.FromStream(General.Map.Graphics.Device, memstream, (int)memstream.Length,
img.Size.Width, img.Size.Height, mipmaplevels, Usage.None, Format.Unknown,
Pool.Managed, General.Map.Graphics.PostFilter, General.Map.Graphics.PostFilter, 0);
Pool.Managed, General.Map.Graphics.PostFilter, General.Map.Graphics.MipGenerateFilter, 0);
memstream.Dispose();
}
}

View file

@ -53,6 +53,7 @@ namespace CodeImp.DoomBuilder.Rendering
// Settings
private int adapter;
private Filter postfilter;
private Filter mipgeneratefilter;
// Main objects
private static Direct3D d3d;
@ -84,6 +85,7 @@ namespace CodeImp.DoomBuilder.Rendering
internal TextFont Font { get { return font; } }
internal Texture FontTexture { get { return fonttexture.Texture; } }
internal Filter PostFilter { get { return postfilter; } }
internal Filter MipGenerateFilter { get { return mipgeneratefilter; } }
#endregion
@ -229,11 +231,17 @@ namespace CodeImp.DoomBuilder.Rendering
// Shader settings
shaders.World3D.SetConstants(General.Settings.VisualBilinear, true);
// Texture loading filter
// Texture filters
if(General.Settings.QualityDisplay)
postfilter = Filter.Box;
{
postfilter = Filter.Point;
mipgeneratefilter = Filter.Box;
}
else
postfilter = Filter.Linear;
{
postfilter = Filter.Point;
mipgeneratefilter = Filter.Point;
}
// Initialize presentations
Presentation.Initialize();

View file

@ -0,0 +1,17 @@
type = "Doom Builder Map Settings Configuration";
gameconfig = "ZDoom_Doom.cfg";
maps
{
MAP01
{
resources
{
}
}
}

Binary file not shown.