]> icculus.org git repositories - divverent/nexuiz.git/blob - data/qcsrc/client/View.qc
Added a clientside QuakeC base by Dresk and myself. Included an example of a networke...
[divverent/nexuiz.git] / data / qcsrc / client / View.qc
1 // CSQC_UpdateView - Called every rendered frame on the client.  Useful for HUD drawing operations.\r
2 void CSQC_UpdateView(void)\r
3 {\r
4         // ALWAYS Clear Current Scene First\r
5         R_ClearScene();\r
6 \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
14 \r
15         // Set the console size vars\r
16         vid_conwidth = cvar("vid_conwidth");\r
17         vid_conheight = cvar("vid_conheight");\r
18 \r
19         // Update the mouse position\r
20         /*\r
21         mousepos_x = vid_conwidth;\r
22         mousepos_y = vid_conheight;\r
23         mousepos = mousepos*0.5 + getmousepos();\r
24         */\r
25 \r
26         // Update the camera\r
27         /*\r
28         UpdateCamera();\r
29         R_SetView(VF_ORIGIN, self.origin);\r
30         R_SetView(VF_ANGLES, self.angles);\r
31         */\r
32 \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
35         \r
36         // Render the Scene\r
37         R_RenderScene();\r
38 \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
42 }