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
- #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_, _drawContacts_, _drawGraphColors_, _drawContactNormals_, _drawContactImpulses_, _drawFrictionImpulses_, _context_) ⇒ Object
1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 |
# File 'lib/box2d_types.rb', line 1516 def self.create_as(_DrawPolygon_, _DrawSolidPolygon_, _DrawCircle_, _DrawSolidCircle_, _DrawSolidCapsule_, _DrawSegment_, _DrawTransform_, _DrawPoint_, _DrawString_, _drawingBounds_, _useDrawingBounds_, _drawShapes_, _drawJoints_, _drawJointExtras_, _drawAABBs_, _drawMass_, _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[:drawContacts] = _drawContacts_ instance[:drawGraphColors] = _drawGraphColors_ instance[:drawContactNormals] = _drawContactNormals_ instance[:drawContactImpulses] = _drawContactImpulses_ instance[:drawFrictionImpulses] = _drawFrictionImpulses_ instance[:context] = _context_ instance end |
Instance Method Details
#context ⇒ Object
1514 |
# File 'lib/box2d_types.rb', line 1514 def context = self[:context] |
#context=(v) ⇒ Object
1515 |
# File 'lib/box2d_types.rb', line 1515 def context=(v) self[:context] = v end |
#drawAABBs ⇒ Object
1500 |
# File 'lib/box2d_types.rb', line 1500 def drawAABBs = self[:drawAABBs] |
#drawAABBs=(v) ⇒ Object
1501 |
# File 'lib/box2d_types.rb', line 1501 def drawAABBs=(v) self[:drawAABBs] = v end |
#DrawCircle ⇒ Object
1476 |
# File 'lib/box2d_types.rb', line 1476 def DrawCircle = self[:DrawCircle] |
#DrawCircle=(v) ⇒ Object
1477 |
# File 'lib/box2d_types.rb', line 1477 def DrawCircle=(v) self[:DrawCircle] = v end |
#drawContactImpulses ⇒ Object
1510 |
# File 'lib/box2d_types.rb', line 1510 def drawContactImpulses = self[:drawContactImpulses] |
#drawContactImpulses=(v) ⇒ Object
1511 |
# File 'lib/box2d_types.rb', line 1511 def drawContactImpulses=(v) self[:drawContactImpulses] = v end |
#drawContactNormals ⇒ Object
1508 |
# File 'lib/box2d_types.rb', line 1508 def drawContactNormals = self[:drawContactNormals] |
#drawContactNormals=(v) ⇒ Object
1509 |
# File 'lib/box2d_types.rb', line 1509 def drawContactNormals=(v) self[:drawContactNormals] = v end |
#drawContacts ⇒ Object
1504 |
# File 'lib/box2d_types.rb', line 1504 def drawContacts = self[:drawContacts] |
#drawContacts=(v) ⇒ Object
1505 |
# File 'lib/box2d_types.rb', line 1505 def drawContacts=(v) self[:drawContacts] = v end |
#drawFrictionImpulses ⇒ Object
1512 |
# File 'lib/box2d_types.rb', line 1512 def drawFrictionImpulses = self[:drawFrictionImpulses] |
#drawFrictionImpulses=(v) ⇒ Object
1513 |
# File 'lib/box2d_types.rb', line 1513 def drawFrictionImpulses=(v) self[:drawFrictionImpulses] = v end |
#drawGraphColors ⇒ Object
1506 |
# File 'lib/box2d_types.rb', line 1506 def drawGraphColors = self[:drawGraphColors] |
#drawGraphColors=(v) ⇒ Object
1507 |
# File 'lib/box2d_types.rb', line 1507 def drawGraphColors=(v) self[:drawGraphColors] = v end |
#drawingBounds ⇒ Object
1490 |
# File 'lib/box2d_types.rb', line 1490 def drawingBounds = self[:drawingBounds] |
#drawingBounds=(v) ⇒ Object
1491 |
# File 'lib/box2d_types.rb', line 1491 def drawingBounds=(v) self[:drawingBounds] = v end |
#drawJointExtras ⇒ Object
1498 |
# File 'lib/box2d_types.rb', line 1498 def drawJointExtras = self[:drawJointExtras] |
#drawJointExtras=(v) ⇒ Object
1499 |
# File 'lib/box2d_types.rb', line 1499 def drawJointExtras=(v) self[:drawJointExtras] = v end |
#drawJoints ⇒ Object
1496 |
# File 'lib/box2d_types.rb', line 1496 def drawJoints = self[:drawJoints] |
#drawJoints=(v) ⇒ Object
1497 |
# File 'lib/box2d_types.rb', line 1497 def drawJoints=(v) self[:drawJoints] = v end |
#drawMass ⇒ Object
1502 |
# File 'lib/box2d_types.rb', line 1502 def drawMass = self[:drawMass] |
#drawMass=(v) ⇒ Object
1503 |
# File 'lib/box2d_types.rb', line 1503 def drawMass=(v) self[:drawMass] = v end |
#DrawPoint ⇒ Object
1486 |
# File 'lib/box2d_types.rb', line 1486 def DrawPoint = self[:DrawPoint] |
#DrawPoint=(v) ⇒ Object
1487 |
# File 'lib/box2d_types.rb', line 1487 def DrawPoint=(v) self[:DrawPoint] = v end |
#DrawPolygon ⇒ Object
1472 |
# File 'lib/box2d_types.rb', line 1472 def DrawPolygon = self[:DrawPolygon] |
#DrawPolygon=(v) ⇒ Object
1473 |
# File 'lib/box2d_types.rb', line 1473 def DrawPolygon=(v) self[:DrawPolygon] = v end |
#DrawSegment ⇒ Object
1482 |
# File 'lib/box2d_types.rb', line 1482 def DrawSegment = self[:DrawSegment] |
#DrawSegment=(v) ⇒ Object
1483 |
# File 'lib/box2d_types.rb', line 1483 def DrawSegment=(v) self[:DrawSegment] = v end |
#drawShapes ⇒ Object
1494 |
# File 'lib/box2d_types.rb', line 1494 def drawShapes = self[:drawShapes] |
#drawShapes=(v) ⇒ Object
1495 |
# File 'lib/box2d_types.rb', line 1495 def drawShapes=(v) self[:drawShapes] = v end |
#DrawSolidCapsule ⇒ Object
1480 |
# File 'lib/box2d_types.rb', line 1480 def DrawSolidCapsule = self[:DrawSolidCapsule] |
#DrawSolidCapsule=(v) ⇒ Object
1481 |
# File 'lib/box2d_types.rb', line 1481 def DrawSolidCapsule=(v) self[:DrawSolidCapsule] = v end |
#DrawSolidCircle ⇒ Object
1478 |
# File 'lib/box2d_types.rb', line 1478 def DrawSolidCircle = self[:DrawSolidCircle] |
#DrawSolidCircle=(v) ⇒ Object
1479 |
# File 'lib/box2d_types.rb', line 1479 def DrawSolidCircle=(v) self[:DrawSolidCircle] = v end |
#DrawSolidPolygon ⇒ Object
1474 |
# File 'lib/box2d_types.rb', line 1474 def DrawSolidPolygon = self[:DrawSolidPolygon] |
#DrawSolidPolygon=(v) ⇒ Object
1475 |
# File 'lib/box2d_types.rb', line 1475 def DrawSolidPolygon=(v) self[:DrawSolidPolygon] = v end |
#DrawString ⇒ Object
1488 |
# File 'lib/box2d_types.rb', line 1488 def DrawString = self[:DrawString] |
#DrawString=(v) ⇒ Object
1489 |
# File 'lib/box2d_types.rb', line 1489 def DrawString=(v) self[:DrawString] = v end |
#DrawTransform ⇒ Object
1484 |
# File 'lib/box2d_types.rb', line 1484 def DrawTransform = self[:DrawTransform] |
#DrawTransform=(v) ⇒ Object
1485 |
# File 'lib/box2d_types.rb', line 1485 def DrawTransform=(v) self[:DrawTransform] = v end |
#useDrawingBounds ⇒ Object
1492 |
# File 'lib/box2d_types.rb', line 1492 def useDrawingBounds = self[:useDrawingBounds] |
#useDrawingBounds=(v) ⇒ Object
1493 |
# File 'lib/box2d_types.rb', line 1493 def useDrawingBounds=(v) self[:useDrawingBounds] = v end |