DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ DrawCube()

static Shape Debug::DrawCube ( vector pos,
float size = 1,
int color = 0x1fff7f7f )
inlinestaticprivate

См. определение в файле Debug.c строка 299

300 {
301 vector min = pos;
302 vector max = pos;
303
304 float size_h = size * 0.5;
305
306 min[0] = min[0] - size_h;
307 min[1] = min[1] - size_h;
308 min[2] = min[2] - size_h;
309
310 max[0] = max[0] + size_h;
311 max[1] = max[1] + size_h;
312 max[2] = max[2] + size_h;
313
314 Shape shape = Shape.Create(ShapeType.DIAMOND, color, ShapeFlags.TRANSP|ShapeFlags.NOZWRITE, min, max);
315 m_DebugShapes.Insert(shape);
316 return shape;
317 }
static ref array< Shape > m_DebugShapes
Определения Debug.c:24
ShapeType
Определения EnDebug.c:116
ShapeFlags
Определения EnDebug.c:126
class DiagMenu Shape
don't call destructor directly. Use Destroy() instead

Перекрестные ссылки m_DebugShapes и Shape.