Class: Box2D::DebugDraw

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/box2d_types.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.create_as(_DrawPolygonFcn_, _DrawSolidPolygonFcn_, _DrawCircleFcn_, _DrawSolidCircleFcn_, _DrawSolidCapsuleFcn_, _DrawSegmentFcn_, _DrawTransformFcn_, _DrawPointFcn_, _DrawStringFcn_, _drawingBounds_, _useDrawingBounds_, _drawShapes_, _drawJoints_, _drawJointExtras_, _drawBounds_, _drawMass_, _drawBodyNames_, _drawContacts_, _drawGraphColors_, _drawContactNormals_, _drawContactImpulses_, _drawContactFeatures_, _drawFrictionImpulses_, _drawIslands_, _context_) ⇒ Object



1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
# File 'lib/box2d_types.rb', line 1470

def self.create_as(_DrawPolygonFcn_, _DrawSolidPolygonFcn_, _DrawCircleFcn_, _DrawSolidCircleFcn_, _DrawSolidCapsuleFcn_, _DrawSegmentFcn_, _DrawTransformFcn_, _DrawPointFcn_, _DrawStringFcn_, _drawingBounds_, _useDrawingBounds_, _drawShapes_, _drawJoints_, _drawJointExtras_, _drawBounds_, _drawMass_, _drawBodyNames_, _drawContacts_, _drawGraphColors_, _drawContactNormals_, _drawContactImpulses_, _drawContactFeatures_, _drawFrictionImpulses_, _drawIslands_, _context_)
  instance = DebugDraw.new
  instance[:DrawPolygonFcn] = _DrawPolygonFcn_
  instance[:DrawSolidPolygonFcn] = _DrawSolidPolygonFcn_
  instance[:DrawCircleFcn] = _DrawCircleFcn_
  instance[:DrawSolidCircleFcn] = _DrawSolidCircleFcn_
  instance[:DrawSolidCapsuleFcn] = _DrawSolidCapsuleFcn_
  instance[:DrawSegmentFcn] = _DrawSegmentFcn_
  instance[:DrawTransformFcn] = _DrawTransformFcn_
  instance[:DrawPointFcn] = _DrawPointFcn_
  instance[:DrawStringFcn] = _DrawStringFcn_
  instance[:drawingBounds] = _drawingBounds_
  instance[:useDrawingBounds] = _useDrawingBounds_
  instance[:drawShapes] = _drawShapes_
  instance[:drawJoints] = _drawJoints_
  instance[:drawJointExtras] = _drawJointExtras_
  instance[:drawBounds] = _drawBounds_
  instance[:drawMass] = _drawMass_
  instance[:drawBodyNames] = _drawBodyNames_
  instance[:drawContacts] = _drawContacts_
  instance[:drawGraphColors] = _drawGraphColors_
  instance[:drawContactNormals] = _drawContactNormals_
  instance[:drawContactImpulses] = _drawContactImpulses_
  instance[:drawContactFeatures] = _drawContactFeatures_
  instance[:drawFrictionImpulses] = _drawFrictionImpulses_
  instance[:drawIslands] = _drawIslands_
  instance[:context] = _context_
  instance
end

Instance Method Details

#contextObject



1468
# File 'lib/box2d_types.rb', line 1468

def context = self[:context]

#context=(v) ⇒ Object



1469
# File 'lib/box2d_types.rb', line 1469

def context=(v) self[:context] = v end

#drawBodyNamesObject



1452
# File 'lib/box2d_types.rb', line 1452

def drawBodyNames = self[:drawBodyNames]

#drawBodyNames=(v) ⇒ Object



1453
# File 'lib/box2d_types.rb', line 1453

def drawBodyNames=(v) self[:drawBodyNames] = v end

#drawBoundsObject



1448
# File 'lib/box2d_types.rb', line 1448

def drawBounds = self[:drawBounds]

#drawBounds=(v) ⇒ Object



1449
# File 'lib/box2d_types.rb', line 1449

def drawBounds=(v) self[:drawBounds] = v end

#DrawCircleFcnObject



1424
# File 'lib/box2d_types.rb', line 1424

def DrawCircleFcn = self[:DrawCircleFcn]

#DrawCircleFcn=(v) ⇒ Object



1425
# File 'lib/box2d_types.rb', line 1425

def DrawCircleFcn=(v) self[:DrawCircleFcn] = v end

#drawContactFeaturesObject



1462
# File 'lib/box2d_types.rb', line 1462

def drawContactFeatures = self[:drawContactFeatures]

#drawContactFeatures=(v) ⇒ Object



1463
# File 'lib/box2d_types.rb', line 1463

def drawContactFeatures=(v) self[:drawContactFeatures] = v end

#drawContactImpulsesObject



1460
# File 'lib/box2d_types.rb', line 1460

def drawContactImpulses = self[:drawContactImpulses]

#drawContactImpulses=(v) ⇒ Object



1461
# File 'lib/box2d_types.rb', line 1461

def drawContactImpulses=(v) self[:drawContactImpulses] = v end

#drawContactNormalsObject



1458
# File 'lib/box2d_types.rb', line 1458

def drawContactNormals = self[:drawContactNormals]

#drawContactNormals=(v) ⇒ Object



1459
# File 'lib/box2d_types.rb', line 1459

def drawContactNormals=(v) self[:drawContactNormals] = v end

#drawContactsObject



1454
# File 'lib/box2d_types.rb', line 1454

def drawContacts = self[:drawContacts]

#drawContacts=(v) ⇒ Object



1455
# File 'lib/box2d_types.rb', line 1455

def drawContacts=(v) self[:drawContacts] = v end

#drawFrictionImpulsesObject



1464
# File 'lib/box2d_types.rb', line 1464

def drawFrictionImpulses = self[:drawFrictionImpulses]

#drawFrictionImpulses=(v) ⇒ Object



1465
# File 'lib/box2d_types.rb', line 1465

def drawFrictionImpulses=(v) self[:drawFrictionImpulses] = v end

#drawGraphColorsObject



1456
# File 'lib/box2d_types.rb', line 1456

def drawGraphColors = self[:drawGraphColors]

#drawGraphColors=(v) ⇒ Object



1457
# File 'lib/box2d_types.rb', line 1457

def drawGraphColors=(v) self[:drawGraphColors] = v end

#drawingBoundsObject



1438
# File 'lib/box2d_types.rb', line 1438

def drawingBounds = self[:drawingBounds]

#drawingBounds=(v) ⇒ Object



1439
# File 'lib/box2d_types.rb', line 1439

def drawingBounds=(v) self[:drawingBounds] = v end

#drawIslandsObject



1466
# File 'lib/box2d_types.rb', line 1466

def drawIslands = self[:drawIslands]

#drawIslands=(v) ⇒ Object



1467
# File 'lib/box2d_types.rb', line 1467

def drawIslands=(v) self[:drawIslands] = v end

#drawJointExtrasObject



1446
# File 'lib/box2d_types.rb', line 1446

def drawJointExtras = self[:drawJointExtras]

#drawJointExtras=(v) ⇒ Object



1447
# File 'lib/box2d_types.rb', line 1447

def drawJointExtras=(v) self[:drawJointExtras] = v end

#drawJointsObject



1444
# File 'lib/box2d_types.rb', line 1444

def drawJoints = self[:drawJoints]

#drawJoints=(v) ⇒ Object



1445
# File 'lib/box2d_types.rb', line 1445

def drawJoints=(v) self[:drawJoints] = v end

#drawMassObject



1450
# File 'lib/box2d_types.rb', line 1450

def drawMass = self[:drawMass]

#drawMass=(v) ⇒ Object



1451
# File 'lib/box2d_types.rb', line 1451

def drawMass=(v) self[:drawMass] = v end

#DrawPointFcnObject



1434
# File 'lib/box2d_types.rb', line 1434

def DrawPointFcn = self[:DrawPointFcn]

#DrawPointFcn=(v) ⇒ Object



1435
# File 'lib/box2d_types.rb', line 1435

def DrawPointFcn=(v) self[:DrawPointFcn] = v end

#DrawPolygonFcnObject



1420
# File 'lib/box2d_types.rb', line 1420

def DrawPolygonFcn = self[:DrawPolygonFcn]

#DrawPolygonFcn=(v) ⇒ Object



1421
# File 'lib/box2d_types.rb', line 1421

def DrawPolygonFcn=(v) self[:DrawPolygonFcn] = v end

#DrawSegmentFcnObject



1430
# File 'lib/box2d_types.rb', line 1430

def DrawSegmentFcn = self[:DrawSegmentFcn]

#DrawSegmentFcn=(v) ⇒ Object



1431
# File 'lib/box2d_types.rb', line 1431

def DrawSegmentFcn=(v) self[:DrawSegmentFcn] = v end

#drawShapesObject



1442
# File 'lib/box2d_types.rb', line 1442

def drawShapes = self[:drawShapes]

#drawShapes=(v) ⇒ Object



1443
# File 'lib/box2d_types.rb', line 1443

def drawShapes=(v) self[:drawShapes] = v end

#DrawSolidCapsuleFcnObject



1428
# File 'lib/box2d_types.rb', line 1428

def DrawSolidCapsuleFcn = self[:DrawSolidCapsuleFcn]

#DrawSolidCapsuleFcn=(v) ⇒ Object



1429
# File 'lib/box2d_types.rb', line 1429

def DrawSolidCapsuleFcn=(v) self[:DrawSolidCapsuleFcn] = v end

#DrawSolidCircleFcnObject



1426
# File 'lib/box2d_types.rb', line 1426

def DrawSolidCircleFcn = self[:DrawSolidCircleFcn]

#DrawSolidCircleFcn=(v) ⇒ Object



1427
# File 'lib/box2d_types.rb', line 1427

def DrawSolidCircleFcn=(v) self[:DrawSolidCircleFcn] = v end

#DrawSolidPolygonFcnObject



1422
# File 'lib/box2d_types.rb', line 1422

def DrawSolidPolygonFcn = self[:DrawSolidPolygonFcn]

#DrawSolidPolygonFcn=(v) ⇒ Object



1423
# File 'lib/box2d_types.rb', line 1423

def DrawSolidPolygonFcn=(v) self[:DrawSolidPolygonFcn] = v end

#DrawStringFcnObject



1436
# File 'lib/box2d_types.rb', line 1436

def DrawStringFcn = self[:DrawStringFcn]

#DrawStringFcn=(v) ⇒ Object



1437
# File 'lib/box2d_types.rb', line 1437

def DrawStringFcn=(v) self[:DrawStringFcn] = v end

#DrawTransformFcnObject



1432
# File 'lib/box2d_types.rb', line 1432

def DrawTransformFcn = self[:DrawTransformFcn]

#DrawTransformFcn=(v) ⇒ Object



1433
# File 'lib/box2d_types.rb', line 1433

def DrawTransformFcn=(v) self[:DrawTransformFcn] = v end

#useDrawingBoundsObject



1440
# File 'lib/box2d_types.rb', line 1440

def useDrawingBounds = self[:useDrawingBounds]

#useDrawingBounds=(v) ⇒ Object



1441
# File 'lib/box2d_types.rb', line 1441

def useDrawingBounds=(v) self[:useDrawingBounds] = v end