forked from themrdemonized/xray-monolith
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathR_Backend_hemi.cpp
More file actions
47 lines (39 loc) · 999 Bytes
/
R_Backend_hemi.cpp
File metadata and controls
47 lines (39 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include "stdafx.h"
#pragma hdrstop
#include "r_backend_hemi.h"
R_hemi::R_hemi()
{
unmap();
}
void R_hemi::unmap()
{
c_pos_faces = 0;
c_neg_faces = 0;
c_material = 0;
c_hotness = 0; //--DSR-- HeatVision
c_glowing = 0; //--DSR-- SilencerOverheat
}
void R_hemi::set_pos_faces(float posx, float posy, float posz)
{
if (c_pos_faces) RCache.set_c(c_pos_faces, posx, posy, posz, 0);
}
void R_hemi::set_neg_faces(float negx, float negy, float negz)
{
if (c_neg_faces) RCache.set_c(c_neg_faces, negx, negy, negz, 0);
}
void R_hemi::set_material(float x, float y, float z, float w)
{
if (c_material) RCache.set_c(c_material, x, y, z, w);
}
//--DSR-- HeatVision_start
void R_hemi::set_hotness(float x, float y, float z, float w)
{
if (c_hotness) RCache.set_c(c_hotness, x, y, z, w);
}
//--DSR-- HeatVision_end
//--DSR-- SilencerOverheat_start
void R_hemi::set_glowing(float x, float y, float z, float w)
{
if (c_glowing) RCache.set_c(c_glowing, x, y, z, w);
}
//--DSR-- SilencerOverheat_end