Module: Jolt::Native::ConstraintFunctions

Defined in:
lib/jolt/native/constraint_functions.rb

Class Method Summary collapse

Class Method Details

.attach(native) ⇒ Object



8
9
10
# File 'lib/jolt/native/constraint_functions.rb', line 8

def attach(native)
  attach_constructors(native)
end

.attach_constructors(native) ⇒ Object



12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/jolt/native/constraint_functions.rb', line 12

def attach_constructors(native)
  native.attach_function :JR_Constraint_CreateFixed,
                         %i[pointer uint32 uint32 pointer], :pointer
  native.attach_function :JR_Constraint_CreatePoint,
                         %i[pointer uint32 uint32 pointer], :pointer
  native.attach_function :JR_Constraint_CreateDistance,
                         %i[pointer uint32 uint32 pointer pointer float float], :pointer
  native.attach_function :JR_Constraint_CreateHinge,
                         %i[pointer uint32 uint32 pointer pointer pointer bool float float], :pointer
  native.attach_function :JR_Constraint_CreateSlider,
                         %i[pointer uint32 uint32 pointer pointer bool float float], :pointer
end