raylib-bindings 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/rcamera.rb CHANGED
@@ -22,78 +22,90 @@ module Raylib
22
22
  def self.setup_rcamera_symbols
23
23
  entries = [
24
24
 
25
- # GetCameraForward
26
- # @param camera [Camera *]
27
- # @return [Vector3]
25
+ # @!method GetCameraForward(camera)
26
+ # GetCameraForward
27
+ # @param camera [Camera *]
28
+ # @return [Vector3]
28
29
  [:GetCameraForward, :GetCameraForward, [:pointer], Vector3.by_value],
29
30
 
30
- # GetCameraUp
31
- # @param camera [Camera *]
32
- # @return [Vector3]
31
+ # @!method GetCameraUp(camera)
32
+ # GetCameraUp
33
+ # @param camera [Camera *]
34
+ # @return [Vector3]
33
35
  [:GetCameraUp, :GetCameraUp, [:pointer], Vector3.by_value],
34
36
 
35
- # GetCameraRight
36
- # @param camera [Camera *]
37
- # @return [Vector3]
37
+ # @!method GetCameraRight(camera)
38
+ # GetCameraRight
39
+ # @param camera [Camera *]
40
+ # @return [Vector3]
38
41
  [:GetCameraRight, :GetCameraRight, [:pointer], Vector3.by_value],
39
42
 
40
- # CameraMoveForward
41
- # @param camera [Camera *]
42
- # @param distance [float]
43
- # @param moveInWorldPlane [bool]
44
- # @return [void]
43
+ # @!method CameraMoveForward(camera, distance, moveInWorldPlane)
44
+ # CameraMoveForward
45
+ # @param camera [Camera *]
46
+ # @param distance [float]
47
+ # @param moveInWorldPlane [bool]
48
+ # @return [void]
45
49
  [:CameraMoveForward, :CameraMoveForward, [:pointer, :float, :bool], :void],
46
50
 
47
- # CameraMoveUp
48
- # @param camera [Camera *]
49
- # @param distance [float]
50
- # @return [void]
51
+ # @!method CameraMoveUp(camera, distance)
52
+ # CameraMoveUp
53
+ # @param camera [Camera *]
54
+ # @param distance [float]
55
+ # @return [void]
51
56
  [:CameraMoveUp, :CameraMoveUp, [:pointer, :float], :void],
52
57
 
53
- # CameraMoveRight
54
- # @param camera [Camera *]
55
- # @param distance [float]
56
- # @param moveInWorldPlane [bool]
57
- # @return [void]
58
+ # @!method CameraMoveRight(camera, distance, moveInWorldPlane)
59
+ # CameraMoveRight
60
+ # @param camera [Camera *]
61
+ # @param distance [float]
62
+ # @param moveInWorldPlane [bool]
63
+ # @return [void]
58
64
  [:CameraMoveRight, :CameraMoveRight, [:pointer, :float, :bool], :void],
59
65
 
60
- # CameraMoveToTarget
61
- # @param camera [Camera *]
62
- # @param delta [float]
63
- # @return [void]
66
+ # @!method CameraMoveToTarget(camera, delta)
67
+ # CameraMoveToTarget
68
+ # @param camera [Camera *]
69
+ # @param delta [float]
70
+ # @return [void]
64
71
  [:CameraMoveToTarget, :CameraMoveToTarget, [:pointer, :float], :void],
65
72
 
66
- # CameraYaw
67
- # @param camera [Camera *]
68
- # @param angle [float]
69
- # @param rotateAroundTarget [bool]
70
- # @return [void]
73
+ # @!method CameraYaw(camera, angle, rotateAroundTarget)
74
+ # CameraYaw
75
+ # @param camera [Camera *]
76
+ # @param angle [float]
77
+ # @param rotateAroundTarget [bool]
78
+ # @return [void]
71
79
  [:CameraYaw, :CameraYaw, [:pointer, :float, :bool], :void],
72
80
 
73
- # CameraPitch
74
- # @param camera [Camera *]
75
- # @param angle [float]
76
- # @param lockView [bool]
77
- # @param rotateAroundTarget [bool]
78
- # @param rotateUp [bool]
79
- # @return [void]
81
+ # @!method CameraPitch(camera, angle, lockView, rotateAroundTarget, rotateUp)
82
+ # CameraPitch
83
+ # @param camera [Camera *]
84
+ # @param angle [float]
85
+ # @param lockView [bool]
86
+ # @param rotateAroundTarget [bool]
87
+ # @param rotateUp [bool]
88
+ # @return [void]
80
89
  [:CameraPitch, :CameraPitch, [:pointer, :float, :bool, :bool, :bool], :void],
81
90
 
82
- # CameraRoll
83
- # @param camera [Camera *]
84
- # @param angle [float]
85
- # @return [void]
91
+ # @!method CameraRoll(camera, angle)
92
+ # CameraRoll
93
+ # @param camera [Camera *]
94
+ # @param angle [float]
95
+ # @return [void]
86
96
  [:CameraRoll, :CameraRoll, [:pointer, :float], :void],
87
97
 
88
- # GetCameraViewMatrix
89
- # @param camera [Camera *]
90
- # @return [Matrix]
98
+ # @!method GetCameraViewMatrix(camera)
99
+ # GetCameraViewMatrix
100
+ # @param camera [Camera *]
101
+ # @return [Matrix]
91
102
  [:GetCameraViewMatrix, :GetCameraViewMatrix, [:pointer], :int],
92
103
 
93
- # GetCameraProjectionMatrix
94
- # @param camera [Camera*]
95
- # @param aspect [float]
96
- # @return [Matrix]
104
+ # @!method GetCameraProjectionMatrix(camera, aspect)
105
+ # GetCameraProjectionMatrix
106
+ # @param camera [Camera*]
107
+ # @param aspect [float]
108
+ # @return [Matrix]
97
109
  [:GetCameraProjectionMatrix, :GetCameraProjectionMatrix, [:pointer, :float], :int],
98
110
  ]
99
111
  entries.each do |entry|