raylib-bindings 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
data/lib/raylib.rb CHANGED
@@ -9,9 +9,10 @@ require_relative 'config'
9
9
  require_relative 'raymath'
10
10
  require_relative 'rcamera'
11
11
  require_relative 'rlgl'
12
- require_relative 'raygui'
12
+ require_relative 'raygui_main'
13
13
  require_relative 'physac'
14
14
  require_relative 'raylib_helper'
15
+ require_relative 'raygui_helper'
15
16
 
16
17
  module Raylib
17
18
  extend FFI::Library
data/lib/raylib_main.rb CHANGED
@@ -2709,6 +2709,14 @@ module Raylib
2709
2709
  # @return [bool]
2710
2710
  [:ExportImage, :ExportImage, [Image.by_value, :pointer], :bool],
2711
2711
 
2712
+ # @!method ExportImageToMemory(image, fileType, fileSize)
2713
+ # ExportImageToMemory : Export image to memory buffer
2714
+ # @param image [Image]
2715
+ # @param fileType [const char *]
2716
+ # @param fileSize [int *]
2717
+ # @return [unsigned char *]
2718
+ [:ExportImageToMemory, :ExportImageToMemory, [Image.by_value, :pointer, :pointer], :pointer],
2719
+
2712
2720
  # @!method ExportImageAsCode(image, fileName)
2713
2721
  # ExportImageAsCode : Export image as code file defining an array of bytes, returns true on success
2714
2722
  # @param image [Image]
@@ -2724,33 +2732,35 @@ module Raylib
2724
2732
  # @return [Image]
2725
2733
  [:GenImageColor, :GenImageColor, [:int, :int, Color.by_value], Image.by_value],
2726
2734
 
2727
- # @!method GenImageGradientV(width, height, top, bottom)
2728
- # GenImageGradientV : Generate image: vertical gradient
2735
+ # @!method GenImageGradientLinear(width, height, direction, start, end)
2736
+ # GenImageGradientLinear : Generate image: linear gradient, direction in degrees [0..360], 0=Vertical gradient
2729
2737
  # @param width [int]
2730
2738
  # @param height [int]
2731
- # @param top [Color]
2732
- # @param bottom [Color]
2739
+ # @param direction [int]
2740
+ # @param start [Color]
2741
+ # @param end [Color]
2733
2742
  # @return [Image]
2734
- [:GenImageGradientV, :GenImageGradientV, [:int, :int, Color.by_value, Color.by_value], Image.by_value],
2743
+ [:GenImageGradientLinear, :GenImageGradientLinear, [:int, :int, :int, Color.by_value, Color.by_value], Image.by_value],
2735
2744
 
2736
- # @!method GenImageGradientH(width, height, left, right)
2737
- # GenImageGradientH : Generate image: horizontal gradient
2745
+ # @!method GenImageGradientRadial(width, height, density, inner, outer)
2746
+ # GenImageGradientRadial : Generate image: radial gradient
2738
2747
  # @param width [int]
2739
2748
  # @param height [int]
2740
- # @param left [Color]
2741
- # @param right [Color]
2749
+ # @param density [float]
2750
+ # @param inner [Color]
2751
+ # @param outer [Color]
2742
2752
  # @return [Image]
2743
- [:GenImageGradientH, :GenImageGradientH, [:int, :int, Color.by_value, Color.by_value], Image.by_value],
2753
+ [:GenImageGradientRadial, :GenImageGradientRadial, [:int, :int, :float, Color.by_value, Color.by_value], Image.by_value],
2744
2754
 
2745
- # @!method GenImageGradientRadial(width, height, density, inner, outer)
2746
- # GenImageGradientRadial : Generate image: radial gradient
2755
+ # @!method GenImageGradientSquare(width, height, density, inner, outer)
2756
+ # GenImageGradientSquare : Generate image: square gradient
2747
2757
  # @param width [int]
2748
2758
  # @param height [int]
2749
2759
  # @param density [float]
2750
2760
  # @param inner [Color]
2751
2761
  # @param outer [Color]
2752
2762
  # @return [Image]
2753
- [:GenImageGradientRadial, :GenImageGradientRadial, [:int, :int, :float, Color.by_value, Color.by_value], Image.by_value],
2763
+ [:GenImageGradientSquare, :GenImageGradientSquare, [:int, :int, :float, Color.by_value, Color.by_value], Image.by_value],
2754
2764
 
2755
2765
  # @!method GenImageChecked(width, height, checksX, checksY, col1, col2)
2756
2766
  # GenImageChecked : Generate image: checked
@@ -2939,6 +2949,13 @@ module Raylib
2939
2949
  # @return [void]
2940
2950
  [:ImageFlipHorizontal, :ImageFlipHorizontal, [:pointer], :void],
2941
2951
 
2952
+ # @!method ImageRotate(image, degrees)
2953
+ # ImageRotate : Rotate image by input angle in degrees (-359 to 359)
2954
+ # @param image [Image *]
2955
+ # @param degrees [int]
2956
+ # @return [void]
2957
+ [:ImageRotate, :ImageRotate, [:pointer, :int], :void],
2958
+
2942
2959
  # @!method ImageRotateCW(image)
2943
2960
  # ImageRotateCW : Rotate image clockwise 90deg
2944
2961
  # @param image [Image *]
data/lib/rlgl.rb CHANGED
@@ -87,6 +87,7 @@ module Raylib
87
87
  RL_OPENGL_33 = 3 # OpenGL 3.3 (GLSL 330)
88
88
  RL_OPENGL_43 = 4 # OpenGL 4.3 (using GLSL 330)
89
89
  RL_OPENGL_ES_20 = 5 # OpenGL ES 2.0 (GLSL 100)
90
+ RL_OPENGL_ES_30 = 6 # OpenGL ES 3.0 (GLSL 300 es)
90
91
 
91
92
  # enum rlTraceLogLevel
92
93
  # Trace log level
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raylib-bindings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaiorabbit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-14 00:00:00.000000000 Z
11
+ date: 2023-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -66,6 +66,8 @@ files:
66
66
  - lib/raygui.dylib
67
67
  - lib/raygui.rb
68
68
  - lib/raygui.x86_64.so
69
+ - lib/raygui_helper.rb
70
+ - lib/raygui_main.rb
69
71
  - lib/raylib.rb
70
72
  - lib/raylib_helper.rb
71
73
  - lib/raylib_main.rb
@@ -91,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
93
  - !ruby/object:Gem::Version
92
94
  version: '0'
93
95
  requirements: []
94
- rubygems_version: 3.4.6
96
+ rubygems_version: 3.4.14
95
97
  signing_key:
96
98
  specification_version: 4
97
99
  summary: Provides latest raylib API for Ruby