void RenderableMinimap_WriteNextFrameEvent(Vector3 camerapos)
        {
            //Console.WriteLine( "RenderableMinimap_WriteNextFrameEvent" );
            GetDimensions();

            GraphicsHelperGl g = new GraphicsHelperGl();

            g.CheckError();
            //LogFile.WriteLine( windowwidth + " " + windowheight + " " + RendererSdl.GetInstance().OuterWindowWidth + " " + RendererSdl.GetInstance().OuterWindowHeight );
            g.ApplyOrtho(windowwidth, windowheight, RendererSdl.GetInstance().OuterWindowWidth, RendererSdl.GetInstance().OuterWindowHeight);
            g.CheckError();
            DrawMinimap();
            g.CheckError();
            DrawFrustrum(camerapos);
            g.CheckError();
            if (Render != null)
            {
                Render(minimapx, minimapy, minimapwidth, minimapheight);
            }
            g.CheckError();
            g.RemoveOrtho();
            g.CheckError();
        }
        void RenderableMinimap_WriteNextFrameEvent(Vector3 camerapos)
        {
            //Console.WriteLine( "RenderableMinimap_WriteNextFrameEvent" );
            GetDimensions();

            GraphicsHelperGl g = new GraphicsHelperGl();
            g.CheckError();
            //LogFile.WriteLine( windowwidth + " " + windowheight + " " + RendererSdl.GetInstance().OuterWindowWidth + " " + RendererSdl.GetInstance().OuterWindowHeight );
            g.ApplyOrtho( windowwidth, windowheight, RendererSdl.GetInstance().OuterWindowWidth, RendererSdl.GetInstance().OuterWindowHeight );
            g.CheckError();
            DrawMinimap();
            g.CheckError();
            DrawFrustrum(camerapos);
            g.CheckError();
            if (Render != null)
            {
                Render(minimapx, minimapy, minimapwidth, minimapheight);
            }
            g.CheckError();
            g.RemoveOrtho();
            g.CheckError();
        }