예제 #1
0
        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);
        }
예제 #2
0
 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);
 }
예제 #3
0
 public GizomisidfojdsTSOmethign(InputSomethingOSDJFH input, IMesh sphereMesh, IMesh cubeMesh)
 {
     this.input      = input;
     this.sphereMesh = sphereMesh;
     this.cubeMesh   = cubeMesh;
 }