MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / glBox

Function glBox

libs/splines/splines.cpp:110–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108
109
110void glBox(idVec3 &color, idVec3 &point, float size) {
111 idVec3 mins(point);
112 idVec3 maxs(point);
113 mins[0] -= size;
114 mins[1] += size;
115 mins[2] -= size;
116 maxs[0] += size;
117 maxs[1] -= size;
118 maxs[2] += size;
119 glColor3fv(color);
120 glBegin(GL_LINE_LOOP);
121 glVertex3f(mins[0],mins[1],mins[2]);
122 glVertex3f(maxs[0],mins[1],mins[2]);
123 glVertex3f(maxs[0],maxs[1],mins[2]);
124 glVertex3f(mins[0],maxs[1],mins[2]);
125 glEnd();
126 glBegin(GL_LINE_LOOP);
127 glVertex3f(mins[0],mins[1],maxs[2]);
128 glVertex3f(maxs[0],mins[1],maxs[2]);
129 glVertex3f(maxs[0],maxs[1],maxs[2]);
130 glVertex3f(mins[0],maxs[1],maxs[2]);
131 glEnd();
132
133 glBegin(GL_LINES);
134 glVertex3f(mins[0],mins[1],mins[2]);
135 glVertex3f(mins[0],mins[1],maxs[2]);
136 glVertex3f(mins[0],maxs[1],maxs[2]);
137 glVertex3f(mins[0],maxs[1],mins[2]);
138 glVertex3f(maxs[0],mins[1],mins[2]);
139 glVertex3f(maxs[0],mins[1],maxs[2]);
140 glVertex3f(maxs[0],maxs[1],maxs[2]);
141 glVertex3f(maxs[0],maxs[1],mins[2]);
142 glEnd();
143
144}
145
146void splineTest() {
147 //g_splineList->load("p:/doom/base/maps/test_base1.camera");

Callers 2

drawMethod · 0.85
drawSelectionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected