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

Class V

client/src/main/java/jake2/client/V.java:46–472  ·  view source on GitHub ↗

V

Source from the content-addressed store, hash-verified

44 * V
45 */
46public final class V extends Globals {
47
48 private static cvar_t cl_testblend;
49
50 private static cvar_t cl_testparticles;
51
52 private static cvar_t cl_testentities;
53
54 private static cvar_t cl_testlights;
55
56 private static cvar_t cl_flashlight;
57
58 private static cvar_t cl_stats;
59
60 private static int r_numdlights;
61
62 private static dlight_t[] r_dlights = new dlight_t[MAX_DLIGHTS];
63
64 private static int r_numentities;
65
66 private static entity_t[] r_entities = new entity_t[MAX_ENTITIES];
67
68 private static int r_numparticles;
69
70 //static particle_t[] r_particles = new particle_t[MAX_PARTICLES];
71
72 private static lightstyle_t[] r_lightstyles = new lightstyle_t[MAX_LIGHTSTYLES];
73 static {
74 for (int i = 0; i < r_dlights.length; i++)
75 r_dlights[i] = new dlight_t();
76 for (int i = 0; i < r_entities.length; i++)
77 r_entities[i] = new entity_t();
78 for (int i = 0; i < r_lightstyles.length; i++)
79 r_lightstyles[i] = new lightstyle_t();
80 }
81
82 /*
83 * ==================== V_ClearScene
84 *
85 * Specifies the model that will be used as the world ====================
86 */
87 private static void ClearScene() {
88 r_numdlights = 0;
89 r_numentities = 0;
90 r_numparticles = 0;
91 }
92
93 /*
94 * =====================
95 * V_AddEntity
96 * =====================
97 */
98 static void AddEntity(entity_t ent) {
99
100 if ((ent.flags & Defines.RF_VIEWERMODEL) != 0) { //here is our client
101 int i;
102 for (i=0;i < 3;i++)
103 ent.oldorigin[i] = ent.origin[i] = ClientGlobals.cl.predicted_origin[i];

Callers

nothing calls this directly

Calls 5

PrintfMethod · 0.95
sizeMethod · 0.80
RegisterModelMethod · 0.65
getMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected