mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-18 07:52:07 +08:00
R26_dev8 - First public commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using SharpDX.Direct3D11;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace CodeWalker.Rendering
|
||||
{
|
||||
public interface DXForm
|
||||
{
|
||||
//unfortunately this can't be made a base class for the main render forms, because the
|
||||
//form designer causes an error when inheriting from a form in the same project, if
|
||||
//the architecture is set to x64. really annoying!
|
||||
//So, i've used an interface instead, since really just some of the form properties
|
||||
//and a couple of extra methods (these callbacks) are needed by DXManager.
|
||||
|
||||
Form Form { get; }
|
||||
|
||||
|
||||
void InitScene(Device device);
|
||||
void CleanupScene();
|
||||
void RenderScene(DeviceContext context);
|
||||
void BuffersResized(int w, int h);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user