Ejemplo n.º 1
0
        public static void RB_DrawView(DrawSurfsCommand data)
        {
            var cmd = data;

            backEnd.viewDef = cmd.viewDef;

            // we will need to do a new copyTexSubImage of the screen when a SS_POST_PROCESS material is used
            backEnd.currentRenderCopied = false;

            // if there aren't any drawsurfs, do nothing
            if (backEnd.viewDef.numDrawSurfs == 0)
            {
                return;
            }

            // skip render bypasses everything that has models, assuming them to be 3D views, but leaves 2D rendering visible
            if (r_skipRender.Bool && backEnd.viewDef.viewEntitys != null)
            {
                return;
            }

            backEnd.pc.c_surfaces += backEnd.viewDef.numDrawSurfs;

            // render the scene, jumping to the hardware specific interaction renderers
            RB_RenderView();
        }
Ejemplo n.º 2
0
 public void Set(DrawSurfsCommand lockSurfacesCmd)
 {
     throw new NotImplementedException();
 }