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
- #drawContactImpulses ⇒ Object
- #drawContactImpulses=(v) ⇒ Object
- #drawContactNormals ⇒ Object
- #drawContactNormals=(v) ⇒ Object
- #drawContacts ⇒ Object
- #drawContacts=(v) ⇒ Object
- #drawFrictionImpulses ⇒ Object
- #drawFrictionImpulses=(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
- #drawMass ⇒ Object
- #drawMass=(v) ⇒ Object
- #DrawPointFcn ⇒ Object
- #DrawPointFcn=(v) ⇒ Object
- #DrawPolygonFcn ⇒ Object
- #DrawPolygonFcn=(v) ⇒ Object
- #DrawSegmentFcn ⇒ Object
- #DrawSegmentFcn=(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
- #useDrawingBounds ⇒ Object
- #useDrawingBounds=(v) ⇒ Object
Class Method Details
.create_as(_DrawPolygonFcn_, _DrawSolidPolygonFcn_, _DrawCircleFcn_, _DrawSolidCircleFcn_, _DrawSolidCapsuleFcn_, _DrawSegmentFcn_, _DrawTransformFcn_, _DrawPointFcn_, _DrawStringFcn_, _drawingBounds_, _useDrawingBounds_, _drawShapes_, _drawJoints_, _drawJointExtras_, _drawBounds_, _drawMass_, _drawBodyNames_, _drawContacts_, _drawGraphColors_, _drawContactNormals_, _drawContactImpulses_, _drawContactFeatures_, _drawFrictionImpulses_, _drawIslands_, _context_) ⇒ Object
1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 |
# File 'lib/box2d_types.rb', line 1547 def self.create_as(_DrawPolygonFcn_, _DrawSolidPolygonFcn_, _DrawCircleFcn_, _DrawSolidCircleFcn_, _DrawSolidCapsuleFcn_, _DrawSegmentFcn_, _DrawTransformFcn_, _DrawPointFcn_, _DrawStringFcn_, _drawingBounds_, _useDrawingBounds_, _drawShapes_, _drawJoints_, _drawJointExtras_, _drawBounds_, _drawMass_, _drawBodyNames_, _drawContacts_, _drawGraphColors_, _drawContactNormals_, _drawContactImpulses_, _drawContactFeatures_, _drawFrictionImpulses_, _drawIslands_, _context_) instance = DebugDraw.new instance[:DrawPolygonFcn] = _DrawPolygonFcn_ instance[:DrawSolidPolygonFcn] = _DrawSolidPolygonFcn_ instance[:DrawCircleFcn] = _DrawCircleFcn_ instance[:DrawSolidCircleFcn] = _DrawSolidCircleFcn_ instance[:DrawSolidCapsuleFcn] = _DrawSolidCapsuleFcn_ instance[:DrawSegmentFcn] = _DrawSegmentFcn_ instance[:DrawTransformFcn] = _DrawTransformFcn_ instance[:DrawPointFcn] = _DrawPointFcn_ instance[:DrawStringFcn] = _DrawStringFcn_ instance[:drawingBounds] = _drawingBounds_ instance[:useDrawingBounds] = _useDrawingBounds_ instance[:drawShapes] = _drawShapes_ instance[:drawJoints] = _drawJoints_ instance[:drawJointExtras] = _drawJointExtras_ instance[:drawBounds] = _drawBounds_ instance[:drawMass] = _drawMass_ instance[:drawBodyNames] = _drawBodyNames_ instance[:drawContacts] = _drawContacts_ instance[:drawGraphColors] = _drawGraphColors_ instance[:drawContactNormals] = _drawContactNormals_ instance[:drawContactImpulses] = _drawContactImpulses_ instance[:drawContactFeatures] = _drawContactFeatures_ instance[:drawFrictionImpulses] = _drawFrictionImpulses_ instance[:drawIslands] = _drawIslands_ instance[:context] = _context_ instance end |
Instance Method Details
#context ⇒ Object
1545 |
# File 'lib/box2d_types.rb', line 1545 def context = self[:context] |
#context=(v) ⇒ Object
1546 |
# File 'lib/box2d_types.rb', line 1546 def context=(v) self[:context] = v end |
#drawBodyNames ⇒ Object
1529 |
# File 'lib/box2d_types.rb', line 1529 def drawBodyNames = self[:drawBodyNames] |
#drawBodyNames=(v) ⇒ Object
1530 |
# File 'lib/box2d_types.rb', line 1530 def drawBodyNames=(v) self[:drawBodyNames] = v end |
#drawBounds ⇒ Object
1525 |
# File 'lib/box2d_types.rb', line 1525 def drawBounds = self[:drawBounds] |
#drawBounds=(v) ⇒ Object
1526 |
# File 'lib/box2d_types.rb', line 1526 def drawBounds=(v) self[:drawBounds] = v end |
#DrawCircleFcn ⇒ Object
1501 |
# File 'lib/box2d_types.rb', line 1501 def DrawCircleFcn = self[:DrawCircleFcn] |
#DrawCircleFcn=(v) ⇒ Object
1502 |
# File 'lib/box2d_types.rb', line 1502 def DrawCircleFcn=(v) self[:DrawCircleFcn] = v end |
#drawContactFeatures ⇒ Object
1539 |
# File 'lib/box2d_types.rb', line 1539 def drawContactFeatures = self[:drawContactFeatures] |
#drawContactFeatures=(v) ⇒ Object
1540 |
# File 'lib/box2d_types.rb', line 1540 def drawContactFeatures=(v) self[:drawContactFeatures] = v end |
#drawContactImpulses ⇒ Object
1537 |
# File 'lib/box2d_types.rb', line 1537 def drawContactImpulses = self[:drawContactImpulses] |
#drawContactImpulses=(v) ⇒ Object
1538 |
# File 'lib/box2d_types.rb', line 1538 def drawContactImpulses=(v) self[:drawContactImpulses] = v end |
#drawContactNormals ⇒ Object
1535 |
# File 'lib/box2d_types.rb', line 1535 def drawContactNormals = self[:drawContactNormals] |
#drawContactNormals=(v) ⇒ Object
1536 |
# File 'lib/box2d_types.rb', line 1536 def drawContactNormals=(v) self[:drawContactNormals] = v end |
#drawContacts ⇒ Object
1531 |
# File 'lib/box2d_types.rb', line 1531 def drawContacts = self[:drawContacts] |
#drawContacts=(v) ⇒ Object
1532 |
# File 'lib/box2d_types.rb', line 1532 def drawContacts=(v) self[:drawContacts] = v end |
#drawFrictionImpulses ⇒ Object
1541 |
# File 'lib/box2d_types.rb', line 1541 def drawFrictionImpulses = self[:drawFrictionImpulses] |
#drawFrictionImpulses=(v) ⇒ Object
1542 |
# File 'lib/box2d_types.rb', line 1542 def drawFrictionImpulses=(v) self[:drawFrictionImpulses] = v end |
#drawGraphColors ⇒ Object
1533 |
# File 'lib/box2d_types.rb', line 1533 def drawGraphColors = self[:drawGraphColors] |
#drawGraphColors=(v) ⇒ Object
1534 |
# File 'lib/box2d_types.rb', line 1534 def drawGraphColors=(v) self[:drawGraphColors] = v end |
#drawingBounds ⇒ Object
1515 |
# File 'lib/box2d_types.rb', line 1515 def drawingBounds = self[:drawingBounds] |
#drawingBounds=(v) ⇒ Object
1516 |
# File 'lib/box2d_types.rb', line 1516 def drawingBounds=(v) self[:drawingBounds] = v end |
#drawIslands ⇒ Object
1543 |
# File 'lib/box2d_types.rb', line 1543 def drawIslands = self[:drawIslands] |
#drawIslands=(v) ⇒ Object
1544 |
# File 'lib/box2d_types.rb', line 1544 def drawIslands=(v) self[:drawIslands] = v end |
#drawJointExtras ⇒ Object
1523 |
# File 'lib/box2d_types.rb', line 1523 def drawJointExtras = self[:drawJointExtras] |
#drawJointExtras=(v) ⇒ Object
1524 |
# File 'lib/box2d_types.rb', line 1524 def drawJointExtras=(v) self[:drawJointExtras] = v end |
#drawJoints ⇒ Object
1521 |
# File 'lib/box2d_types.rb', line 1521 def drawJoints = self[:drawJoints] |
#drawJoints=(v) ⇒ Object
1522 |
# File 'lib/box2d_types.rb', line 1522 def drawJoints=(v) self[:drawJoints] = v end |
#drawMass ⇒ Object
1527 |
# File 'lib/box2d_types.rb', line 1527 def drawMass = self[:drawMass] |
#drawMass=(v) ⇒ Object
1528 |
# File 'lib/box2d_types.rb', line 1528 def drawMass=(v) self[:drawMass] = v end |
#DrawPointFcn ⇒ Object
1511 |
# File 'lib/box2d_types.rb', line 1511 def DrawPointFcn = self[:DrawPointFcn] |
#DrawPointFcn=(v) ⇒ Object
1512 |
# File 'lib/box2d_types.rb', line 1512 def DrawPointFcn=(v) self[:DrawPointFcn] = v end |
#DrawPolygonFcn ⇒ Object
1497 |
# File 'lib/box2d_types.rb', line 1497 def DrawPolygonFcn = self[:DrawPolygonFcn] |
#DrawPolygonFcn=(v) ⇒ Object
1498 |
# File 'lib/box2d_types.rb', line 1498 def DrawPolygonFcn=(v) self[:DrawPolygonFcn] = v end |
#DrawSegmentFcn ⇒ Object
1507 |
# File 'lib/box2d_types.rb', line 1507 def DrawSegmentFcn = self[:DrawSegmentFcn] |
#DrawSegmentFcn=(v) ⇒ Object
1508 |
# File 'lib/box2d_types.rb', line 1508 def DrawSegmentFcn=(v) self[:DrawSegmentFcn] = v end |
#drawShapes ⇒ Object
1519 |
# File 'lib/box2d_types.rb', line 1519 def drawShapes = self[:drawShapes] |
#drawShapes=(v) ⇒ Object
1520 |
# File 'lib/box2d_types.rb', line 1520 def drawShapes=(v) self[:drawShapes] = v end |
#DrawSolidCapsuleFcn ⇒ Object
1505 |
# File 'lib/box2d_types.rb', line 1505 def DrawSolidCapsuleFcn = self[:DrawSolidCapsuleFcn] |
#DrawSolidCapsuleFcn=(v) ⇒ Object
1506 |
# File 'lib/box2d_types.rb', line 1506 def DrawSolidCapsuleFcn=(v) self[:DrawSolidCapsuleFcn] = v end |
#DrawSolidCircleFcn ⇒ Object
1503 |
# File 'lib/box2d_types.rb', line 1503 def DrawSolidCircleFcn = self[:DrawSolidCircleFcn] |
#DrawSolidCircleFcn=(v) ⇒ Object
1504 |
# File 'lib/box2d_types.rb', line 1504 def DrawSolidCircleFcn=(v) self[:DrawSolidCircleFcn] = v end |
#DrawSolidPolygonFcn ⇒ Object
1499 |
# File 'lib/box2d_types.rb', line 1499 def DrawSolidPolygonFcn = self[:DrawSolidPolygonFcn] |
#DrawSolidPolygonFcn=(v) ⇒ Object
1500 |
# File 'lib/box2d_types.rb', line 1500 def DrawSolidPolygonFcn=(v) self[:DrawSolidPolygonFcn] = v end |
#DrawStringFcn ⇒ Object
1513 |
# File 'lib/box2d_types.rb', line 1513 def DrawStringFcn = self[:DrawStringFcn] |
#DrawStringFcn=(v) ⇒ Object
1514 |
# File 'lib/box2d_types.rb', line 1514 def DrawStringFcn=(v) self[:DrawStringFcn] = v end |
#DrawTransformFcn ⇒ Object
1509 |
# File 'lib/box2d_types.rb', line 1509 def DrawTransformFcn = self[:DrawTransformFcn] |
#DrawTransformFcn=(v) ⇒ Object
1510 |
# File 'lib/box2d_types.rb', line 1510 def DrawTransformFcn=(v) self[:DrawTransformFcn] = v end |
#useDrawingBounds ⇒ Object
1517 |
# File 'lib/box2d_types.rb', line 1517 def useDrawingBounds = self[:useDrawingBounds] |
#useDrawingBounds=(v) ⇒ Object
1518 |
# File 'lib/box2d_types.rb', line 1518 def useDrawingBounds=(v) self[:useDrawingBounds] = v end |