2008-01-02 21:49:43 +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 System;
|
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Globalization;
|
|
|
|
using System.Text;
|
|
|
|
using System.Windows.Forms;
|
|
|
|
using System.IO;
|
|
|
|
using System.Reflection;
|
|
|
|
using System.Drawing;
|
|
|
|
using System.ComponentModel;
|
|
|
|
using CodeImp.DoomBuilder.Map;
|
|
|
|
using SlimDX.Direct3D9;
|
|
|
|
using SlimDX;
|
|
|
|
using CodeImp.DoomBuilder.Geometry;
|
|
|
|
using System.Drawing.Imaging;
|
|
|
|
using CodeImp.DoomBuilder.Data;
|
|
|
|
using CodeImp.DoomBuilder.Editing;
|
2008-11-19 16:18:36 +00:00
|
|
|
using CodeImp.DoomBuilder.VisualModes;
|
2008-01-02 21:49:43 +00:00
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
namespace CodeImp.DoomBuilder.Rendering
|
|
|
|
{
|
|
|
|
public interface IRenderer3D
|
|
|
|
{
|
2008-11-30 02:17:19 +00:00
|
|
|
// Properties
|
|
|
|
ProjectedFrustum2D Frustum2D { get; }
|
2008-12-15 22:13:24 +00:00
|
|
|
bool DrawThingCages { get; set; }
|
2009-01-04 11:59:24 +00:00
|
|
|
bool FullBrightness { get; set; }
|
2008-12-15 22:13:24 +00:00
|
|
|
|
2008-11-30 02:17:19 +00:00
|
|
|
// General methods
|
|
|
|
void PositionAndLookAt(Vector3D pos, Vector3D lookat);
|
|
|
|
|
|
|
|
// Presenting methods
|
2008-01-05 18:11:29 +00:00
|
|
|
void Finish();
|
|
|
|
bool Start();
|
|
|
|
void StartGeometry();
|
|
|
|
void FinishGeometry();
|
2008-11-30 02:17:19 +00:00
|
|
|
|
|
|
|
// Rendering methods
|
2009-04-15 22:16:30 +00:00
|
|
|
void SetHighlightedObject(IVisualPickable obj);
|
2008-12-09 22:51:27 +00:00
|
|
|
void AddSectorGeometry(VisualGeometry g);
|
|
|
|
void AddThingGeometry(VisualThing t);
|
2008-12-03 07:04:57 +00:00
|
|
|
void RenderCrosshair();
|
2008-12-04 22:35:45 +00:00
|
|
|
void SetFogMode(bool usefog);
|
2008-12-06 13:20:47 +00:00
|
|
|
void SetCrosshairBusy(bool busy);
|
2008-01-02 21:49:43 +00:00
|
|
|
}
|
|
|
|
}
|