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(_DrawPolygon_, _DrawSolidPolygon_, _DrawCircle_, _DrawSolidCircle_, _DrawSolidCapsule_, _DrawSegment_, _DrawTransform_, _DrawPoint_, _DrawString_, _drawingBounds_, _useDrawingBounds_, _drawShapes_, _drawJoints_, _drawJointExtras_, _drawAABBs_, _drawMass_, _drawBodyNames_, _drawContacts_, _drawGraphColors_, _drawContactNormals_, _drawContactImpulses_, _drawFrictionImpulses_, _context_) ⇒ Object



1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
# File 'lib/box2d_types.rb', line 1552

def self.create_as(_DrawPolygon_, _DrawSolidPolygon_, _DrawCircle_, _DrawSolidCircle_, _DrawSolidCapsule_, _DrawSegment_, _DrawTransform_, _DrawPoint_, _DrawString_, _drawingBounds_, _useDrawingBounds_, _drawShapes_, _drawJoints_, _drawJointExtras_, _drawAABBs_, _drawMass_, _drawBodyNames_, _drawContacts_, _drawGraphColors_, _drawContactNormals_, _drawContactImpulses_, _drawFrictionImpulses_, _context_)
  instance = DebugDraw.new
  instance[:DrawPolygon] = _DrawPolygon_
  instance[:DrawSolidPolygon] = _DrawSolidPolygon_
  instance[:DrawCircle] = _DrawCircle_
  instance[:DrawSolidCircle] = _DrawSolidCircle_
  instance[:DrawSolidCapsule] = _DrawSolidCapsule_
  instance[:DrawSegment] = _DrawSegment_
  instance[:DrawTransform] = _DrawTransform_
  instance[:DrawPoint] = _DrawPoint_
  instance[:DrawString] = _DrawString_
  instance[:drawingBounds] = _drawingBounds_
  instance[:useDrawingBounds] = _useDrawingBounds_
  instance[:drawShapes] = _drawShapes_
  instance[:drawJoints] = _drawJoints_
  instance[:drawJointExtras] = _drawJointExtras_
  instance[:drawAABBs] = _drawAABBs_
  instance[:drawMass] = _drawMass_
  instance[:drawBodyNames] = _drawBodyNames_
  instance[:drawContacts] = _drawContacts_
  instance[:drawGraphColors] = _drawGraphColors_
  instance[:drawContactNormals] = _drawContactNormals_
  instance[:drawContactImpulses] = _drawContactImpulses_
  instance[:drawFrictionImpulses] = _drawFrictionImpulses_
  instance[:context] = _context_
  instance
end

Instance Method Details

#contextObject



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

def context = self[:context]

#context=(v) ⇒ Object



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

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

#drawAABBsObject



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

def drawAABBs = self[:drawAABBs]

#drawAABBs=(v) ⇒ Object



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

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

#drawBodyNamesObject



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

def drawBodyNames = self[:drawBodyNames]

#drawBodyNames=(v) ⇒ Object



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

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

#DrawCircleObject



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

def DrawCircle = self[:DrawCircle]

#DrawCircle=(v) ⇒ Object



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

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

#drawContactImpulsesObject



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

def drawContactImpulses = self[:drawContactImpulses]

#drawContactImpulses=(v) ⇒ Object



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

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

#drawContactNormalsObject



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

def drawContactNormals = self[:drawContactNormals]

#drawContactNormals=(v) ⇒ Object



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

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

#drawContactsObject



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

def drawContacts = self[:drawContacts]

#drawContacts=(v) ⇒ Object



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

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

#drawFrictionImpulsesObject



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

def drawFrictionImpulses = self[:drawFrictionImpulses]

#drawFrictionImpulses=(v) ⇒ Object



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

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

#drawGraphColorsObject



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

def drawGraphColors = self[:drawGraphColors]

#drawGraphColors=(v) ⇒ Object



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

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

#drawingBoundsObject



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

def drawingBounds = self[:drawingBounds]

#drawingBounds=(v) ⇒ Object



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

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

#drawJointExtrasObject



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

def drawJointExtras = self[:drawJointExtras]

#drawJointExtras=(v) ⇒ Object



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

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

#drawJointsObject



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

def drawJoints = self[:drawJoints]

#drawJoints=(v) ⇒ Object



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

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

#drawMassObject



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

def drawMass = self[:drawMass]

#drawMass=(v) ⇒ Object



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

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

#DrawPointObject



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

def DrawPoint = self[:DrawPoint]

#DrawPoint=(v) ⇒ Object



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

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

#DrawPolygonObject



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

def DrawPolygon = self[:DrawPolygon]

#DrawPolygon=(v) ⇒ Object



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

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

#DrawSegmentObject



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

def DrawSegment = self[:DrawSegment]

#DrawSegment=(v) ⇒ Object



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

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

#drawShapesObject



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

def drawShapes = self[:drawShapes]

#drawShapes=(v) ⇒ Object



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

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

#DrawSolidCapsuleObject



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

def DrawSolidCapsule = self[:DrawSolidCapsule]

#DrawSolidCapsule=(v) ⇒ Object



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

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

#DrawSolidCircleObject



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

def DrawSolidCircle = self[:DrawSolidCircle]

#DrawSolidCircle=(v) ⇒ Object



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

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

#DrawSolidPolygonObject



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

def DrawSolidPolygon = self[:DrawSolidPolygon]

#DrawSolidPolygon=(v) ⇒ Object



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

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

#DrawStringObject



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

def DrawString = self[:DrawString]

#DrawString=(v) ⇒ Object



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

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

#DrawTransformObject



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

def DrawTransform = self[:DrawTransform]

#DrawTransform=(v) ⇒ Object



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

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

#useDrawingBoundsObject



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

def useDrawingBounds = self[:useDrawingBounds]

#useDrawingBounds=(v) ⇒ Object



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

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