2010-08-26 21:47:25 +00:00
|
|
|
|
|
|
|
|
|
#region ================== Copyright (c) 2007 Pascal vd Heiden
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
|
|
|
|
|
* This program is released under GNU General Public License
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region ================== Namespaces
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
namespace CodeImp.DoomBuilder.Rendering
|
|
|
|
|
{
|
|
|
|
|
// This contains information to update surface entries with. This may exceed the maximum number
|
|
|
|
|
// of sector vertices, the surface manager will take care of splitting it up in several SurfaceEntries.
|
|
|
|
|
internal class SurfaceUpdate
|
|
|
|
|
{
|
2015-04-14 11:33:57 +00:00
|
|
|
|
public readonly int numvertices;
|
2018-04-10 17:54:57 +00:00
|
|
|
|
|
2010-08-26 21:47:25 +00:00
|
|
|
|
// Sector geometry (local copy used to quickly refill buffers)
|
|
|
|
|
// The sector must set these!
|
|
|
|
|
public FlatVertex[] floorvertices;
|
|
|
|
|
public FlatVertex[] ceilvertices;
|
|
|
|
|
|
|
|
|
|
// Sector images
|
|
|
|
|
// The sector must set these!
|
|
|
|
|
public long floortexture;
|
|
|
|
|
public long ceiltexture;
|
2018-04-10 17:54:57 +00:00
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
public float desaturation;
|
2010-08-26 21:47:25 +00:00
|
|
|
|
|
|
|
|
|
// Constructor
|
|
|
|
|
internal SurfaceUpdate(int numvertices, bool updatefloor, bool updateceiling)
|
|
|
|
|
{
|
|
|
|
|
this.numvertices = numvertices;
|
|
|
|
|
this.floortexture = 0;
|
|
|
|
|
this.ceiltexture = 0;
|
|
|
|
|
|
2015-04-14 11:33:57 +00:00
|
|
|
|
this.floorvertices = (updatefloor ? new FlatVertex[numvertices] : null);
|
|
|
|
|
this.ceilvertices = (updateceiling ? new FlatVertex[numvertices] : null);
|
2018-04-10 17:54:57 +00:00
|
|
|
|
|
|
|
|
|
this.desaturation = 0f;
|
2010-08-26 21:47:25 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|