PsmFramework.Engines.DrawEngine2d.DrawEngine2d.InitializeGraphicsContext C# (CSharp) Method

InitializeGraphicsContext() private method

private InitializeGraphicsContext ( GraphicsContext graphicsContext, CoordinateSystemMode coordinateSystemMode ) : void
graphicsContext GraphicsContext
coordinateSystemMode CoordinateSystemMode
return void
        private void InitializeGraphicsContext(GraphicsContext graphicsContext, CoordinateSystemMode coordinateSystemMode)
        {
            GraphicsContext = graphicsContext;
            CoordinateSystemMode = coordinateSystemMode;

            ScreenWidth = GraphicsContext.Screen.Rectangle.Width;
            ScreenHeight = GraphicsContext.Screen.Rectangle.Height;

            FrameBuffer fb = GraphicsContext.GetFrameBuffer();

            FrameBufferWidth = fb.Width;
            FrameBufferHeight = fb.Height;

            FrameBufferWidthAsSingle = (Single)FrameBufferWidth;
            FrameBufferHeightAsSingle = (Single)FrameBufferHeight;
        }