Method: Raylib#RGuiSliderBar

Defined in:
lib/raygui_helper.rb

#RGuiSliderBar(bounds, textLeft, textRight, value, minValue, maxValue) ⇒ Object



79
80
81
82
83
84
# File 'lib/raygui_helper.rb', line 79

def RGuiSliderBar(bounds, textLeft, textRight, value, minValue, maxValue)
  value_buf = FFI::MemoryPointer.new(:float, 1)
  value_buf.put_float(0, value)
  result = GuiSliderBar(bounds, textLeft, textRight, value_buf, minValue, maxValue)
  return value_buf.read_float, result
end