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
- #drawAABBs ⇒ Object
- #drawAABBs=(v) ⇒ Object
- #drawBodyNames ⇒ Object
- #drawBodyNames=(v) ⇒ Object
- #DrawCircle ⇒ Object
- #DrawCircle=(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
- #drawJointExtras ⇒ Object
- #drawJointExtras=(v) ⇒ Object
- #drawJoints ⇒ Object
- #drawJoints=(v) ⇒ Object
- #drawMass ⇒ Object
- #drawMass=(v) ⇒ Object
- #DrawPoint ⇒ Object
- #DrawPoint=(v) ⇒ Object
- #DrawPolygon ⇒ Object
- #DrawPolygon=(v) ⇒ Object
- #DrawSegment ⇒ Object
- #DrawSegment=(v) ⇒ Object
- #drawShapes ⇒ Object
- #drawShapes=(v) ⇒ Object
- #DrawSolidCapsule ⇒ Object
- #DrawSolidCapsule=(v) ⇒ Object
- #DrawSolidCircle ⇒ Object
- #DrawSolidCircle=(v) ⇒ Object
- #DrawSolidPolygon ⇒ Object
- #DrawSolidPolygon=(v) ⇒ Object
- #DrawString ⇒ Object
- #DrawString=(v) ⇒ Object
- #DrawTransform ⇒ Object
- #DrawTransform=(v) ⇒ Object
- #useDrawingBounds ⇒ Object
- #useDrawingBounds=(v) ⇒ Object
Class Method Details
.create_as(_DrawPolygon_, _DrawSolidPolygon_, _DrawCircle_, _DrawSolidCircle_, _DrawSolidCapsule_, _DrawSegment_, _DrawTransform_, _DrawPoint_, _DrawString_, _drawingBounds_, _useDrawingBounds_, _drawShapes_, _drawJoints_, _drawJointExtras_, _drawAABBs_, _drawMass_, _drawBodyNames_, _drawContacts_, _drawGraphColors_, _drawContactNormals_, _drawContactImpulses_, _drawFrictionImpulses_, _context_) ⇒ Object
1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 |
# File 'lib/box2d_types.rb', line 1552 def self.create_as(_DrawPolygon_, _DrawSolidPolygon_, _DrawCircle_, _DrawSolidCircle_, _DrawSolidCapsule_, _DrawSegment_, _DrawTransform_, _DrawPoint_, _DrawString_, _drawingBounds_, _useDrawingBounds_, _drawShapes_, _drawJoints_, _drawJointExtras_, _drawAABBs_, _drawMass_, _drawBodyNames_, _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[:drawBodyNames] = _drawBodyNames_ instance[:drawContacts] = _drawContacts_ instance[:drawGraphColors] = _drawGraphColors_ instance[:drawContactNormals] = _drawContactNormals_ instance[:drawContactImpulses] = _drawContactImpulses_ instance[:drawFrictionImpulses] = _drawFrictionImpulses_ instance[:context] = _context_ instance end |
Instance Method Details
#context ⇒ Object
1550 |
# File 'lib/box2d_types.rb', line 1550 def context = self[:context] |
#context=(v) ⇒ Object
1551 |
# File 'lib/box2d_types.rb', line 1551 def context=(v) self[:context] = v end |
#drawAABBs ⇒ Object
1534 |
# File 'lib/box2d_types.rb', line 1534 def drawAABBs = self[:drawAABBs] |
#drawAABBs=(v) ⇒ Object
1535 |
# File 'lib/box2d_types.rb', line 1535 def drawAABBs=(v) self[:drawAABBs] = v end |
#drawBodyNames ⇒ Object
1538 |
# File 'lib/box2d_types.rb', line 1538 def drawBodyNames = self[:drawBodyNames] |
#drawBodyNames=(v) ⇒ Object
1539 |
# File 'lib/box2d_types.rb', line 1539 def drawBodyNames=(v) self[:drawBodyNames] = v end |
#DrawCircle ⇒ Object
1510 |
# File 'lib/box2d_types.rb', line 1510 def DrawCircle = self[:DrawCircle] |
#DrawCircle=(v) ⇒ Object
1511 |
# File 'lib/box2d_types.rb', line 1511 def DrawCircle=(v) self[:DrawCircle] = v end |
#drawContactImpulses ⇒ Object
1546 |
# File 'lib/box2d_types.rb', line 1546 def drawContactImpulses = self[:drawContactImpulses] |
#drawContactImpulses=(v) ⇒ Object
1547 |
# File 'lib/box2d_types.rb', line 1547 def drawContactImpulses=(v) self[:drawContactImpulses] = v end |
#drawContactNormals ⇒ Object
1544 |
# File 'lib/box2d_types.rb', line 1544 def drawContactNormals = self[:drawContactNormals] |
#drawContactNormals=(v) ⇒ Object
1545 |
# File 'lib/box2d_types.rb', line 1545 def drawContactNormals=(v) self[:drawContactNormals] = v end |
#drawContacts ⇒ Object
1540 |
# File 'lib/box2d_types.rb', line 1540 def drawContacts = self[:drawContacts] |
#drawContacts=(v) ⇒ Object
1541 |
# File 'lib/box2d_types.rb', line 1541 def drawContacts=(v) self[:drawContacts] = v end |
#drawFrictionImpulses ⇒ Object
1548 |
# File 'lib/box2d_types.rb', line 1548 def drawFrictionImpulses = self[:drawFrictionImpulses] |
#drawFrictionImpulses=(v) ⇒ Object
1549 |
# File 'lib/box2d_types.rb', line 1549 def drawFrictionImpulses=(v) self[:drawFrictionImpulses] = v end |
#drawGraphColors ⇒ Object
1542 |
# File 'lib/box2d_types.rb', line 1542 def drawGraphColors = self[:drawGraphColors] |
#drawGraphColors=(v) ⇒ Object
1543 |
# File 'lib/box2d_types.rb', line 1543 def drawGraphColors=(v) self[:drawGraphColors] = v end |
#drawingBounds ⇒ Object
1524 |
# File 'lib/box2d_types.rb', line 1524 def drawingBounds = self[:drawingBounds] |
#drawingBounds=(v) ⇒ Object
1525 |
# File 'lib/box2d_types.rb', line 1525 def drawingBounds=(v) self[:drawingBounds] = v end |
#drawJointExtras ⇒ Object
1532 |
# File 'lib/box2d_types.rb', line 1532 def drawJointExtras = self[:drawJointExtras] |
#drawJointExtras=(v) ⇒ Object
1533 |
# File 'lib/box2d_types.rb', line 1533 def drawJointExtras=(v) self[:drawJointExtras] = v end |
#drawJoints ⇒ Object
1530 |
# File 'lib/box2d_types.rb', line 1530 def drawJoints = self[:drawJoints] |
#drawJoints=(v) ⇒ Object
1531 |
# File 'lib/box2d_types.rb', line 1531 def drawJoints=(v) self[:drawJoints] = v end |
#drawMass ⇒ Object
1536 |
# File 'lib/box2d_types.rb', line 1536 def drawMass = self[:drawMass] |
#drawMass=(v) ⇒ Object
1537 |
# File 'lib/box2d_types.rb', line 1537 def drawMass=(v) self[:drawMass] = v end |
#DrawPoint ⇒ Object
1520 |
# File 'lib/box2d_types.rb', line 1520 def DrawPoint = self[:DrawPoint] |
#DrawPoint=(v) ⇒ Object
1521 |
# File 'lib/box2d_types.rb', line 1521 def DrawPoint=(v) self[:DrawPoint] = v end |
#DrawPolygon ⇒ Object
1506 |
# File 'lib/box2d_types.rb', line 1506 def DrawPolygon = self[:DrawPolygon] |
#DrawPolygon=(v) ⇒ Object
1507 |
# File 'lib/box2d_types.rb', line 1507 def DrawPolygon=(v) self[:DrawPolygon] = v end |
#DrawSegment ⇒ Object
1516 |
# File 'lib/box2d_types.rb', line 1516 def DrawSegment = self[:DrawSegment] |
#DrawSegment=(v) ⇒ Object
1517 |
# File 'lib/box2d_types.rb', line 1517 def DrawSegment=(v) self[:DrawSegment] = v end |
#drawShapes ⇒ Object
1528 |
# File 'lib/box2d_types.rb', line 1528 def drawShapes = self[:drawShapes] |
#drawShapes=(v) ⇒ Object
1529 |
# File 'lib/box2d_types.rb', line 1529 def drawShapes=(v) self[:drawShapes] = v end |
#DrawSolidCapsule ⇒ Object
1514 |
# File 'lib/box2d_types.rb', line 1514 def DrawSolidCapsule = self[:DrawSolidCapsule] |
#DrawSolidCapsule=(v) ⇒ Object
1515 |
# File 'lib/box2d_types.rb', line 1515 def DrawSolidCapsule=(v) self[:DrawSolidCapsule] = v end |
#DrawSolidCircle ⇒ Object
1512 |
# File 'lib/box2d_types.rb', line 1512 def DrawSolidCircle = self[:DrawSolidCircle] |
#DrawSolidCircle=(v) ⇒ Object
1513 |
# File 'lib/box2d_types.rb', line 1513 def DrawSolidCircle=(v) self[:DrawSolidCircle] = v end |
#DrawSolidPolygon ⇒ Object
1508 |
# File 'lib/box2d_types.rb', line 1508 def DrawSolidPolygon = self[:DrawSolidPolygon] |
#DrawSolidPolygon=(v) ⇒ Object
1509 |
# File 'lib/box2d_types.rb', line 1509 def DrawSolidPolygon=(v) self[:DrawSolidPolygon] = v end |
#DrawString ⇒ Object
1522 |
# File 'lib/box2d_types.rb', line 1522 def DrawString = self[:DrawString] |
#DrawString=(v) ⇒ Object
1523 |
# File 'lib/box2d_types.rb', line 1523 def DrawString=(v) self[:DrawString] = v end |
#DrawTransform ⇒ Object
1518 |
# File 'lib/box2d_types.rb', line 1518 def DrawTransform = self[:DrawTransform] |
#DrawTransform=(v) ⇒ Object
1519 |
# File 'lib/box2d_types.rb', line 1519 def DrawTransform=(v) self[:DrawTransform] = v end |
#useDrawingBounds ⇒ Object
1526 |
# File 'lib/box2d_types.rb', line 1526 def useDrawingBounds = self[:useDrawingBounds] |
#useDrawingBounds=(v) ⇒ Object
1527 |
# File 'lib/box2d_types.rb', line 1527 def useDrawingBounds=(v) self[:useDrawingBounds] = v end |