crusty old project that couldnt possibly be working now compiles and still doesnt work

This commit is contained in:
zeromus 2016-02-22 07:17:32 -06:00
parent 7abac10164
commit f96110e09e
2 changed files with 10 additions and 9 deletions

View File

@ -8,14 +8,14 @@ namespace BizHawk.Client.MultiHawk
{
public static Mainform MainForm;
//public static ToolManager Tools;
//public static IGL GL;
//public static Bizware.BizwareGL.Drivers.OpenTK.IGL_TK IGL_GL;
//public static GLManager.ContextRef CR_GL;
public static IGL GL;
public static Bizware.BizwareGL.Drivers.OpenTK.IGL_TK IGL_GL;
public static BizHawk.Client.EmuHawk.GLManager.ContextRef CR_GL;
//public static Sound Sound;
//public static PresentationPanel PresentationPanel;
//public static OSDManager OSD = new OSDManager();
//public static DisplayManager DisplayManager;
//public static GLManager GLManager;
public static BizHawk.Client.EmuHawk.GLManager GLManager;
//input state which has been destined for game controller inputs are coalesced here
//public static ControllerInputCoalescer ControllerInputCoalescer = new ControllerInputCoalescer();

View File

@ -33,7 +33,7 @@ namespace BizHawk.Client.MultiHawk
public Mainform(string[] args)
{
GLManager.CreateInstance();
GLManager.CreateInstance(GlobalWin.IGL_GL);
InitializeComponent();
_throttle = new BizHawk.Client.EmuHawk.Throttle();
@ -319,15 +319,16 @@ namespace BizHawk.Client.MultiHawk
Text = Path.GetFileNameWithoutExtension(StripArchivePath(path)),
Emulator = loader.LoadedEmulator,
GL = new Bizware.BizwareGL.Drivers.OpenTK.IGL_TK(),
GL = new Bizware.BizwareGL.Drivers.OpenTK.IGL_TK(2,0,false),
GLManager = GLManager.Instance,
Game = loader.Game,
CurrentRomPath = loader.CanonicalFullPath
};
nextComm.RequestGLContext = () => ew.GLManager.CreateGLContext();
nextComm.ActivateGLContext = (gl) => ew.GLManager.Activate((GLManager.ContextRef)ew.GL);
nextComm.DeactivateGLContext = () => ew.GLManager.Deactivate();
nextComm.ReleaseGLContext = (o) => GlobalWin.GLManager.ReleaseGLContext(o);
nextComm.RequestGLContext = (major, minor, forward) => GlobalWin.GLManager.CreateGLContext(major, minor, forward);
nextComm.ActivateGLContext = (gl) => GlobalWin.GLManager.Activate((GLManager.ContextRef)gl);
nextComm.DeactivateGLContext = () => GlobalWin.GLManager.Deactivate();
ew.CoreComm = nextComm;
ew.Init();