1 // CSQC_UpdateView - Called every rendered frame on the client. Useful for HUD drawing operations.
\r
2 void CSQC_UpdateView(void)
\r
4 // ALWAYS Clear Current Scene First
\r
7 // Assign Standard Viewflags
\r
8 // Draw the World (and sky)
\r
9 R_SetView(VF_DRAWWORLD, 1);
\r
10 // Draw the Crosshair
\r
11 R_SetView(VF_DRAWCROSSHAIR, 1);
\r
12 // Draw the Engine Status Bar (the default Quake HUD)
\r
13 R_SetView(VF_DRAWENGINESBAR, 1);
\r
15 // Set the console size vars
\r
16 vid_conwidth = cvar("vid_conwidth");
\r
17 vid_conheight = cvar("vid_conheight");
\r
19 // Update the mouse position
\r
21 mousepos_x = vid_conwidth;
\r
22 mousepos_y = vid_conheight;
\r
23 mousepos = mousepos*0.5 + getmousepos();
\r
26 // Update the camera
\r
29 R_SetView(VF_ORIGIN, self.origin);
\r
30 R_SetView(VF_ANGLES, self.angles);
\r
33 // Setup Entities to be Rendered (include all base types; normal, engine and viewmodels)
\r
34 R_AddEntities(MASK_NORMAL | MASK_ENGINE | MASK_ENGINEVIEWMODELS);
\r
39 // Draw the mouse cursor
\r
40 // NOTE: drawpic must happen after R_RenderScene for some reason
\r
41 //drawpic(mousepos, "gfx/cursor.tga", '11 14 0', '1 1 1', 1, 0);
\r