MCPcopy Create free account
hub / github.com/demoth/jake2 / R_RenderView

Method R_RenderView

client/src/main/java/jake2/client/render/fast/Main.java:830–881  ·  view source on GitHub ↗

R_RenderView r_newrefdef must be set before the first call

(refdef_t fd)

Source from the content-addressed store, hash-verified

828 * r_newrefdef must be set before the first call
829 */
830 void R_RenderView(refdef_t fd) {
831
832 if (r_norefresh.value != 0.0f)
833 return;
834
835 r_newrefdef = fd;
836
837 // included by cwei
838 if (r_newrefdef == null) {
839 Com.Error(Defines.ERR_DROP, "R_RenderView: refdef_t fd is null");
840 }
841
842 if (r_worldmodel == null && (r_newrefdef.rdflags & Defines.RDF_NOWORLDMODEL) == 0)
843 Com.Error(Defines.ERR_DROP, "R_RenderView: NULL worldmodel");
844
845 if (r_speeds.value != 0.0f) {
846 c_brush_polys = 0;
847 c_alias_polys = 0;
848 }
849
850 R_PushDlights();
851
852 if (gl_finish.value != 0.0f)
853 gl.glFinish();
854
855 R_SetupFrame();
856
857 R_SetFrustum();
858
859 R_SetupGL();
860
861 R_MarkLeaves(); // done here so we know if we're in water
862
863 R_DrawWorld();
864
865 R_DrawEntitiesOnList();
866
867 R_RenderDlights();
868
869 R_DrawParticles();
870
871 R_DrawAlphaSurfaces();
872
873 R_Flash();
874
875 if (r_speeds.value != 0.0f) {
876 Com.Printf(
877 Defines.PRINT_ALL,
878 "%4i wpoly %4i epoly %i tex %i lmaps\n",
879 new Vargs(4).add(c_brush_polys).add(c_alias_polys).add(c_visible_textures).add(c_visible_lightmaps));
880 }
881 }
882
883 /**
884 * R_SetGL2D

Callers 1

R_RenderFrameMethod · 0.95

Calls 15

ErrorMethod · 0.95
R_PushDlightsMethod · 0.95
R_SetupFrameMethod · 0.95
R_SetFrustumMethod · 0.95
R_SetupGLMethod · 0.95
R_MarkLeavesMethod · 0.95
R_DrawWorldMethod · 0.95
R_DrawEntitiesOnListMethod · 0.95
R_RenderDlightsMethod · 0.95
R_DrawParticlesMethod · 0.95
R_DrawAlphaSurfacesMethod · 0.95
R_FlashMethod · 0.95

Tested by

no test coverage detected