2009-04-19 18:07:22 +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
|
|
|
|
|
|
|
|
using CodeImp.DoomBuilder.Map;
|
|
|
|
using CodeImp.DoomBuilder.Geometry;
|
|
|
|
using CodeImp.DoomBuilder.VisualModes;
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
namespace CodeImp.DoomBuilder.Rendering
|
|
|
|
{
|
|
|
|
public interface IRenderer3D
|
|
|
|
{
|
|
|
|
// Properties
|
|
|
|
ProjectedFrustum2D Frustum2D { get; }
|
|
|
|
bool DrawThingCages { get; set; }
|
|
|
|
bool FullBrightness { get; set; }
|
2009-07-07 14:52:39 +00:00
|
|
|
bool ShowSelection { get; set; }
|
|
|
|
bool ShowHighlight { get; set; }
|
2009-04-19 18:07:22 +00:00
|
|
|
|
|
|
|
// General methods
|
|
|
|
void PositionAndLookAt(Vector3D pos, Vector3D lookat);
|
|
|
|
|
|
|
|
// Presenting methods
|
|
|
|
void Finish();
|
|
|
|
bool Start();
|
|
|
|
void StartGeometry();
|
|
|
|
void FinishGeometry();
|
|
|
|
|
|
|
|
// Rendering methods
|
2009-07-12 09:58:05 +00:00
|
|
|
int CalculateBrightness(int level);
|
2013-09-11 09:47:53 +00:00
|
|
|
//mxd
|
|
|
|
int CalculateBrightness(int level, Sidedef sd);
|
2012-06-01 10:17:47 +00:00
|
|
|
|
2009-04-19 18:07:22 +00:00
|
|
|
void SetHighlightedObject(IVisualPickable obj);
|
|
|
|
void AddSectorGeometry(VisualGeometry g);
|
|
|
|
void AddThingGeometry(VisualThing t);
|
2013-03-18 13:52:27 +00:00
|
|
|
void AddVisualVertices(VisualVertex[] verts);
|
2009-04-19 18:07:22 +00:00
|
|
|
void RenderCrosshair();
|
|
|
|
void SetFogMode(bool usefog);
|
|
|
|
void SetCrosshairBusy(bool busy);
|
|
|
|
}
|
|
|
|
}
|