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
- #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
- #drawContactPoints ⇒ Object
- #drawContactPoints=(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_, _drawShapes_, _drawJoints_, _drawJointExtras_, _drawBounds_, _drawMass_, _drawBodyNames_, _drawContactPoints_, _drawGraphColors_, _drawContactFeatures_, _drawContactNormals_, _drawContactForces_, _drawFrictionForces_, _drawIslands_, _context_) ⇒ Object
1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 |
# File 'lib/box2d_types.rb', line 1519 def self.create_as(_DrawPolygonFcn_, _DrawSolidPolygonFcn_, _DrawCircleFcn_, _DrawSolidCircleFcn_, _DrawSolidCapsuleFcn_, _DrawLineFcn_, _DrawTransformFcn_, _DrawPointFcn_, _DrawStringFcn_, _drawingBounds_, _forceScale_, _jointScale_, _drawShapes_, _drawJoints_, _drawJointExtras_, _drawBounds_, _drawMass_, _drawBodyNames_, _drawContactPoints_, _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[:drawShapes] = _drawShapes_ instance[:drawJoints] = _drawJoints_ instance[:drawJointExtras] = _drawJointExtras_ instance[:drawBounds] = _drawBounds_ instance[:drawMass] = _drawMass_ instance[:drawBodyNames] = _drawBodyNames_ instance[:drawContactPoints] = _drawContactPoints_ 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
#context ⇒ Object
1517 |
# File 'lib/box2d_types.rb', line 1517 def context = self[:context] |
#context=(v) ⇒ Object
1518 |
# File 'lib/box2d_types.rb', line 1518 def context=(v) self[:context] = v end |
#drawBodyNames ⇒ Object
1501 |
# File 'lib/box2d_types.rb', line 1501 def drawBodyNames = self[:drawBodyNames] |
#drawBodyNames=(v) ⇒ Object
1502 |
# File 'lib/box2d_types.rb', line 1502 def drawBodyNames=(v) self[:drawBodyNames] = v end |
#drawBounds ⇒ Object
1497 |
# File 'lib/box2d_types.rb', line 1497 def drawBounds = self[:drawBounds] |
#drawBounds=(v) ⇒ Object
1498 |
# File 'lib/box2d_types.rb', line 1498 def drawBounds=(v) self[:drawBounds] = v end |
#DrawCircleFcn ⇒ Object
1471 |
# File 'lib/box2d_types.rb', line 1471 def DrawCircleFcn = self[:DrawCircleFcn] |
#DrawCircleFcn=(v) ⇒ Object
1472 |
# File 'lib/box2d_types.rb', line 1472 def DrawCircleFcn=(v) self[:DrawCircleFcn] = v end |
#drawContactFeatures ⇒ Object
1507 |
# File 'lib/box2d_types.rb', line 1507 def drawContactFeatures = self[:drawContactFeatures] |
#drawContactFeatures=(v) ⇒ Object
1508 |
# File 'lib/box2d_types.rb', line 1508 def drawContactFeatures=(v) self[:drawContactFeatures] = v end |
#drawContactForces ⇒ Object
1511 |
# File 'lib/box2d_types.rb', line 1511 def drawContactForces = self[:drawContactForces] |
#drawContactForces=(v) ⇒ Object
1512 |
# File 'lib/box2d_types.rb', line 1512 def drawContactForces=(v) self[:drawContactForces] = v end |
#drawContactNormals ⇒ Object
1509 |
# File 'lib/box2d_types.rb', line 1509 def drawContactNormals = self[:drawContactNormals] |
#drawContactNormals=(v) ⇒ Object
1510 |
# File 'lib/box2d_types.rb', line 1510 def drawContactNormals=(v) self[:drawContactNormals] = v end |
#drawContactPoints ⇒ Object
1503 |
# File 'lib/box2d_types.rb', line 1503 def drawContactPoints = self[:drawContactPoints] |
#drawContactPoints=(v) ⇒ Object
1504 |
# File 'lib/box2d_types.rb', line 1504 def drawContactPoints=(v) self[:drawContactPoints] = v end |
#drawFrictionForces ⇒ Object
1513 |
# File 'lib/box2d_types.rb', line 1513 def drawFrictionForces = self[:drawFrictionForces] |
#drawFrictionForces=(v) ⇒ Object
1514 |
# File 'lib/box2d_types.rb', line 1514 def drawFrictionForces=(v) self[:drawFrictionForces] = v end |
#drawGraphColors ⇒ Object
1505 |
# File 'lib/box2d_types.rb', line 1505 def drawGraphColors = self[:drawGraphColors] |
#drawGraphColors=(v) ⇒ Object
1506 |
# File 'lib/box2d_types.rb', line 1506 def drawGraphColors=(v) self[:drawGraphColors] = v end |
#drawingBounds ⇒ Object
1485 |
# File 'lib/box2d_types.rb', line 1485 def drawingBounds = self[:drawingBounds] |
#drawingBounds=(v) ⇒ Object
1486 |
# File 'lib/box2d_types.rb', line 1486 def drawingBounds=(v) self[:drawingBounds] = v end |
#drawIslands ⇒ Object
1515 |
# File 'lib/box2d_types.rb', line 1515 def drawIslands = self[:drawIslands] |
#drawIslands=(v) ⇒ Object
1516 |
# File 'lib/box2d_types.rb', line 1516 def drawIslands=(v) self[:drawIslands] = v end |
#drawJointExtras ⇒ Object
1495 |
# File 'lib/box2d_types.rb', line 1495 def drawJointExtras = self[:drawJointExtras] |
#drawJointExtras=(v) ⇒ Object
1496 |
# File 'lib/box2d_types.rb', line 1496 def drawJointExtras=(v) self[:drawJointExtras] = v end |
#drawJoints ⇒ Object
1493 |
# File 'lib/box2d_types.rb', line 1493 def drawJoints = self[:drawJoints] |
#drawJoints=(v) ⇒ Object
1494 |
# File 'lib/box2d_types.rb', line 1494 def drawJoints=(v) self[:drawJoints] = v end |
#DrawLineFcn ⇒ Object
1477 |
# File 'lib/box2d_types.rb', line 1477 def DrawLineFcn = self[:DrawLineFcn] |
#DrawLineFcn=(v) ⇒ Object
1478 |
# File 'lib/box2d_types.rb', line 1478 def DrawLineFcn=(v) self[:DrawLineFcn] = v end |
#drawMass ⇒ Object
1499 |
# File 'lib/box2d_types.rb', line 1499 def drawMass = self[:drawMass] |
#drawMass=(v) ⇒ Object
1500 |
# File 'lib/box2d_types.rb', line 1500 def drawMass=(v) self[:drawMass] = v end |
#DrawPointFcn ⇒ Object
1481 |
# File 'lib/box2d_types.rb', line 1481 def DrawPointFcn = self[:DrawPointFcn] |
#DrawPointFcn=(v) ⇒ Object
1482 |
# File 'lib/box2d_types.rb', line 1482 def DrawPointFcn=(v) self[:DrawPointFcn] = v end |
#DrawPolygonFcn ⇒ Object
1467 |
# File 'lib/box2d_types.rb', line 1467 def DrawPolygonFcn = self[:DrawPolygonFcn] |
#DrawPolygonFcn=(v) ⇒ Object
1468 |
# File 'lib/box2d_types.rb', line 1468 def DrawPolygonFcn=(v) self[:DrawPolygonFcn] = v end |
#drawShapes ⇒ Object
1491 |
# File 'lib/box2d_types.rb', line 1491 def drawShapes = self[:drawShapes] |
#drawShapes=(v) ⇒ Object
1492 |
# File 'lib/box2d_types.rb', line 1492 def drawShapes=(v) self[:drawShapes] = v end |
#DrawSolidCapsuleFcn ⇒ Object
1475 |
# File 'lib/box2d_types.rb', line 1475 def DrawSolidCapsuleFcn = self[:DrawSolidCapsuleFcn] |
#DrawSolidCapsuleFcn=(v) ⇒ Object
1476 |
# File 'lib/box2d_types.rb', line 1476 def DrawSolidCapsuleFcn=(v) self[:DrawSolidCapsuleFcn] = v end |
#DrawSolidCircleFcn ⇒ Object
1473 |
# File 'lib/box2d_types.rb', line 1473 def DrawSolidCircleFcn = self[:DrawSolidCircleFcn] |
#DrawSolidCircleFcn=(v) ⇒ Object
1474 |
# File 'lib/box2d_types.rb', line 1474 def DrawSolidCircleFcn=(v) self[:DrawSolidCircleFcn] = v end |
#DrawSolidPolygonFcn ⇒ Object
1469 |
# File 'lib/box2d_types.rb', line 1469 def DrawSolidPolygonFcn = self[:DrawSolidPolygonFcn] |
#DrawSolidPolygonFcn=(v) ⇒ Object
1470 |
# File 'lib/box2d_types.rb', line 1470 def DrawSolidPolygonFcn=(v) self[:DrawSolidPolygonFcn] = v end |
#DrawStringFcn ⇒ Object
1483 |
# File 'lib/box2d_types.rb', line 1483 def DrawStringFcn = self[:DrawStringFcn] |
#DrawStringFcn=(v) ⇒ Object
1484 |
# File 'lib/box2d_types.rb', line 1484 def DrawStringFcn=(v) self[:DrawStringFcn] = v end |
#DrawTransformFcn ⇒ Object
1479 |
# File 'lib/box2d_types.rb', line 1479 def DrawTransformFcn = self[:DrawTransformFcn] |
#DrawTransformFcn=(v) ⇒ Object
1480 |
# File 'lib/box2d_types.rb', line 1480 def DrawTransformFcn=(v) self[:DrawTransformFcn] = v end |
#forceScale ⇒ Object
1487 |
# File 'lib/box2d_types.rb', line 1487 def forceScale = self[:forceScale] |
#forceScale=(v) ⇒ Object
1488 |
# File 'lib/box2d_types.rb', line 1488 def forceScale=(v) self[:forceScale] = v end |
#jointScale ⇒ Object
1489 |
# File 'lib/box2d_types.rb', line 1489 def jointScale = self[:jointScale] |
#jointScale=(v) ⇒ Object
1490 |
# File 'lib/box2d_types.rb', line 1490 def jointScale=(v) self[:jointScale] = v end |