mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 14:31:50 +00:00
- added drawing test
- changed mipmap generation filters
This commit is contained in:
parent
7317bd5b30
commit
d08150ba80
4 changed files with 29 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
17
Tests/Drawing/VerticalCCAutoCloseOnVertices.dbs
Normal file
17
Tests/Drawing/VerticalCCAutoCloseOnVertices.dbs
Normal file
|
@ -0,0 +1,17 @@
|
|||
type = "Doom Builder Map Settings Configuration";
|
||||
gameconfig = "ZDoom_Doom.cfg";
|
||||
|
||||
maps
|
||||
{
|
||||
|
||||
MAP01
|
||||
{
|
||||
|
||||
resources
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
BIN
Tests/Drawing/VerticalCCAutoCloseOnVertices.wad
Normal file
BIN
Tests/Drawing/VerticalCCAutoCloseOnVertices.wad
Normal file
Binary file not shown.
Loading…
Reference in a new issue