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

◆ DrawCube()

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

См. определение в файле 3_Game/DayZ/tools/Debug.c строка 362

363 {
364 vector min = pos;
365 vector max = pos;
366
367 float size_h = size * 0.5;
368
369 min[0] = min[0] - size_h;
370 min[1] = min[1] - size_h;
371 min[2] = min[2] - size_h;
372
373 max[0] = max[0] + size_h;
374 max[1] = max[1] + size_h;
375 max[2] = max[2] + size_h;
376
377 Shape shape = Shape.Create(ShapeType.DIAMOND, color, ShapeFlags.TRANSP|ShapeFlags.NOZWRITE, min, max);
378 m_DebugShapes.Insert(shape);
379 return shape;
380 }
static ref array< Shape > m_DebugShapes
Определения 3_Game/DayZ/tools/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.