public void Render()
            {
                //LogFile.WriteLine("singlefacedrawer.render");
                IRenderer renderer = RendererFactory.GetInstance();

                Gl.glClear(Gl.GL_COLOR_BUFFER_BIT | Gl.GL_DEPTH_BUFFER_BIT);
                Gl.glLoadIdentity();
                renderer.ApplyViewingMatrices();
                for (int i = 0; i < prim.NumFaces; i++)
                {
                    //  LogFile.WriteLine("face " + i);
                    HitTarget thishittarget = new HitTargetEntityFace(prim, i);
                    //LogFile.WriteLine( "Renderering " + thishittarget.ToString() );
                    Picker3dModelGl.GetInstance().AddHitTarget(thishittarget);
                    if (prim.Parent != null)
                    {
                        (prim.Parent as EntityGroup).ApplyTransforms();
                    }
                    prim.RenderSingleFace(i);
                }
            }
 public Picker3dController()
 {
     //picker3dmodel = RendererFactory.GetInstance().GetPicker3dModel();
     picker3dmodel = Picker3dModelGl.GetInstance();
 }
 public static IPicker3dModel GetPicker3dModel()
 {
     return(Picker3dModelGl.GetInstance());
 }