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_, _DrawLineFcn_, _DrawTransformFcn_, _DrawPointFcn_, _DrawStringFcn_, _drawingBounds_, _forceScale_, _jointScale_, _contactDrawType_, _drawShapes_, _drawJoints_, _drawJointExtras_, _drawBounds_, _drawMass_, _drawBodyNames_, _drawGraphColors_, _drawContactFeatures_, _drawContactNormals_, _drawContactForces_, _drawFrictionForces_, _drawIslands_, _context_) ⇒ Object



1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
# File 'lib/box2d_types.rb', line 1525

def self.create_as(_DrawPolygonFcn_, _DrawSolidPolygonFcn_, _DrawCircleFcn_, _DrawSolidCircleFcn_, _DrawSolidCapsuleFcn_, _DrawLineFcn_, _DrawTransformFcn_, _DrawPointFcn_, _DrawStringFcn_, _drawingBounds_, _forceScale_, _jointScale_, _contactDrawType_, _drawShapes_, _drawJoints_, _drawJointExtras_, _drawBounds_, _drawMass_, _drawBodyNames_, _drawGraphColors_, _drawContactFeatures_, _drawContactNormals_, _drawContactForces_, _drawFrictionForces_, _drawIslands_, _context_)
  instance = DebugDraw.new
  instance[:DrawPolygonFcn] = _DrawPolygonFcn_
  instance[:DrawSolidPolygonFcn] = _DrawSolidPolygonFcn_
  instance[:DrawCircleFcn] = _DrawCircleFcn_
  instance[:DrawSolidCircleFcn] = _DrawSolidCircleFcn_
  instance[:DrawSolidCapsuleFcn] = _DrawSolidCapsuleFcn_
  instance[:DrawLineFcn] = _DrawLineFcn_
  instance[:DrawTransformFcn] = _DrawTransformFcn_
  instance[:DrawPointFcn] = _DrawPointFcn_
  instance[:DrawStringFcn] = _DrawStringFcn_
  instance[:drawingBounds] = _drawingBounds_
  instance[:forceScale] = _forceScale_
  instance[:jointScale] = _jointScale_
  instance[:contactDrawType] = _contactDrawType_
  instance[:drawShapes] = _drawShapes_
  instance[:drawJoints] = _drawJoints_
  instance[:drawJointExtras] = _drawJointExtras_
  instance[:drawBounds] = _drawBounds_
  instance[:drawMass] = _drawMass_
  instance[:drawBodyNames] = _drawBodyNames_
  instance[:drawGraphColors] = _drawGraphColors_
  instance[:drawContactFeatures] = _drawContactFeatures_
  instance[:drawContactNormals] = _drawContactNormals_
  instance[:drawContactForces] = _drawContactForces_
  instance[:drawFrictionForces] = _drawFrictionForces_
  instance[:drawIslands] = _drawIslands_
  instance[:context] = _context_
  instance
end

Instance Method Details

#contactDrawTypeObject



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

def contactDrawType = self[:contactDrawType]

#contactDrawType=(v) ⇒ Object



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

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

#contextObject



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

def context = self[:context]

#context=(v) ⇒ Object



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

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

#drawBodyNamesObject



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

def drawBodyNames = self[:drawBodyNames]

#drawBodyNames=(v) ⇒ Object



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

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

#drawBoundsObject



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

def drawBounds = self[:drawBounds]

#drawBounds=(v) ⇒ Object



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

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

#DrawCircleFcnObject



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

def DrawCircleFcn = self[:DrawCircleFcn]

#DrawCircleFcn=(v) ⇒ Object



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

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

#drawContactFeaturesObject



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

def drawContactFeatures = self[:drawContactFeatures]

#drawContactFeatures=(v) ⇒ Object



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

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

#drawContactForcesObject



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

def drawContactForces = self[:drawContactForces]

#drawContactForces=(v) ⇒ Object



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

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

#drawContactNormalsObject



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

def drawContactNormals = self[:drawContactNormals]

#drawContactNormals=(v) ⇒ Object



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

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

#drawFrictionForcesObject



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

def drawFrictionForces = self[:drawFrictionForces]

#drawFrictionForces=(v) ⇒ Object



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

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

#drawGraphColorsObject



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

def drawGraphColors = self[:drawGraphColors]

#drawGraphColors=(v) ⇒ Object



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

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

#drawingBoundsObject



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

def drawingBounds = self[:drawingBounds]

#drawingBounds=(v) ⇒ Object



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

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

#drawIslandsObject



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

def drawIslands = self[:drawIslands]

#drawIslands=(v) ⇒ Object



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

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

#drawJointExtrasObject



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

def drawJointExtras = self[:drawJointExtras]

#drawJointExtras=(v) ⇒ Object



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

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

#drawJointsObject



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

def drawJoints = self[:drawJoints]

#drawJoints=(v) ⇒ Object



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

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

#DrawLineFcnObject



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

def DrawLineFcn = self[:DrawLineFcn]

#DrawLineFcn=(v) ⇒ Object



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

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

#drawMassObject



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

def drawMass = self[:drawMass]

#drawMass=(v) ⇒ Object



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

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

#DrawPointFcnObject



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

def DrawPointFcn = self[:DrawPointFcn]

#DrawPointFcn=(v) ⇒ Object



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

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

#DrawPolygonFcnObject



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

def DrawPolygonFcn = self[:DrawPolygonFcn]

#DrawPolygonFcn=(v) ⇒ Object



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

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

#drawShapesObject



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

def drawShapes = self[:drawShapes]

#drawShapes=(v) ⇒ Object



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

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

#DrawSolidCapsuleFcnObject



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

def DrawSolidCapsuleFcn = self[:DrawSolidCapsuleFcn]

#DrawSolidCapsuleFcn=(v) ⇒ Object



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

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

#DrawSolidCircleFcnObject



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

def DrawSolidCircleFcn = self[:DrawSolidCircleFcn]

#DrawSolidCircleFcn=(v) ⇒ Object



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

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

#DrawSolidPolygonFcnObject



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

def DrawSolidPolygonFcn = self[:DrawSolidPolygonFcn]

#DrawSolidPolygonFcn=(v) ⇒ Object



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

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

#DrawStringFcnObject



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

def DrawStringFcn = self[:DrawStringFcn]

#DrawStringFcn=(v) ⇒ Object



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

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

#DrawTransformFcnObject



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

def DrawTransformFcn = self[:DrawTransformFcn]

#DrawTransformFcn=(v) ⇒ Object



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

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

#forceScaleObject



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

def forceScale = self[:forceScale]

#forceScale=(v) ⇒ Object



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

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

#jointScaleObject



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

def jointScale = self[:jointScale]

#jointScale=(v) ⇒ Object



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

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