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

◆ DrawCube()

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

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

376 {
377 vector min = pos;
378 vector max = pos;
379
380 float size_h = size * 0.5;
381
382 min[0] = min[0] - size_h;
383 min[1] = min[1] - size_h;
384 min[2] = min[2] - size_h;
385
386 max[0] = max[0] + size_h;
387 max[1] = max[1] + size_h;
388 max[2] = max[2] + size_h;
389
390 Shape shape = Shape.Create(ShapeType.DIAMOND, color, ShapeFlags.TRANSP|ShapeFlags.NOZWRITE, min, max);
391 m_DebugShapes.Insert(shape);
392 return shape;
393 }
static ref array< Shape > m_DebugShapes
Определения 3_Game/DayZ/tools/Debug.c:25
ShapeType
Определения EnDebug.c:116
ShapeFlags
Определения EnDebug.c:126
class DiagMenu Shape
don't call destructor directly. Use Destroy() instead

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