private GraphicsLoop(InitFlags initFlags, RenderForm form, IGraphicsFacade graphicsFacade, RenderContext renderer) { _initFlags = initFlags; Form = form; GraphicsFacade = graphicsFacade; Renderer = renderer; RenderLoop = new RenderLoop(Form); Statistics = new GraphicsLoopStatistics(); Input = new InputSomethingOSDJFH(Form); }
public bool IsRunning(out IRenderContext renderer, out InputSomethingOSDJFH input) { Input.HandlePreWindowingEvents(); if (RenderLoop.NextFrame()) { GraphicsFacade.Device.DoEvents(); Statistics.HandleFrameEnter((_initFlags & InitFlags.EnableDebugStats) != 0 ? Form : null); Input.HandleFrameEnter(); renderer = Renderer; input = Input; return(true); } renderer = null; input = null; return(false); }
public GizomisidfojdsTSOmethign(InputSomethingOSDJFH input, IMesh sphereMesh, IMesh cubeMesh) { this.input = input; this.sphereMesh = sphereMesh; this.cubeMesh = cubeMesh; }