Class: Box2D::DebugDraw
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Box2D::DebugDraw
- Defined in:
- lib/box2d_types.rb
Class Method Summary collapse
Instance Method Summary collapse
- #contactDrawType ⇒ Object
- #contactDrawType=(v) ⇒ Object
- #context ⇒ Object
- #context=(v) ⇒ Object
- #drawBodyNames ⇒ Object
- #drawBodyNames=(v) ⇒ Object
- #drawBounds ⇒ Object
- #drawBounds=(v) ⇒ Object
- #DrawCircleFcn ⇒ Object
- #DrawCircleFcn=(v) ⇒ Object
- #drawContactFeatures ⇒ Object
- #drawContactFeatures=(v) ⇒ Object
- #drawContactForces ⇒ Object
- #drawContactForces=(v) ⇒ Object
- #drawContactNormals ⇒ Object
- #drawContactNormals=(v) ⇒ Object
- #drawFrictionForces ⇒ Object
- #drawFrictionForces=(v) ⇒ Object
- #drawGraphColors ⇒ Object
- #drawGraphColors=(v) ⇒ Object
- #drawingBounds ⇒ Object
- #drawingBounds=(v) ⇒ Object
- #drawIslands ⇒ Object
- #drawIslands=(v) ⇒ Object
- #drawJointExtras ⇒ Object
- #drawJointExtras=(v) ⇒ Object
- #drawJoints ⇒ Object
- #drawJoints=(v) ⇒ Object
- #DrawLineFcn ⇒ Object
- #DrawLineFcn=(v) ⇒ Object
- #drawMass ⇒ Object
- #drawMass=(v) ⇒ Object
- #DrawPointFcn ⇒ Object
- #DrawPointFcn=(v) ⇒ Object
- #DrawPolygonFcn ⇒ Object
- #DrawPolygonFcn=(v) ⇒ Object
- #drawShapes ⇒ Object
- #drawShapes=(v) ⇒ Object
- #DrawSolidCapsuleFcn ⇒ Object
- #DrawSolidCapsuleFcn=(v) ⇒ Object
- #DrawSolidCircleFcn ⇒ Object
- #DrawSolidCircleFcn=(v) ⇒ Object
- #DrawSolidPolygonFcn ⇒ Object
- #DrawSolidPolygonFcn=(v) ⇒ Object
- #DrawStringFcn ⇒ Object
- #DrawStringFcn=(v) ⇒ Object
- #DrawTransformFcn ⇒ Object
- #DrawTransformFcn=(v) ⇒ Object
- #forceScale ⇒ Object
- #forceScale=(v) ⇒ Object
- #jointScale ⇒ Object
- #jointScale=(v) ⇒ Object
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
#contactDrawType ⇒ Object
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 |
#context ⇒ Object
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 |
#drawBodyNames ⇒ Object
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 |
#drawBounds ⇒ Object
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 |
#DrawCircleFcn ⇒ Object
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 |
#drawContactFeatures ⇒ Object
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 |
#drawContactForces ⇒ Object
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 |
#drawContactNormals ⇒ Object
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 |
#drawFrictionForces ⇒ Object
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 |
#drawGraphColors ⇒ Object
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 |
#drawingBounds ⇒ Object
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 |
#drawIslands ⇒ Object
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 |
#drawJointExtras ⇒ Object
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 |
#drawJoints ⇒ Object
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 |
#DrawLineFcn ⇒ Object
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 |
#drawMass ⇒ Object
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 |
#DrawPointFcn ⇒ Object
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 |
#DrawPolygonFcn ⇒ Object
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 |
#drawShapes ⇒ Object
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 |
#DrawSolidCapsuleFcn ⇒ Object
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 |
#DrawSolidCircleFcn ⇒ Object
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 |
#DrawSolidPolygonFcn ⇒ Object
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 |
#DrawStringFcn ⇒ Object
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 |
#DrawTransformFcn ⇒ Object
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 |
#forceScale ⇒ Object
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 |
#jointScale ⇒ Object
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 |