Class: Box2D::Counters

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/box2d_types.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.create_as(_bodyCount_, _shapeCount_, _contactCount_, _jointCount_, _islandCount_, _stackUsed_, _staticTreeHeight_, _treeHeight_, _byteCount_, _taskCount_, _colorCounts_) ⇒ Object



709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
# File 'lib/box2d_types.rb', line 709

def self.create_as(_bodyCount_, _shapeCount_, _contactCount_, _jointCount_, _islandCount_, _stackUsed_, _staticTreeHeight_, _treeHeight_, _byteCount_, _taskCount_, _colorCounts_)
  instance = Counters.new
  instance[:bodyCount] = _bodyCount_
  instance[:shapeCount] = _shapeCount_
  instance[:contactCount] = _contactCount_
  instance[:jointCount] = _jointCount_
  instance[:islandCount] = _islandCount_
  instance[:stackUsed] = _stackUsed_
  instance[:staticTreeHeight] = _staticTreeHeight_
  instance[:treeHeight] = _treeHeight_
  instance[:byteCount] = _byteCount_
  instance[:taskCount] = _taskCount_
  instance[:colorCounts] = _colorCounts_
  instance
end

Instance Method Details

#bodyCountObject



687
# File 'lib/box2d_types.rb', line 687

def bodyCount = self[:bodyCount]

#bodyCount=(v) ⇒ Object



688
# File 'lib/box2d_types.rb', line 688

def bodyCount=(v) self[:bodyCount] = v end

#byteCountObject



703
# File 'lib/box2d_types.rb', line 703

def byteCount = self[:byteCount]

#byteCount=(v) ⇒ Object



704
# File 'lib/box2d_types.rb', line 704

def byteCount=(v) self[:byteCount] = v end

#colorCountsObject



707
# File 'lib/box2d_types.rb', line 707

def colorCounts = self[:colorCounts]

#colorCounts=(v) ⇒ Object



708
# File 'lib/box2d_types.rb', line 708

def colorCounts=(v) self[:colorCounts] = v end

#contactCountObject



691
# File 'lib/box2d_types.rb', line 691

def contactCount = self[:contactCount]

#contactCount=(v) ⇒ Object



692
# File 'lib/box2d_types.rb', line 692

def contactCount=(v) self[:contactCount] = v end

#islandCountObject



695
# File 'lib/box2d_types.rb', line 695

def islandCount = self[:islandCount]

#islandCount=(v) ⇒ Object



696
# File 'lib/box2d_types.rb', line 696

def islandCount=(v) self[:islandCount] = v end

#jointCountObject



693
# File 'lib/box2d_types.rb', line 693

def jointCount = self[:jointCount]

#jointCount=(v) ⇒ Object



694
# File 'lib/box2d_types.rb', line 694

def jointCount=(v) self[:jointCount] = v end

#shapeCountObject



689
# File 'lib/box2d_types.rb', line 689

def shapeCount = self[:shapeCount]

#shapeCount=(v) ⇒ Object



690
# File 'lib/box2d_types.rb', line 690

def shapeCount=(v) self[:shapeCount] = v end

#stackUsedObject



697
# File 'lib/box2d_types.rb', line 697

def stackUsed = self[:stackUsed]

#stackUsed=(v) ⇒ Object



698
# File 'lib/box2d_types.rb', line 698

def stackUsed=(v) self[:stackUsed] = v end

#staticTreeHeightObject



699
# File 'lib/box2d_types.rb', line 699

def staticTreeHeight = self[:staticTreeHeight]

#staticTreeHeight=(v) ⇒ Object



700
# File 'lib/box2d_types.rb', line 700

def staticTreeHeight=(v) self[:staticTreeHeight] = v end

#taskCountObject



705
# File 'lib/box2d_types.rb', line 705

def taskCount = self[:taskCount]

#taskCount=(v) ⇒ Object



706
# File 'lib/box2d_types.rb', line 706

def taskCount=(v) self[:taskCount] = v end

#treeHeightObject



701
# File 'lib/box2d_types.rb', line 701

def treeHeight = self[:treeHeight]

#treeHeight=(v) ⇒ Object



702
# File 'lib/box2d_types.rb', line 702

def treeHeight=(v) self[:treeHeight] = v end