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_, _drawContacts_, _drawGraphColors_, _drawContactNormals_, _drawContactImpulses_, _drawFrictionImpulses_, _context_) ⇒ Object



1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
# File 'lib/box2d_types.rb', line 1516

def self.create_as(_DrawPolygon_, _DrawSolidPolygon_, _DrawCircle_, _DrawSolidCircle_, _DrawSolidCapsule_, _DrawSegment_, _DrawTransform_, _DrawPoint_, _DrawString_, _drawingBounds_, _useDrawingBounds_, _drawShapes_, _drawJoints_, _drawJointExtras_, _drawAABBs_, _drawMass_, _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[:drawContacts] = _drawContacts_
  instance[:drawGraphColors] = _drawGraphColors_
  instance[:drawContactNormals] = _drawContactNormals_
  instance[:drawContactImpulses] = _drawContactImpulses_
  instance[:drawFrictionImpulses] = _drawFrictionImpulses_
  instance[:context] = _context_
  instance
end

Instance Method Details

#contextObject



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

def context = self[:context]

#context=(v) ⇒ Object



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

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

#drawAABBsObject



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

def drawAABBs = self[:drawAABBs]

#drawAABBs=(v) ⇒ Object



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

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

#DrawCircleObject



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

def DrawCircle = self[:DrawCircle]

#DrawCircle=(v) ⇒ Object



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

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

#drawContactImpulsesObject



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

def drawContactImpulses = self[:drawContactImpulses]

#drawContactImpulses=(v) ⇒ Object



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

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

#drawContactNormalsObject



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

def drawContactNormals = self[:drawContactNormals]

#drawContactNormals=(v) ⇒ Object



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

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

#drawContactsObject



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

def drawContacts = self[:drawContacts]

#drawContacts=(v) ⇒ Object



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

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

#drawFrictionImpulsesObject



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

def drawFrictionImpulses = self[:drawFrictionImpulses]

#drawFrictionImpulses=(v) ⇒ Object



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

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

#drawGraphColorsObject



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

def drawGraphColors = self[:drawGraphColors]

#drawGraphColors=(v) ⇒ Object



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

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

#drawingBoundsObject



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

def drawingBounds = self[:drawingBounds]

#drawingBounds=(v) ⇒ Object



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

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

#drawJointExtrasObject



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

def drawJointExtras = self[:drawJointExtras]

#drawJointExtras=(v) ⇒ Object



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

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

#drawJointsObject



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

def drawJoints = self[:drawJoints]

#drawJoints=(v) ⇒ Object



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

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

#drawMassObject



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

def drawMass = self[:drawMass]

#drawMass=(v) ⇒ Object



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

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

#DrawPointObject



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

def DrawPoint = self[:DrawPoint]

#DrawPoint=(v) ⇒ Object



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

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

#DrawPolygonObject



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

def DrawPolygon = self[:DrawPolygon]

#DrawPolygon=(v) ⇒ Object



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

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

#DrawSegmentObject



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

def DrawSegment = self[:DrawSegment]

#DrawSegment=(v) ⇒ Object



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

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

#drawShapesObject



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

def drawShapes = self[:drawShapes]

#drawShapes=(v) ⇒ Object



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

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

#DrawSolidCapsuleObject



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

def DrawSolidCapsule = self[:DrawSolidCapsule]

#DrawSolidCapsule=(v) ⇒ Object



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

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

#DrawSolidCircleObject



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

def DrawSolidCircle = self[:DrawSolidCircle]

#DrawSolidCircle=(v) ⇒ Object



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

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

#DrawSolidPolygonObject



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

def DrawSolidPolygon = self[:DrawSolidPolygon]

#DrawSolidPolygon=(v) ⇒ Object



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

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

#DrawStringObject



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

def DrawString = self[:DrawString]

#DrawString=(v) ⇒ Object



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

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

#DrawTransformObject



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

def DrawTransform = self[:DrawTransform]

#DrawTransform=(v) ⇒ Object



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

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

#useDrawingBoundsObject



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

def useDrawingBounds = self[:useDrawingBounds]

#useDrawingBounds=(v) ⇒ Object



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

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