raylib-bindings 0.5.8pre1-arm64-darwin → 0.6.1-arm64-darwin
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ChangeLog +436 -399
- data/LICENSE.txt +1 -1
- data/README.md +191 -176
- data/examples/template.rb +144 -143
- data/lib/config.rb +103 -103
- data/lib/libraylib.arm64.dylib +0 -0
- data/lib/physac.arm64.dylib +0 -0
- data/lib/physac.rb +322 -322
- data/lib/raygui.arm64.dylib +0 -0
- data/lib/raygui_helper.rb +127 -127
- data/lib/raygui_main.rb +890 -890
- data/lib/raylib.rb +62 -62
- data/lib/raylib_helper.rb +412 -400
- data/lib/raylib_main.rb +5125 -5088
- data/lib/raymath.rb +845 -845
- data/lib/rcamera.rb +117 -117
- data/lib/rlgl.rb +1327 -1311
- metadata +5 -19
data/lib/rlgl.rb
CHANGED
@@ -1,1311 +1,1327 @@
|
|
1
|
-
# Yet another raylib wrapper for Ruby
|
2
|
-
#
|
3
|
-
# * https://github.com/vaiorabbit/raylib-bindings
|
4
|
-
#
|
5
|
-
# [NOTICE] Autogenerated. Do not edit.
|
6
|
-
|
7
|
-
require 'ffi'
|
8
|
-
|
9
|
-
module Raylib
|
10
|
-
extend FFI::Library
|
11
|
-
|
12
|
-
# Define/Macro
|
13
|
-
|
14
|
-
RLGL_VERSION = "4.5"
|
15
|
-
RL_DEFAULT_BATCH_BUFFER_ELEMENTS = 8192
|
16
|
-
RL_TEXTURE_WRAP_S = 0x2802 # GL_TEXTURE_WRAP_S
|
17
|
-
RL_TEXTURE_WRAP_T = 0x2803 # GL_TEXTURE_WRAP_T
|
18
|
-
RL_TEXTURE_MAG_FILTER = 0x2800 # GL_TEXTURE_MAG_FILTER
|
19
|
-
RL_TEXTURE_MIN_FILTER = 0x2801 # GL_TEXTURE_MIN_FILTER
|
20
|
-
RL_TEXTURE_FILTER_NEAREST = 0x2600 # GL_NEAREST
|
21
|
-
RL_TEXTURE_FILTER_LINEAR = 0x2601 # GL_LINEAR
|
22
|
-
RL_TEXTURE_FILTER_MIP_NEAREST = 0x2700 # GL_NEAREST_MIPMAP_NEAREST
|
23
|
-
RL_TEXTURE_FILTER_NEAREST_MIP_LINEAR = 0x2702 # GL_NEAREST_MIPMAP_LINEAR
|
24
|
-
RL_TEXTURE_FILTER_LINEAR_MIP_NEAREST = 0x2701 # GL_LINEAR_MIPMAP_NEAREST
|
25
|
-
RL_TEXTURE_FILTER_MIP_LINEAR = 0x2703 # GL_LINEAR_MIPMAP_LINEAR
|
26
|
-
RL_TEXTURE_FILTER_ANISOTROPIC = 0x3000 # Anisotropic filter (custom identifier)
|
27
|
-
RL_TEXTURE_MIPMAP_BIAS_RATIO = 0x4000 # Texture mipmap bias, percentage ratio (custom identifier)
|
28
|
-
RL_TEXTURE_WRAP_REPEAT = 0x2901 # GL_REPEAT
|
29
|
-
RL_TEXTURE_WRAP_CLAMP = 0x812F # GL_CLAMP_TO_EDGE
|
30
|
-
RL_TEXTURE_WRAP_MIRROR_REPEAT = 0x8370 # GL_MIRRORED_REPEAT
|
31
|
-
RL_TEXTURE_WRAP_MIRROR_CLAMP = 0x8742 # GL_MIRROR_CLAMP_EXT
|
32
|
-
RL_MODELVIEW = 0x1700 # GL_MODELVIEW
|
33
|
-
RL_PROJECTION = 0x1701 # GL_PROJECTION
|
34
|
-
RL_TEXTURE = 0x1702 # GL_TEXTURE
|
35
|
-
RL_LINES = 0x0001 # GL_LINES
|
36
|
-
RL_TRIANGLES = 0x0004 # GL_TRIANGLES
|
37
|
-
RL_QUADS = 0x0007 # GL_QUADS
|
38
|
-
RL_UNSIGNED_BYTE = 0x1401 # GL_UNSIGNED_BYTE
|
39
|
-
RL_FLOAT = 0x1406 # GL_FLOAT
|
40
|
-
RL_STREAM_DRAW = 0x88E0 # GL_STREAM_DRAW
|
41
|
-
RL_STREAM_READ = 0x88E1 # GL_STREAM_READ
|
42
|
-
RL_STREAM_COPY = 0x88E2 # GL_STREAM_COPY
|
43
|
-
RL_STATIC_DRAW = 0x88E4 # GL_STATIC_DRAW
|
44
|
-
RL_STATIC_READ = 0x88E5 # GL_STATIC_READ
|
45
|
-
RL_STATIC_COPY = 0x88E6 # GL_STATIC_COPY
|
46
|
-
RL_DYNAMIC_DRAW = 0x88E8 # GL_DYNAMIC_DRAW
|
47
|
-
RL_DYNAMIC_READ = 0x88E9 # GL_DYNAMIC_READ
|
48
|
-
RL_DYNAMIC_COPY = 0x88EA # GL_DYNAMIC_COPY
|
49
|
-
RL_FRAGMENT_SHADER = 0x8B30 # GL_FRAGMENT_SHADER
|
50
|
-
RL_VERTEX_SHADER = 0x8B31 # GL_VERTEX_SHADER
|
51
|
-
RL_COMPUTE_SHADER = 0x91B9 # GL_COMPUTE_SHADER
|
52
|
-
RL_ZERO = 0 # GL_ZERO
|
53
|
-
RL_ONE = 1 # GL_ONE
|
54
|
-
RL_SRC_COLOR = 0x0300 # GL_SRC_COLOR
|
55
|
-
RL_ONE_MINUS_SRC_COLOR = 0x0301 # GL_ONE_MINUS_SRC_COLOR
|
56
|
-
RL_SRC_ALPHA = 0x0302 # GL_SRC_ALPHA
|
57
|
-
RL_ONE_MINUS_SRC_ALPHA = 0x0303 # GL_ONE_MINUS_SRC_ALPHA
|
58
|
-
RL_DST_ALPHA = 0x0304 # GL_DST_ALPHA
|
59
|
-
RL_ONE_MINUS_DST_ALPHA = 0x0305 # GL_ONE_MINUS_DST_ALPHA
|
60
|
-
RL_DST_COLOR = 0x0306 # GL_DST_COLOR
|
61
|
-
RL_ONE_MINUS_DST_COLOR = 0x0307 # GL_ONE_MINUS_DST_COLOR
|
62
|
-
RL_SRC_ALPHA_SATURATE = 0x0308 # GL_SRC_ALPHA_SATURATE
|
63
|
-
RL_CONSTANT_COLOR = 0x8001 # GL_CONSTANT_COLOR
|
64
|
-
RL_ONE_MINUS_CONSTANT_COLOR = 0x8002 # GL_ONE_MINUS_CONSTANT_COLOR
|
65
|
-
RL_CONSTANT_ALPHA = 0x8003 # GL_CONSTANT_ALPHA
|
66
|
-
RL_ONE_MINUS_CONSTANT_ALPHA = 0x8004 # GL_ONE_MINUS_CONSTANT_ALPHA
|
67
|
-
RL_FUNC_ADD = 0x8006 # GL_FUNC_ADD
|
68
|
-
RL_MIN = 0x8007 # GL_MIN
|
69
|
-
RL_MAX = 0x8008 # GL_MAX
|
70
|
-
RL_FUNC_SUBTRACT = 0x800A # GL_FUNC_SUBTRACT
|
71
|
-
RL_FUNC_REVERSE_SUBTRACT = 0x800B # GL_FUNC_REVERSE_SUBTRACT
|
72
|
-
RL_BLEND_EQUATION = 0x8009 # GL_BLEND_EQUATION
|
73
|
-
RL_BLEND_EQUATION_RGB = 0x8009 # GL_BLEND_EQUATION_RGB // (Same as BLEND_EQUATION)
|
74
|
-
RL_BLEND_EQUATION_ALPHA = 0x883D # GL_BLEND_EQUATION_ALPHA
|
75
|
-
RL_BLEND_DST_RGB = 0x80C8 # GL_BLEND_DST_RGB
|
76
|
-
RL_BLEND_SRC_RGB = 0x80C9 # GL_BLEND_SRC_RGB
|
77
|
-
RL_BLEND_DST_ALPHA = 0x80CA # GL_BLEND_DST_ALPHA
|
78
|
-
RL_BLEND_SRC_ALPHA = 0x80CB # GL_BLEND_SRC_ALPHA
|
79
|
-
RL_BLEND_COLOR = 0x8005 # GL_BLEND_COLOR
|
80
|
-
|
81
|
-
# Enum
|
82
|
-
|
83
|
-
# enum rlGlVersion
|
84
|
-
# OpenGL version
|
85
|
-
RL_OPENGL_11 = 1 # OpenGL 1.1
|
86
|
-
RL_OPENGL_21 = 2 # OpenGL 2.1 (GLSL 120)
|
87
|
-
RL_OPENGL_33 = 3 # OpenGL 3.3 (GLSL 330)
|
88
|
-
RL_OPENGL_43 = 4 # OpenGL 4.3 (using GLSL 330)
|
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)
|
91
|
-
|
92
|
-
# enum rlTraceLogLevel
|
93
|
-
# Trace log level
|
94
|
-
RL_LOG_ALL = 0 # Display all logs
|
95
|
-
RL_LOG_TRACE = 1 # Trace logging, intended for internal use only
|
96
|
-
RL_LOG_DEBUG = 2 # Debug logging, used for internal debugging, it should be disabled on release builds
|
97
|
-
RL_LOG_INFO = 3 # Info logging, used for program execution info
|
98
|
-
RL_LOG_WARNING = 4 # Warning logging, used on recoverable failures
|
99
|
-
RL_LOG_ERROR = 5 # Error logging, used on unrecoverable failures
|
100
|
-
RL_LOG_FATAL = 6 # Fatal logging, used to abort program: exit(EXIT_FAILURE)
|
101
|
-
RL_LOG_NONE = 7 # Disable logging
|
102
|
-
|
103
|
-
# enum rlPixelFormat
|
104
|
-
# Texture pixel formats
|
105
|
-
RL_PIXELFORMAT_UNCOMPRESSED_GRAYSCALE = 1 # 8 bit per pixel (no alpha)
|
106
|
-
RL_PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA = 2 # 8*2 bpp (2 channels)
|
107
|
-
RL_PIXELFORMAT_UNCOMPRESSED_R5G6B5 = 3 # 16 bpp
|
108
|
-
RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8 = 4 # 24 bpp
|
109
|
-
RL_PIXELFORMAT_UNCOMPRESSED_R5G5B5A1 = 5 # 16 bpp (1 bit alpha)
|
110
|
-
RL_PIXELFORMAT_UNCOMPRESSED_R4G4B4A4 = 6 # 16 bpp (4 bit alpha)
|
111
|
-
RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 = 7 # 32 bpp
|
112
|
-
RL_PIXELFORMAT_UNCOMPRESSED_R32 = 8 # 32 bpp (1 channel - float)
|
113
|
-
RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32 = 9 # 32*3 bpp (3 channels - float)
|
114
|
-
RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32A32 = 10 # 32*4 bpp (4 channels - float)
|
115
|
-
RL_PIXELFORMAT_UNCOMPRESSED_R16 = 11 # 16 bpp (1 channel - half float)
|
116
|
-
RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16 = 12 # 16*3 bpp (3 channels - half float)
|
117
|
-
RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16A16 = 13 # 16*4 bpp (4 channels - half float)
|
118
|
-
RL_PIXELFORMAT_COMPRESSED_DXT1_RGB = 14 # 4 bpp (no alpha)
|
119
|
-
RL_PIXELFORMAT_COMPRESSED_DXT1_RGBA = 15 # 4 bpp (1 bit alpha)
|
120
|
-
RL_PIXELFORMAT_COMPRESSED_DXT3_RGBA = 16 # 8 bpp
|
121
|
-
RL_PIXELFORMAT_COMPRESSED_DXT5_RGBA = 17 # 8 bpp
|
122
|
-
RL_PIXELFORMAT_COMPRESSED_ETC1_RGB = 18 # 4 bpp
|
123
|
-
RL_PIXELFORMAT_COMPRESSED_ETC2_RGB = 19 # 4 bpp
|
124
|
-
RL_PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA = 20 # 8 bpp
|
125
|
-
RL_PIXELFORMAT_COMPRESSED_PVRT_RGB = 21 # 4 bpp
|
126
|
-
RL_PIXELFORMAT_COMPRESSED_PVRT_RGBA = 22 # 4 bpp
|
127
|
-
RL_PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA = 23 # 8 bpp
|
128
|
-
RL_PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA = 24 # 2 bpp
|
129
|
-
|
130
|
-
# enum rlTextureFilter
|
131
|
-
# Texture parameters: filter mode
|
132
|
-
RL_TEXTURE_FILTER_POINT = 0 # No filter, just pixel approximation
|
133
|
-
RL_TEXTURE_FILTER_BILINEAR = 1 # Linear filtering
|
134
|
-
RL_TEXTURE_FILTER_TRILINEAR = 2 # Trilinear filtering (linear with mipmaps)
|
135
|
-
RL_TEXTURE_FILTER_ANISOTROPIC_4X = 3 # Anisotropic filtering 4x
|
136
|
-
RL_TEXTURE_FILTER_ANISOTROPIC_8X = 4 # Anisotropic filtering 8x
|
137
|
-
RL_TEXTURE_FILTER_ANISOTROPIC_16X = 5 # Anisotropic filtering 16x
|
138
|
-
|
139
|
-
# enum rlBlendMode
|
140
|
-
# Color blending modes (pre-defined)
|
141
|
-
RL_BLEND_ALPHA = 0 # Blend textures considering alpha (default)
|
142
|
-
RL_BLEND_ADDITIVE = 1 # Blend textures adding colors
|
143
|
-
RL_BLEND_MULTIPLIED = 2 # Blend textures multiplying colors
|
144
|
-
RL_BLEND_ADD_COLORS = 3 # Blend textures adding colors (alternative)
|
145
|
-
RL_BLEND_SUBTRACT_COLORS = 4 # Blend textures subtracting colors (alternative)
|
146
|
-
RL_BLEND_ALPHA_PREMULTIPLY = 5 # Blend premultiplied textures considering alpha
|
147
|
-
RL_BLEND_CUSTOM = 6 # Blend textures using custom src/dst factors (use rlSetBlendFactors())
|
148
|
-
RL_BLEND_CUSTOM_SEPARATE = 7 # Blend textures using custom src/dst factors (use rlSetBlendFactorsSeparate())
|
149
|
-
|
150
|
-
# enum rlShaderLocationIndex
|
151
|
-
# Shader location point type
|
152
|
-
RL_SHADER_LOC_VERTEX_POSITION = 0 # Shader location: vertex attribute: position
|
153
|
-
RL_SHADER_LOC_VERTEX_TEXCOORD01 = 1 # Shader location: vertex attribute: texcoord01
|
154
|
-
RL_SHADER_LOC_VERTEX_TEXCOORD02 = 2 # Shader location: vertex attribute: texcoord02
|
155
|
-
RL_SHADER_LOC_VERTEX_NORMAL = 3 # Shader location: vertex attribute: normal
|
156
|
-
RL_SHADER_LOC_VERTEX_TANGENT = 4 # Shader location: vertex attribute: tangent
|
157
|
-
RL_SHADER_LOC_VERTEX_COLOR = 5 # Shader location: vertex attribute: color
|
158
|
-
RL_SHADER_LOC_MATRIX_MVP = 6 # Shader location: matrix uniform: model-view-projection
|
159
|
-
RL_SHADER_LOC_MATRIX_VIEW = 7 # Shader location: matrix uniform: view (camera transform)
|
160
|
-
RL_SHADER_LOC_MATRIX_PROJECTION = 8 # Shader location: matrix uniform: projection
|
161
|
-
RL_SHADER_LOC_MATRIX_MODEL = 9 # Shader location: matrix uniform: model (transform)
|
162
|
-
RL_SHADER_LOC_MATRIX_NORMAL = 10 # Shader location: matrix uniform: normal
|
163
|
-
RL_SHADER_LOC_VECTOR_VIEW = 11 # Shader location: vector uniform: view
|
164
|
-
RL_SHADER_LOC_COLOR_DIFFUSE = 12 # Shader location: vector uniform: diffuse color
|
165
|
-
RL_SHADER_LOC_COLOR_SPECULAR = 13 # Shader location: vector uniform: specular color
|
166
|
-
RL_SHADER_LOC_COLOR_AMBIENT = 14 # Shader location: vector uniform: ambient color
|
167
|
-
RL_SHADER_LOC_MAP_ALBEDO = 15 # Shader location: sampler2d texture: albedo (same as: RL_SHADER_LOC_MAP_DIFFUSE)
|
168
|
-
RL_SHADER_LOC_MAP_METALNESS = 16 # Shader location: sampler2d texture: metalness (same as: RL_SHADER_LOC_MAP_SPECULAR)
|
169
|
-
RL_SHADER_LOC_MAP_NORMAL = 17 # Shader location: sampler2d texture: normal
|
170
|
-
RL_SHADER_LOC_MAP_ROUGHNESS = 18 # Shader location: sampler2d texture: roughness
|
171
|
-
RL_SHADER_LOC_MAP_OCCLUSION = 19 # Shader location: sampler2d texture: occlusion
|
172
|
-
RL_SHADER_LOC_MAP_EMISSION = 20 # Shader location: sampler2d texture: emission
|
173
|
-
RL_SHADER_LOC_MAP_HEIGHT = 21 # Shader location: sampler2d texture: height
|
174
|
-
RL_SHADER_LOC_MAP_CUBEMAP = 22 # Shader location: samplerCube texture: cubemap
|
175
|
-
RL_SHADER_LOC_MAP_IRRADIANCE = 23 # Shader location: samplerCube texture: irradiance
|
176
|
-
RL_SHADER_LOC_MAP_PREFILTER = 24 # Shader location: samplerCube texture: prefilter
|
177
|
-
RL_SHADER_LOC_MAP_BRDF = 25 # Shader location: sampler2d texture: brdf
|
178
|
-
|
179
|
-
# enum rlShaderUniformDataType
|
180
|
-
# Shader uniform data type
|
181
|
-
RL_SHADER_UNIFORM_FLOAT = 0 # Shader uniform type: float
|
182
|
-
RL_SHADER_UNIFORM_VEC2 = 1 # Shader uniform type: vec2 (2 float)
|
183
|
-
RL_SHADER_UNIFORM_VEC3 = 2 # Shader uniform type: vec3 (3 float)
|
184
|
-
RL_SHADER_UNIFORM_VEC4 = 3 # Shader uniform type: vec4 (4 float)
|
185
|
-
RL_SHADER_UNIFORM_INT = 4 # Shader uniform type: int
|
186
|
-
RL_SHADER_UNIFORM_IVEC2 = 5 # Shader uniform type: ivec2 (2 int)
|
187
|
-
RL_SHADER_UNIFORM_IVEC3 = 6 # Shader uniform type: ivec3 (3 int)
|
188
|
-
RL_SHADER_UNIFORM_IVEC4 = 7 # Shader uniform type: ivec4 (4 int)
|
189
|
-
RL_SHADER_UNIFORM_SAMPLER2D = 8 # Shader uniform type: sampler2d
|
190
|
-
|
191
|
-
# enum rlShaderAttributeDataType
|
192
|
-
# Shader attribute data types
|
193
|
-
RL_SHADER_ATTRIB_FLOAT = 0 # Shader attribute type: float
|
194
|
-
RL_SHADER_ATTRIB_VEC2 = 1 # Shader attribute type: vec2 (2 float)
|
195
|
-
RL_SHADER_ATTRIB_VEC3 = 2 # Shader attribute type: vec3 (3 float)
|
196
|
-
RL_SHADER_ATTRIB_VEC4 = 3 # Shader attribute type: vec4 (4 float)
|
197
|
-
|
198
|
-
# enum rlFramebufferAttachType
|
199
|
-
# Framebuffer attachment type
|
200
|
-
RL_ATTACHMENT_COLOR_CHANNEL0 = 0 # Framebuffer attachment type: color 0
|
201
|
-
RL_ATTACHMENT_COLOR_CHANNEL1 = 1 # Framebuffer attachment type: color 1
|
202
|
-
RL_ATTACHMENT_COLOR_CHANNEL2 = 2 # Framebuffer attachment type: color 2
|
203
|
-
RL_ATTACHMENT_COLOR_CHANNEL3 = 3 # Framebuffer attachment type: color 3
|
204
|
-
RL_ATTACHMENT_COLOR_CHANNEL4 = 4 # Framebuffer attachment type: color 4
|
205
|
-
RL_ATTACHMENT_COLOR_CHANNEL5 = 5 # Framebuffer attachment type: color 5
|
206
|
-
RL_ATTACHMENT_COLOR_CHANNEL6 = 6 # Framebuffer attachment type: color 6
|
207
|
-
RL_ATTACHMENT_COLOR_CHANNEL7 = 7 # Framebuffer attachment type: color 7
|
208
|
-
RL_ATTACHMENT_DEPTH = 100 # Framebuffer attachment type: depth
|
209
|
-
RL_ATTACHMENT_STENCIL = 200 # Framebuffer attachment type: stencil
|
210
|
-
|
211
|
-
# enum rlFramebufferAttachTextureType
|
212
|
-
# Framebuffer texture attachment type
|
213
|
-
RL_ATTACHMENT_CUBEMAP_POSITIVE_X = 0 # Framebuffer texture attachment type: cubemap, +X side
|
214
|
-
RL_ATTACHMENT_CUBEMAP_NEGATIVE_X = 1 # Framebuffer texture attachment type: cubemap, -X side
|
215
|
-
RL_ATTACHMENT_CUBEMAP_POSITIVE_Y = 2 # Framebuffer texture attachment type: cubemap, +Y side
|
216
|
-
RL_ATTACHMENT_CUBEMAP_NEGATIVE_Y = 3 # Framebuffer texture attachment type: cubemap, -Y side
|
217
|
-
RL_ATTACHMENT_CUBEMAP_POSITIVE_Z = 4 # Framebuffer texture attachment type: cubemap, +Z side
|
218
|
-
RL_ATTACHMENT_CUBEMAP_NEGATIVE_Z = 5 # Framebuffer texture attachment type: cubemap, -Z side
|
219
|
-
RL_ATTACHMENT_TEXTURE2D = 100 # Framebuffer texture attachment type: texture2d
|
220
|
-
RL_ATTACHMENT_RENDERBUFFER = 200 # Framebuffer texture attachment type: renderbuffer
|
221
|
-
|
222
|
-
# enum rlCullMode
|
223
|
-
# Face culling mode
|
224
|
-
RL_CULL_FACE_FRONT = 0
|
225
|
-
RL_CULL_FACE_BACK = 1
|
226
|
-
|
227
|
-
|
228
|
-
# Typedef
|
229
|
-
|
230
|
-
typedef :int, :rlGlVersion
|
231
|
-
typedef :int, :rlTraceLogLevel
|
232
|
-
typedef :int, :rlPixelFormat
|
233
|
-
typedef :int, :rlTextureFilter
|
234
|
-
typedef :int, :rlBlendMode
|
235
|
-
typedef :int, :rlShaderLocationIndex
|
236
|
-
typedef :int, :rlShaderUniformDataType
|
237
|
-
typedef :int, :rlShaderAttributeDataType
|
238
|
-
typedef :int, :rlFramebufferAttachType
|
239
|
-
typedef :int, :rlFramebufferAttachTextureType
|
240
|
-
typedef :int, :rlCullMode
|
241
|
-
|
242
|
-
# Struct
|
243
|
-
|
244
|
-
# Dynamic vertex buffers (position + texcoords + colors + indices arrays)
|
245
|
-
class RlVertexBuffer < FFI::Struct
|
246
|
-
layout(
|
247
|
-
:elementCount, :int, # Number of elements in the buffer (QUADS)
|
248
|
-
:vertices, :pointer, # Vertex position (XYZ - 3 components per vertex) (shader-location = 0)
|
249
|
-
:texcoords, :pointer, # Vertex texture coordinates (UV - 2 components per vertex) (shader-location = 1)
|
250
|
-
:colors, :pointer, # Vertex colors (RGBA - 4 components per vertex) (shader-location = 3)
|
251
|
-
:indices, :pointer, # Vertex indices (in case vertex data comes indexed) (6 indices per quad)
|
252
|
-
:vaoId, :uint, # OpenGL Vertex Array Object id
|
253
|
-
:vboId, [:uint, 4], # OpenGL Vertex Buffer Objects id (4 types of vertex data)
|
254
|
-
)
|
255
|
-
def elementCount = self[:elementCount]
|
256
|
-
def elementCount=(v) self[:elementCount] = v end
|
257
|
-
def vertices = self[:vertices]
|
258
|
-
def vertices=(v) self[:vertices] = v end
|
259
|
-
def texcoords = self[:texcoords]
|
260
|
-
def texcoords=(v) self[:texcoords] = v end
|
261
|
-
def colors = self[:colors]
|
262
|
-
def colors=(v) self[:colors] = v end
|
263
|
-
def indices = self[:indices]
|
264
|
-
def indices=(v) self[:indices] = v end
|
265
|
-
def vaoId = self[:vaoId]
|
266
|
-
def vaoId=(v) self[:vaoId] = v end
|
267
|
-
def vboId = self[:vboId]
|
268
|
-
def vboId=(v) self[:vboId] = v end
|
269
|
-
end
|
270
|
-
|
271
|
-
# of those state-change happens (this is done in core module)
|
272
|
-
class RlDrawCall < FFI::Struct
|
273
|
-
layout(
|
274
|
-
:mode, :int, # Drawing mode: LINES, TRIANGLES, QUADS
|
275
|
-
:vertexCount, :int, # Number of vertex of the draw
|
276
|
-
:vertexAlignment, :int, # Number of vertex required for index alignment (LINES, TRIANGLES)
|
277
|
-
:textureId, :uint, # Texture id to be used on the draw -> Use to create new draw call if changes
|
278
|
-
)
|
279
|
-
def mode = self[:mode]
|
280
|
-
def mode=(v) self[:mode] = v end
|
281
|
-
def vertexCount = self[:vertexCount]
|
282
|
-
def vertexCount=(v) self[:vertexCount] = v end
|
283
|
-
def vertexAlignment = self[:vertexAlignment]
|
284
|
-
def vertexAlignment=(v) self[:vertexAlignment] = v end
|
285
|
-
def textureId = self[:textureId]
|
286
|
-
def textureId=(v) self[:textureId] = v end
|
287
|
-
end
|
288
|
-
|
289
|
-
# rlRenderBatch type
|
290
|
-
class RlRenderBatch < FFI::Struct
|
291
|
-
layout(
|
292
|
-
:bufferCount, :int, # Number of vertex buffers (multi-buffering support)
|
293
|
-
:currentBuffer, :int, # Current buffer tracking in case of multi-buffering
|
294
|
-
:vertexBuffer, :pointer, # Dynamic buffer(s) for vertex data
|
295
|
-
:draws, :pointer, # Draw calls array, depends on textureId
|
296
|
-
:drawCounter, :int, # Draw calls counter
|
297
|
-
:currentDepth, :float, # Current depth value for next draw
|
298
|
-
)
|
299
|
-
def bufferCount = self[:bufferCount]
|
300
|
-
def bufferCount=(v) self[:bufferCount] = v end
|
301
|
-
def currentBuffer = self[:currentBuffer]
|
302
|
-
def currentBuffer=(v) self[:currentBuffer] = v end
|
303
|
-
def vertexBuffer = self[:vertexBuffer]
|
304
|
-
def vertexBuffer=(v) self[:vertexBuffer] = v end
|
305
|
-
def draws = self[:draws]
|
306
|
-
def draws=(v) self[:draws] = v end
|
307
|
-
def drawCounter = self[:drawCounter]
|
308
|
-
def drawCounter=(v) self[:drawCounter] = v end
|
309
|
-
def currentDepth = self[:currentDepth]
|
310
|
-
def currentDepth=(v) self[:currentDepth] = v end
|
311
|
-
end
|
312
|
-
|
313
|
-
|
314
|
-
# Function
|
315
|
-
|
316
|
-
def self.setup_rlgl_symbols
|
317
|
-
entries = [
|
318
|
-
|
319
|
-
# @!method rlMatrixMode(mode)
|
320
|
-
# rlMatrixMode : Choose the current matrix to be transformed
|
321
|
-
# @param mode [int]
|
322
|
-
# @return [void]
|
323
|
-
[:rlMatrixMode, :rlMatrixMode, [:int], :void],
|
324
|
-
|
325
|
-
# @!method rlPushMatrix()
|
326
|
-
# rlPushMatrix : Push the current matrix to stack
|
327
|
-
# @return [void]
|
328
|
-
[:rlPushMatrix, :rlPushMatrix, [], :void],
|
329
|
-
|
330
|
-
# @!method rlPopMatrix()
|
331
|
-
# rlPopMatrix : Pop latest inserted matrix from stack
|
332
|
-
# @return [void]
|
333
|
-
[:rlPopMatrix, :rlPopMatrix, [], :void],
|
334
|
-
|
335
|
-
# @!method rlLoadIdentity()
|
336
|
-
# rlLoadIdentity : Reset current matrix to identity matrix
|
337
|
-
# @return [void]
|
338
|
-
[:rlLoadIdentity, :rlLoadIdentity, [], :void],
|
339
|
-
|
340
|
-
# @!method rlTranslatef(x, y, z)
|
341
|
-
# rlTranslatef : Multiply the current matrix by a translation matrix
|
342
|
-
# @param x [float]
|
343
|
-
# @param y [float]
|
344
|
-
# @param z [float]
|
345
|
-
# @return [void]
|
346
|
-
[:rlTranslatef, :rlTranslatef, [:float, :float, :float], :void],
|
347
|
-
|
348
|
-
# @!method rlRotatef(angle, x, y, z)
|
349
|
-
# rlRotatef : Multiply the current matrix by a rotation matrix
|
350
|
-
# @param angle [float]
|
351
|
-
# @param x [float]
|
352
|
-
# @param y [float]
|
353
|
-
# @param z [float]
|
354
|
-
# @return [void]
|
355
|
-
[:rlRotatef, :rlRotatef, [:float, :float, :float, :float], :void],
|
356
|
-
|
357
|
-
# @!method rlScalef(x, y, z)
|
358
|
-
# rlScalef : Multiply the current matrix by a scaling matrix
|
359
|
-
# @param x [float]
|
360
|
-
# @param y [float]
|
361
|
-
# @param z [float]
|
362
|
-
# @return [void]
|
363
|
-
[:rlScalef, :rlScalef, [:float, :float, :float], :void],
|
364
|
-
|
365
|
-
# @!method rlMultMatrixf(matf)
|
366
|
-
# rlMultMatrixf : Multiply the current matrix by another matrix
|
367
|
-
# @param matf [const float *]
|
368
|
-
# @return [void]
|
369
|
-
[:rlMultMatrixf, :rlMultMatrixf, [:pointer], :void],
|
370
|
-
|
371
|
-
# @!method rlFrustum(left, right, bottom, top, znear, zfar)
|
372
|
-
# rlFrustum
|
373
|
-
# @param left [double]
|
374
|
-
# @param right [double]
|
375
|
-
# @param bottom [double]
|
376
|
-
# @param top [double]
|
377
|
-
# @param znear [double]
|
378
|
-
# @param zfar [double]
|
379
|
-
# @return [void]
|
380
|
-
[:rlFrustum, :rlFrustum, [:double, :double, :double, :double, :double, :double], :void],
|
381
|
-
|
382
|
-
# @!method rlOrtho(left, right, bottom, top, znear, zfar)
|
383
|
-
# rlOrtho
|
384
|
-
# @param left [double]
|
385
|
-
# @param right [double]
|
386
|
-
# @param bottom [double]
|
387
|
-
# @param top [double]
|
388
|
-
# @param znear [double]
|
389
|
-
# @param zfar [double]
|
390
|
-
# @return [void]
|
391
|
-
[:rlOrtho, :rlOrtho, [:double, :double, :double, :double, :double, :double], :void],
|
392
|
-
|
393
|
-
# @!method rlViewport(x, y, width, height)
|
394
|
-
# rlViewport : Set the viewport area
|
395
|
-
# @param x [int]
|
396
|
-
# @param y [int]
|
397
|
-
# @param width [int]
|
398
|
-
# @param height [int]
|
399
|
-
# @return [void]
|
400
|
-
[:rlViewport, :rlViewport, [:int, :int, :int, :int], :void],
|
401
|
-
|
402
|
-
# @!method rlBegin(mode)
|
403
|
-
# rlBegin : Initialize drawing mode (how to organize vertex)
|
404
|
-
# @param mode [int]
|
405
|
-
# @return [void]
|
406
|
-
[:rlBegin, :rlBegin, [:int], :void],
|
407
|
-
|
408
|
-
# @!method rlEnd()
|
409
|
-
# rlEnd : Finish vertex providing
|
410
|
-
# @return [void]
|
411
|
-
[:rlEnd, :rlEnd, [], :void],
|
412
|
-
|
413
|
-
# @!method rlVertex2i(x, y)
|
414
|
-
# rlVertex2i : Define one vertex (position) - 2 int
|
415
|
-
# @param x [int]
|
416
|
-
# @param y [int]
|
417
|
-
# @return [void]
|
418
|
-
[:rlVertex2i, :rlVertex2i, [:int, :int], :void],
|
419
|
-
|
420
|
-
# @!method rlVertex2f(x, y)
|
421
|
-
# rlVertex2f : Define one vertex (position) - 2 float
|
422
|
-
# @param x [float]
|
423
|
-
# @param y [float]
|
424
|
-
# @return [void]
|
425
|
-
[:rlVertex2f, :rlVertex2f, [:float, :float], :void],
|
426
|
-
|
427
|
-
# @!method rlVertex3f(x, y, z)
|
428
|
-
# rlVertex3f : Define one vertex (position) - 3 float
|
429
|
-
# @param x [float]
|
430
|
-
# @param y [float]
|
431
|
-
# @param z [float]
|
432
|
-
# @return [void]
|
433
|
-
[:rlVertex3f, :rlVertex3f, [:float, :float, :float], :void],
|
434
|
-
|
435
|
-
# @!method rlTexCoord2f(x, y)
|
436
|
-
# rlTexCoord2f : Define one vertex (texture coordinate) - 2 float
|
437
|
-
# @param x [float]
|
438
|
-
# @param y [float]
|
439
|
-
# @return [void]
|
440
|
-
[:rlTexCoord2f, :rlTexCoord2f, [:float, :float], :void],
|
441
|
-
|
442
|
-
# @!method rlNormal3f(x, y, z)
|
443
|
-
# rlNormal3f : Define one vertex (normal) - 3 float
|
444
|
-
# @param x [float]
|
445
|
-
# @param y [float]
|
446
|
-
# @param z [float]
|
447
|
-
# @return [void]
|
448
|
-
[:rlNormal3f, :rlNormal3f, [:float, :float, :float], :void],
|
449
|
-
|
450
|
-
# @!method rlColor4ub(r, g, b, a)
|
451
|
-
# rlColor4ub : Define one vertex (color) - 4 byte
|
452
|
-
# @param r [unsigned char]
|
453
|
-
# @param g [unsigned char]
|
454
|
-
# @param b [unsigned char]
|
455
|
-
# @param a [unsigned char]
|
456
|
-
# @return [void]
|
457
|
-
[:rlColor4ub, :rlColor4ub, [:uchar, :uchar, :uchar, :uchar], :void],
|
458
|
-
|
459
|
-
# @!method rlColor3f(x, y, z)
|
460
|
-
# rlColor3f : Define one vertex (color) - 3 float
|
461
|
-
# @param x [float]
|
462
|
-
# @param y [float]
|
463
|
-
# @param z [float]
|
464
|
-
# @return [void]
|
465
|
-
[:rlColor3f, :rlColor3f, [:float, :float, :float], :void],
|
466
|
-
|
467
|
-
# @!method rlColor4f(x, y, z, w)
|
468
|
-
# rlColor4f : Define one vertex (color) - 4 float
|
469
|
-
# @param x [float]
|
470
|
-
# @param y [float]
|
471
|
-
# @param z [float]
|
472
|
-
# @param w [float]
|
473
|
-
# @return [void]
|
474
|
-
[:rlColor4f, :rlColor4f, [:float, :float, :float, :float], :void],
|
475
|
-
|
476
|
-
# @!method rlEnableVertexArray(vaoId)
|
477
|
-
# rlEnableVertexArray : Enable vertex array (VAO, if supported)
|
478
|
-
# @param vaoId [unsigned int]
|
479
|
-
# @return [bool]
|
480
|
-
[:rlEnableVertexArray, :rlEnableVertexArray, [:uint], :bool],
|
481
|
-
|
482
|
-
# @!method rlDisableVertexArray()
|
483
|
-
# rlDisableVertexArray : Disable vertex array (VAO, if supported)
|
484
|
-
# @return [void]
|
485
|
-
[:rlDisableVertexArray, :rlDisableVertexArray, [], :void],
|
486
|
-
|
487
|
-
# @!method rlEnableVertexBuffer(id)
|
488
|
-
# rlEnableVertexBuffer : Enable vertex buffer (VBO)
|
489
|
-
# @param id [unsigned int]
|
490
|
-
# @return [void]
|
491
|
-
[:rlEnableVertexBuffer, :rlEnableVertexBuffer, [:uint], :void],
|
492
|
-
|
493
|
-
# @!method rlDisableVertexBuffer()
|
494
|
-
# rlDisableVertexBuffer : Disable vertex buffer (VBO)
|
495
|
-
# @return [void]
|
496
|
-
[:rlDisableVertexBuffer, :rlDisableVertexBuffer, [], :void],
|
497
|
-
|
498
|
-
# @!method rlEnableVertexBufferElement(id)
|
499
|
-
# rlEnableVertexBufferElement : Enable vertex buffer element (VBO element)
|
500
|
-
# @param id [unsigned int]
|
501
|
-
# @return [void]
|
502
|
-
[:rlEnableVertexBufferElement, :rlEnableVertexBufferElement, [:uint], :void],
|
503
|
-
|
504
|
-
# @!method rlDisableVertexBufferElement()
|
505
|
-
# rlDisableVertexBufferElement : Disable vertex buffer element (VBO element)
|
506
|
-
# @return [void]
|
507
|
-
[:rlDisableVertexBufferElement, :rlDisableVertexBufferElement, [], :void],
|
508
|
-
|
509
|
-
# @!method rlEnableVertexAttribute(index)
|
510
|
-
# rlEnableVertexAttribute : Enable vertex attribute index
|
511
|
-
# @param index [unsigned int]
|
512
|
-
# @return [void]
|
513
|
-
[:rlEnableVertexAttribute, :rlEnableVertexAttribute, [:uint], :void],
|
514
|
-
|
515
|
-
# @!method rlDisableVertexAttribute(index)
|
516
|
-
# rlDisableVertexAttribute : Disable vertex attribute index
|
517
|
-
# @param index [unsigned int]
|
518
|
-
# @return [void]
|
519
|
-
[:rlDisableVertexAttribute, :rlDisableVertexAttribute, [:uint], :void],
|
520
|
-
|
521
|
-
# @!method rlActiveTextureSlot(slot)
|
522
|
-
# rlActiveTextureSlot : Select and active a texture slot
|
523
|
-
# @param slot [int]
|
524
|
-
# @return [void]
|
525
|
-
[:rlActiveTextureSlot, :rlActiveTextureSlot, [:int], :void],
|
526
|
-
|
527
|
-
# @!method rlEnableTexture(id)
|
528
|
-
# rlEnableTexture : Enable texture
|
529
|
-
# @param id [unsigned int]
|
530
|
-
# @return [void]
|
531
|
-
[:rlEnableTexture, :rlEnableTexture, [:uint], :void],
|
532
|
-
|
533
|
-
# @!method rlDisableTexture()
|
534
|
-
# rlDisableTexture : Disable texture
|
535
|
-
# @return [void]
|
536
|
-
[:rlDisableTexture, :rlDisableTexture, [], :void],
|
537
|
-
|
538
|
-
# @!method rlEnableTextureCubemap(id)
|
539
|
-
# rlEnableTextureCubemap : Enable texture cubemap
|
540
|
-
# @param id [unsigned int]
|
541
|
-
# @return [void]
|
542
|
-
[:rlEnableTextureCubemap, :rlEnableTextureCubemap, [:uint], :void],
|
543
|
-
|
544
|
-
# @!method rlDisableTextureCubemap()
|
545
|
-
# rlDisableTextureCubemap : Disable texture cubemap
|
546
|
-
# @return [void]
|
547
|
-
[:rlDisableTextureCubemap, :rlDisableTextureCubemap, [], :void],
|
548
|
-
|
549
|
-
# @!method rlTextureParameters(id, param, value)
|
550
|
-
# rlTextureParameters : Set texture parameters (filter, wrap)
|
551
|
-
# @param id [unsigned int]
|
552
|
-
# @param param [int]
|
553
|
-
# @param value [int]
|
554
|
-
# @return [void]
|
555
|
-
[:rlTextureParameters, :rlTextureParameters, [:uint, :int, :int], :void],
|
556
|
-
|
557
|
-
# @!method rlCubemapParameters(id, param, value)
|
558
|
-
# rlCubemapParameters : Set cubemap parameters (filter, wrap)
|
559
|
-
# @param id [unsigned int]
|
560
|
-
# @param param [int]
|
561
|
-
# @param value [int]
|
562
|
-
# @return [void]
|
563
|
-
[:rlCubemapParameters, :rlCubemapParameters, [:uint, :int, :int], :void],
|
564
|
-
|
565
|
-
# @!method rlEnableShader(id)
|
566
|
-
# rlEnableShader : Enable shader program
|
567
|
-
# @param id [unsigned int]
|
568
|
-
# @return [void]
|
569
|
-
[:rlEnableShader, :rlEnableShader, [:uint], :void],
|
570
|
-
|
571
|
-
# @!method rlDisableShader()
|
572
|
-
# rlDisableShader : Disable shader program
|
573
|
-
# @return [void]
|
574
|
-
[:rlDisableShader, :rlDisableShader, [], :void],
|
575
|
-
|
576
|
-
# @!method rlEnableFramebuffer(id)
|
577
|
-
# rlEnableFramebuffer : Enable render texture (fbo)
|
578
|
-
# @param id [unsigned int]
|
579
|
-
# @return [void]
|
580
|
-
[:rlEnableFramebuffer, :rlEnableFramebuffer, [:uint], :void],
|
581
|
-
|
582
|
-
# @!method rlDisableFramebuffer()
|
583
|
-
# rlDisableFramebuffer : Disable render texture (fbo), return to default framebuffer
|
584
|
-
# @return [void]
|
585
|
-
[:rlDisableFramebuffer, :rlDisableFramebuffer, [], :void],
|
586
|
-
|
587
|
-
# @!method rlActiveDrawBuffers(count)
|
588
|
-
# rlActiveDrawBuffers : Activate multiple draw color buffers
|
589
|
-
# @param count [int]
|
590
|
-
# @return [void]
|
591
|
-
[:rlActiveDrawBuffers, :rlActiveDrawBuffers, [:int], :void],
|
592
|
-
|
593
|
-
# @!method rlBlitFramebuffer(srcX, srcY, srcWidth, srcHeight, dstX, dstY, dstWidth, dstHeight, bufferMask)
|
594
|
-
# rlBlitFramebuffer : Blit active framebuffer to main framebuffer
|
595
|
-
# @param srcX [int]
|
596
|
-
# @param srcY [int]
|
597
|
-
# @param srcWidth [int]
|
598
|
-
# @param srcHeight [int]
|
599
|
-
# @param dstX [int]
|
600
|
-
# @param dstY [int]
|
601
|
-
# @param dstWidth [int]
|
602
|
-
# @param dstHeight [int]
|
603
|
-
# @param bufferMask [int]
|
604
|
-
# @return [void]
|
605
|
-
[:rlBlitFramebuffer, :rlBlitFramebuffer, [:int, :int, :int, :int, :int, :int, :int, :int, :int], :void],
|
606
|
-
|
607
|
-
# @!method
|
608
|
-
#
|
609
|
-
# @
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
#
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
#
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
#
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
#
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
#
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
#
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
#
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
#
|
650
|
-
#
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
#
|
655
|
-
#
|
656
|
-
|
657
|
-
|
658
|
-
#
|
659
|
-
#
|
660
|
-
# @return [void]
|
661
|
-
[:
|
662
|
-
|
663
|
-
# @!method
|
664
|
-
#
|
665
|
-
# @param
|
666
|
-
# @
|
667
|
-
|
668
|
-
|
669
|
-
#
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
#
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
#
|
680
|
-
|
681
|
-
|
682
|
-
#
|
683
|
-
#
|
684
|
-
# @
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
#
|
689
|
-
#
|
690
|
-
# @return [void]
|
691
|
-
[:
|
692
|
-
|
693
|
-
# @!method
|
694
|
-
#
|
695
|
-
# @return [
|
696
|
-
[:
|
697
|
-
|
698
|
-
# @!method
|
699
|
-
#
|
700
|
-
# @return [void]
|
701
|
-
[:
|
702
|
-
|
703
|
-
# @!method
|
704
|
-
#
|
705
|
-
# @
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
#
|
710
|
-
#
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
#
|
715
|
-
#
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
#
|
720
|
-
#
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
#
|
725
|
-
#
|
726
|
-
# @
|
727
|
-
|
728
|
-
|
729
|
-
#
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
#
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
#
|
740
|
-
|
741
|
-
|
742
|
-
#
|
743
|
-
#
|
744
|
-
# @param
|
745
|
-
# @return [void]
|
746
|
-
[:
|
747
|
-
|
748
|
-
# @!method
|
749
|
-
#
|
750
|
-
# @
|
751
|
-
|
752
|
-
|
753
|
-
#
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
#
|
759
|
-
#
|
760
|
-
# @param
|
761
|
-
# @
|
762
|
-
|
763
|
-
|
764
|
-
#
|
765
|
-
|
766
|
-
|
767
|
-
#
|
768
|
-
#
|
769
|
-
# @
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
#
|
775
|
-
#
|
776
|
-
# @
|
777
|
-
|
778
|
-
|
779
|
-
#
|
780
|
-
#
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
#
|
786
|
-
#
|
787
|
-
# @return [
|
788
|
-
[:
|
789
|
-
|
790
|
-
# @!method
|
791
|
-
#
|
792
|
-
# @
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
#
|
797
|
-
#
|
798
|
-
# @return [
|
799
|
-
[:
|
800
|
-
|
801
|
-
# @!method
|
802
|
-
#
|
803
|
-
# @
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
#
|
808
|
-
#
|
809
|
-
# @return [
|
810
|
-
[:
|
811
|
-
|
812
|
-
# @!method
|
813
|
-
#
|
814
|
-
# @return [
|
815
|
-
[:
|
816
|
-
|
817
|
-
# @!method
|
818
|
-
#
|
819
|
-
# @
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
#
|
824
|
-
#
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
#
|
829
|
-
#
|
830
|
-
# @
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
#
|
835
|
-
#
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
#
|
841
|
-
|
842
|
-
|
843
|
-
#
|
844
|
-
|
845
|
-
|
846
|
-
#
|
847
|
-
#
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
#
|
853
|
-
#
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
#
|
858
|
-
#
|
859
|
-
# @
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
#
|
864
|
-
#
|
865
|
-
# @
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
#
|
870
|
-
#
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
#
|
875
|
-
#
|
876
|
-
# @
|
877
|
-
|
878
|
-
|
879
|
-
#
|
880
|
-
|
881
|
-
|
882
|
-
#
|
883
|
-
|
884
|
-
|
885
|
-
#
|
886
|
-
#
|
887
|
-
# @return [unsigned int]
|
888
|
-
[:
|
889
|
-
|
890
|
-
# @!method
|
891
|
-
#
|
892
|
-
# @param
|
893
|
-
# @param
|
894
|
-
# @param
|
895
|
-
# @
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
#
|
900
|
-
#
|
901
|
-
# @param
|
902
|
-
# @param
|
903
|
-
# @
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
#
|
909
|
-
#
|
910
|
-
# @param
|
911
|
-
# @
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
#
|
916
|
-
#
|
917
|
-
# @
|
918
|
-
|
919
|
-
|
920
|
-
#
|
921
|
-
#
|
922
|
-
|
923
|
-
|
924
|
-
#
|
925
|
-
#
|
926
|
-
# @param
|
927
|
-
# @
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
#
|
932
|
-
#
|
933
|
-
# @
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
#
|
939
|
-
#
|
940
|
-
# @param
|
941
|
-
# @param
|
942
|
-
# @param
|
943
|
-
# @param
|
944
|
-
# @return [void]
|
945
|
-
[:
|
946
|
-
|
947
|
-
# @!method
|
948
|
-
#
|
949
|
-
# @param
|
950
|
-
# @param
|
951
|
-
# @return [void]
|
952
|
-
[:
|
953
|
-
|
954
|
-
# @!method
|
955
|
-
#
|
956
|
-
# @param
|
957
|
-
# @param
|
958
|
-
# @param
|
959
|
-
# @
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
#
|
964
|
-
#
|
965
|
-
# @param
|
966
|
-
# @param
|
967
|
-
# @return [void]
|
968
|
-
[:
|
969
|
-
|
970
|
-
# @!method
|
971
|
-
#
|
972
|
-
# @param offset [int]
|
973
|
-
# @param count [int]
|
974
|
-
# @param buffer [const void *]
|
975
|
-
# @
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
#
|
980
|
-
#
|
981
|
-
# @param
|
982
|
-
# @param
|
983
|
-
# @
|
984
|
-
|
985
|
-
|
986
|
-
#
|
987
|
-
|
988
|
-
|
989
|
-
#
|
990
|
-
#
|
991
|
-
# @param
|
992
|
-
# @
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
#
|
998
|
-
#
|
999
|
-
# @param
|
1000
|
-
# @param
|
1001
|
-
# @param
|
1002
|
-
# @return [unsigned int]
|
1003
|
-
[:
|
1004
|
-
|
1005
|
-
# @!method
|
1006
|
-
#
|
1007
|
-
# @param
|
1008
|
-
# @param
|
1009
|
-
# @param
|
1010
|
-
# @
|
1011
|
-
|
1012
|
-
|
1013
|
-
#
|
1014
|
-
#
|
1015
|
-
|
1016
|
-
|
1017
|
-
#
|
1018
|
-
#
|
1019
|
-
|
1020
|
-
|
1021
|
-
#
|
1022
|
-
#
|
1023
|
-
# @
|
1024
|
-
|
1025
|
-
|
1026
|
-
#
|
1027
|
-
#
|
1028
|
-
# @param format [
|
1029
|
-
# @
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
#
|
1034
|
-
#
|
1035
|
-
# @
|
1036
|
-
|
1037
|
-
|
1038
|
-
#
|
1039
|
-
#
|
1040
|
-
|
1041
|
-
|
1042
|
-
#
|
1043
|
-
#
|
1044
|
-
# @param
|
1045
|
-
# @return [
|
1046
|
-
[:
|
1047
|
-
|
1048
|
-
# @!method
|
1049
|
-
#
|
1050
|
-
# @param id [unsigned int]
|
1051
|
-
# @
|
1052
|
-
|
1053
|
-
|
1054
|
-
#
|
1055
|
-
|
1056
|
-
|
1057
|
-
#
|
1058
|
-
#
|
1059
|
-
# @param
|
1060
|
-
# @param
|
1061
|
-
# @return [
|
1062
|
-
[:
|
1063
|
-
|
1064
|
-
# @!method
|
1065
|
-
#
|
1066
|
-
# @param
|
1067
|
-
# @param
|
1068
|
-
# @
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
#
|
1074
|
-
#
|
1075
|
-
# @param
|
1076
|
-
# @param
|
1077
|
-
# @
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
#
|
1082
|
-
#
|
1083
|
-
# @param
|
1084
|
-
# @return [
|
1085
|
-
[:
|
1086
|
-
|
1087
|
-
# @!method
|
1088
|
-
#
|
1089
|
-
# @param
|
1090
|
-
# @
|
1091
|
-
|
1092
|
-
|
1093
|
-
#
|
1094
|
-
#
|
1095
|
-
|
1096
|
-
|
1097
|
-
#
|
1098
|
-
|
1099
|
-
|
1100
|
-
#
|
1101
|
-
|
1102
|
-
|
1103
|
-
#
|
1104
|
-
#
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
#
|
1110
|
-
#
|
1111
|
-
# @
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
#
|
1117
|
-
#
|
1118
|
-
|
1119
|
-
|
1120
|
-
#
|
1121
|
-
|
1122
|
-
|
1123
|
-
#
|
1124
|
-
#
|
1125
|
-
|
1126
|
-
|
1127
|
-
#
|
1128
|
-
|
1129
|
-
|
1130
|
-
#
|
1131
|
-
#
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
#
|
1137
|
-
#
|
1138
|
-
# @param
|
1139
|
-
# @param
|
1140
|
-
# @return [
|
1141
|
-
[:
|
1142
|
-
|
1143
|
-
# @!method
|
1144
|
-
#
|
1145
|
-
# @param
|
1146
|
-
# @param
|
1147
|
-
# @return [
|
1148
|
-
[:
|
1149
|
-
|
1150
|
-
# @!method
|
1151
|
-
#
|
1152
|
-
# @param locIndex [int]
|
1153
|
-
# @param
|
1154
|
-
# @
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
#
|
1160
|
-
#
|
1161
|
-
# @
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1166
|
-
#
|
1167
|
-
#
|
1168
|
-
|
1169
|
-
|
1170
|
-
#
|
1171
|
-
|
1172
|
-
|
1173
|
-
#
|
1174
|
-
#
|
1175
|
-
# @
|
1176
|
-
|
1177
|
-
|
1178
|
-
|
1179
|
-
|
1180
|
-
#
|
1181
|
-
#
|
1182
|
-
# @param
|
1183
|
-
# @return [unsigned int]
|
1184
|
-
[:
|
1185
|
-
|
1186
|
-
# @!method
|
1187
|
-
#
|
1188
|
-
# @param
|
1189
|
-
# @
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
#
|
1195
|
-
#
|
1196
|
-
# @param
|
1197
|
-
# @param
|
1198
|
-
# @
|
1199
|
-
|
1200
|
-
|
1201
|
-
|
1202
|
-
#
|
1203
|
-
#
|
1204
|
-
# @param
|
1205
|
-
# @return [void]
|
1206
|
-
[:
|
1207
|
-
|
1208
|
-
# @!method
|
1209
|
-
#
|
1210
|
-
# @param id [unsigned int]
|
1211
|
-
# @param
|
1212
|
-
# @param
|
1213
|
-
# @param offset [unsigned int]
|
1214
|
-
# @return [void]
|
1215
|
-
[:
|
1216
|
-
|
1217
|
-
# @!method
|
1218
|
-
#
|
1219
|
-
# @param
|
1220
|
-
# @param
|
1221
|
-
# @
|
1222
|
-
|
1223
|
-
|
1224
|
-
#
|
1225
|
-
|
1226
|
-
|
1227
|
-
#
|
1228
|
-
#
|
1229
|
-
# @param
|
1230
|
-
# @return [
|
1231
|
-
[:
|
1232
|
-
|
1233
|
-
# @!method
|
1234
|
-
#
|
1235
|
-
# @param
|
1236
|
-
# @param
|
1237
|
-
# @param
|
1238
|
-
# @param
|
1239
|
-
# @
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
#
|
1244
|
-
#
|
1245
|
-
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
1249
|
-
#
|
1250
|
-
|
1251
|
-
|
1252
|
-
#
|
1253
|
-
#
|
1254
|
-
# @
|
1255
|
-
|
1256
|
-
|
1257
|
-
|
1258
|
-
#
|
1259
|
-
#
|
1260
|
-
# @return [Matrix]
|
1261
|
-
[:
|
1262
|
-
|
1263
|
-
# @!method
|
1264
|
-
#
|
1265
|
-
# @
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1269
|
-
#
|
1270
|
-
#
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1274
|
-
|
1275
|
-
#
|
1276
|
-
#
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1281
|
-
#
|
1282
|
-
#
|
1283
|
-
|
1284
|
-
|
1285
|
-
#
|
1286
|
-
|
1287
|
-
|
1288
|
-
#
|
1289
|
-
|
1290
|
-
|
1291
|
-
#
|
1292
|
-
#
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1296
|
-
|
1297
|
-
#
|
1298
|
-
|
1299
|
-
|
1300
|
-
#
|
1301
|
-
#
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
1
|
+
# Yet another raylib wrapper for Ruby
|
2
|
+
#
|
3
|
+
# * https://github.com/vaiorabbit/raylib-bindings
|
4
|
+
#
|
5
|
+
# [NOTICE] Autogenerated. Do not edit.
|
6
|
+
|
7
|
+
require 'ffi'
|
8
|
+
|
9
|
+
module Raylib
|
10
|
+
extend FFI::Library
|
11
|
+
|
12
|
+
# Define/Macro
|
13
|
+
|
14
|
+
RLGL_VERSION = "4.5"
|
15
|
+
RL_DEFAULT_BATCH_BUFFER_ELEMENTS = 8192
|
16
|
+
RL_TEXTURE_WRAP_S = 0x2802 # GL_TEXTURE_WRAP_S
|
17
|
+
RL_TEXTURE_WRAP_T = 0x2803 # GL_TEXTURE_WRAP_T
|
18
|
+
RL_TEXTURE_MAG_FILTER = 0x2800 # GL_TEXTURE_MAG_FILTER
|
19
|
+
RL_TEXTURE_MIN_FILTER = 0x2801 # GL_TEXTURE_MIN_FILTER
|
20
|
+
RL_TEXTURE_FILTER_NEAREST = 0x2600 # GL_NEAREST
|
21
|
+
RL_TEXTURE_FILTER_LINEAR = 0x2601 # GL_LINEAR
|
22
|
+
RL_TEXTURE_FILTER_MIP_NEAREST = 0x2700 # GL_NEAREST_MIPMAP_NEAREST
|
23
|
+
RL_TEXTURE_FILTER_NEAREST_MIP_LINEAR = 0x2702 # GL_NEAREST_MIPMAP_LINEAR
|
24
|
+
RL_TEXTURE_FILTER_LINEAR_MIP_NEAREST = 0x2701 # GL_LINEAR_MIPMAP_NEAREST
|
25
|
+
RL_TEXTURE_FILTER_MIP_LINEAR = 0x2703 # GL_LINEAR_MIPMAP_LINEAR
|
26
|
+
RL_TEXTURE_FILTER_ANISOTROPIC = 0x3000 # Anisotropic filter (custom identifier)
|
27
|
+
RL_TEXTURE_MIPMAP_BIAS_RATIO = 0x4000 # Texture mipmap bias, percentage ratio (custom identifier)
|
28
|
+
RL_TEXTURE_WRAP_REPEAT = 0x2901 # GL_REPEAT
|
29
|
+
RL_TEXTURE_WRAP_CLAMP = 0x812F # GL_CLAMP_TO_EDGE
|
30
|
+
RL_TEXTURE_WRAP_MIRROR_REPEAT = 0x8370 # GL_MIRRORED_REPEAT
|
31
|
+
RL_TEXTURE_WRAP_MIRROR_CLAMP = 0x8742 # GL_MIRROR_CLAMP_EXT
|
32
|
+
RL_MODELVIEW = 0x1700 # GL_MODELVIEW
|
33
|
+
RL_PROJECTION = 0x1701 # GL_PROJECTION
|
34
|
+
RL_TEXTURE = 0x1702 # GL_TEXTURE
|
35
|
+
RL_LINES = 0x0001 # GL_LINES
|
36
|
+
RL_TRIANGLES = 0x0004 # GL_TRIANGLES
|
37
|
+
RL_QUADS = 0x0007 # GL_QUADS
|
38
|
+
RL_UNSIGNED_BYTE = 0x1401 # GL_UNSIGNED_BYTE
|
39
|
+
RL_FLOAT = 0x1406 # GL_FLOAT
|
40
|
+
RL_STREAM_DRAW = 0x88E0 # GL_STREAM_DRAW
|
41
|
+
RL_STREAM_READ = 0x88E1 # GL_STREAM_READ
|
42
|
+
RL_STREAM_COPY = 0x88E2 # GL_STREAM_COPY
|
43
|
+
RL_STATIC_DRAW = 0x88E4 # GL_STATIC_DRAW
|
44
|
+
RL_STATIC_READ = 0x88E5 # GL_STATIC_READ
|
45
|
+
RL_STATIC_COPY = 0x88E6 # GL_STATIC_COPY
|
46
|
+
RL_DYNAMIC_DRAW = 0x88E8 # GL_DYNAMIC_DRAW
|
47
|
+
RL_DYNAMIC_READ = 0x88E9 # GL_DYNAMIC_READ
|
48
|
+
RL_DYNAMIC_COPY = 0x88EA # GL_DYNAMIC_COPY
|
49
|
+
RL_FRAGMENT_SHADER = 0x8B30 # GL_FRAGMENT_SHADER
|
50
|
+
RL_VERTEX_SHADER = 0x8B31 # GL_VERTEX_SHADER
|
51
|
+
RL_COMPUTE_SHADER = 0x91B9 # GL_COMPUTE_SHADER
|
52
|
+
RL_ZERO = 0 # GL_ZERO
|
53
|
+
RL_ONE = 1 # GL_ONE
|
54
|
+
RL_SRC_COLOR = 0x0300 # GL_SRC_COLOR
|
55
|
+
RL_ONE_MINUS_SRC_COLOR = 0x0301 # GL_ONE_MINUS_SRC_COLOR
|
56
|
+
RL_SRC_ALPHA = 0x0302 # GL_SRC_ALPHA
|
57
|
+
RL_ONE_MINUS_SRC_ALPHA = 0x0303 # GL_ONE_MINUS_SRC_ALPHA
|
58
|
+
RL_DST_ALPHA = 0x0304 # GL_DST_ALPHA
|
59
|
+
RL_ONE_MINUS_DST_ALPHA = 0x0305 # GL_ONE_MINUS_DST_ALPHA
|
60
|
+
RL_DST_COLOR = 0x0306 # GL_DST_COLOR
|
61
|
+
RL_ONE_MINUS_DST_COLOR = 0x0307 # GL_ONE_MINUS_DST_COLOR
|
62
|
+
RL_SRC_ALPHA_SATURATE = 0x0308 # GL_SRC_ALPHA_SATURATE
|
63
|
+
RL_CONSTANT_COLOR = 0x8001 # GL_CONSTANT_COLOR
|
64
|
+
RL_ONE_MINUS_CONSTANT_COLOR = 0x8002 # GL_ONE_MINUS_CONSTANT_COLOR
|
65
|
+
RL_CONSTANT_ALPHA = 0x8003 # GL_CONSTANT_ALPHA
|
66
|
+
RL_ONE_MINUS_CONSTANT_ALPHA = 0x8004 # GL_ONE_MINUS_CONSTANT_ALPHA
|
67
|
+
RL_FUNC_ADD = 0x8006 # GL_FUNC_ADD
|
68
|
+
RL_MIN = 0x8007 # GL_MIN
|
69
|
+
RL_MAX = 0x8008 # GL_MAX
|
70
|
+
RL_FUNC_SUBTRACT = 0x800A # GL_FUNC_SUBTRACT
|
71
|
+
RL_FUNC_REVERSE_SUBTRACT = 0x800B # GL_FUNC_REVERSE_SUBTRACT
|
72
|
+
RL_BLEND_EQUATION = 0x8009 # GL_BLEND_EQUATION
|
73
|
+
RL_BLEND_EQUATION_RGB = 0x8009 # GL_BLEND_EQUATION_RGB // (Same as BLEND_EQUATION)
|
74
|
+
RL_BLEND_EQUATION_ALPHA = 0x883D # GL_BLEND_EQUATION_ALPHA
|
75
|
+
RL_BLEND_DST_RGB = 0x80C8 # GL_BLEND_DST_RGB
|
76
|
+
RL_BLEND_SRC_RGB = 0x80C9 # GL_BLEND_SRC_RGB
|
77
|
+
RL_BLEND_DST_ALPHA = 0x80CA # GL_BLEND_DST_ALPHA
|
78
|
+
RL_BLEND_SRC_ALPHA = 0x80CB # GL_BLEND_SRC_ALPHA
|
79
|
+
RL_BLEND_COLOR = 0x8005 # GL_BLEND_COLOR
|
80
|
+
|
81
|
+
# Enum
|
82
|
+
|
83
|
+
# enum rlGlVersion
|
84
|
+
# OpenGL version
|
85
|
+
RL_OPENGL_11 = 1 # OpenGL 1.1
|
86
|
+
RL_OPENGL_21 = 2 # OpenGL 2.1 (GLSL 120)
|
87
|
+
RL_OPENGL_33 = 3 # OpenGL 3.3 (GLSL 330)
|
88
|
+
RL_OPENGL_43 = 4 # OpenGL 4.3 (using GLSL 330)
|
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)
|
91
|
+
|
92
|
+
# enum rlTraceLogLevel
|
93
|
+
# Trace log level
|
94
|
+
RL_LOG_ALL = 0 # Display all logs
|
95
|
+
RL_LOG_TRACE = 1 # Trace logging, intended for internal use only
|
96
|
+
RL_LOG_DEBUG = 2 # Debug logging, used for internal debugging, it should be disabled on release builds
|
97
|
+
RL_LOG_INFO = 3 # Info logging, used for program execution info
|
98
|
+
RL_LOG_WARNING = 4 # Warning logging, used on recoverable failures
|
99
|
+
RL_LOG_ERROR = 5 # Error logging, used on unrecoverable failures
|
100
|
+
RL_LOG_FATAL = 6 # Fatal logging, used to abort program: exit(EXIT_FAILURE)
|
101
|
+
RL_LOG_NONE = 7 # Disable logging
|
102
|
+
|
103
|
+
# enum rlPixelFormat
|
104
|
+
# Texture pixel formats
|
105
|
+
RL_PIXELFORMAT_UNCOMPRESSED_GRAYSCALE = 1 # 8 bit per pixel (no alpha)
|
106
|
+
RL_PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA = 2 # 8*2 bpp (2 channels)
|
107
|
+
RL_PIXELFORMAT_UNCOMPRESSED_R5G6B5 = 3 # 16 bpp
|
108
|
+
RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8 = 4 # 24 bpp
|
109
|
+
RL_PIXELFORMAT_UNCOMPRESSED_R5G5B5A1 = 5 # 16 bpp (1 bit alpha)
|
110
|
+
RL_PIXELFORMAT_UNCOMPRESSED_R4G4B4A4 = 6 # 16 bpp (4 bit alpha)
|
111
|
+
RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 = 7 # 32 bpp
|
112
|
+
RL_PIXELFORMAT_UNCOMPRESSED_R32 = 8 # 32 bpp (1 channel - float)
|
113
|
+
RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32 = 9 # 32*3 bpp (3 channels - float)
|
114
|
+
RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32A32 = 10 # 32*4 bpp (4 channels - float)
|
115
|
+
RL_PIXELFORMAT_UNCOMPRESSED_R16 = 11 # 16 bpp (1 channel - half float)
|
116
|
+
RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16 = 12 # 16*3 bpp (3 channels - half float)
|
117
|
+
RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16A16 = 13 # 16*4 bpp (4 channels - half float)
|
118
|
+
RL_PIXELFORMAT_COMPRESSED_DXT1_RGB = 14 # 4 bpp (no alpha)
|
119
|
+
RL_PIXELFORMAT_COMPRESSED_DXT1_RGBA = 15 # 4 bpp (1 bit alpha)
|
120
|
+
RL_PIXELFORMAT_COMPRESSED_DXT3_RGBA = 16 # 8 bpp
|
121
|
+
RL_PIXELFORMAT_COMPRESSED_DXT5_RGBA = 17 # 8 bpp
|
122
|
+
RL_PIXELFORMAT_COMPRESSED_ETC1_RGB = 18 # 4 bpp
|
123
|
+
RL_PIXELFORMAT_COMPRESSED_ETC2_RGB = 19 # 4 bpp
|
124
|
+
RL_PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA = 20 # 8 bpp
|
125
|
+
RL_PIXELFORMAT_COMPRESSED_PVRT_RGB = 21 # 4 bpp
|
126
|
+
RL_PIXELFORMAT_COMPRESSED_PVRT_RGBA = 22 # 4 bpp
|
127
|
+
RL_PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA = 23 # 8 bpp
|
128
|
+
RL_PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA = 24 # 2 bpp
|
129
|
+
|
130
|
+
# enum rlTextureFilter
|
131
|
+
# Texture parameters: filter mode
|
132
|
+
RL_TEXTURE_FILTER_POINT = 0 # No filter, just pixel approximation
|
133
|
+
RL_TEXTURE_FILTER_BILINEAR = 1 # Linear filtering
|
134
|
+
RL_TEXTURE_FILTER_TRILINEAR = 2 # Trilinear filtering (linear with mipmaps)
|
135
|
+
RL_TEXTURE_FILTER_ANISOTROPIC_4X = 3 # Anisotropic filtering 4x
|
136
|
+
RL_TEXTURE_FILTER_ANISOTROPIC_8X = 4 # Anisotropic filtering 8x
|
137
|
+
RL_TEXTURE_FILTER_ANISOTROPIC_16X = 5 # Anisotropic filtering 16x
|
138
|
+
|
139
|
+
# enum rlBlendMode
|
140
|
+
# Color blending modes (pre-defined)
|
141
|
+
RL_BLEND_ALPHA = 0 # Blend textures considering alpha (default)
|
142
|
+
RL_BLEND_ADDITIVE = 1 # Blend textures adding colors
|
143
|
+
RL_BLEND_MULTIPLIED = 2 # Blend textures multiplying colors
|
144
|
+
RL_BLEND_ADD_COLORS = 3 # Blend textures adding colors (alternative)
|
145
|
+
RL_BLEND_SUBTRACT_COLORS = 4 # Blend textures subtracting colors (alternative)
|
146
|
+
RL_BLEND_ALPHA_PREMULTIPLY = 5 # Blend premultiplied textures considering alpha
|
147
|
+
RL_BLEND_CUSTOM = 6 # Blend textures using custom src/dst factors (use rlSetBlendFactors())
|
148
|
+
RL_BLEND_CUSTOM_SEPARATE = 7 # Blend textures using custom src/dst factors (use rlSetBlendFactorsSeparate())
|
149
|
+
|
150
|
+
# enum rlShaderLocationIndex
|
151
|
+
# Shader location point type
|
152
|
+
RL_SHADER_LOC_VERTEX_POSITION = 0 # Shader location: vertex attribute: position
|
153
|
+
RL_SHADER_LOC_VERTEX_TEXCOORD01 = 1 # Shader location: vertex attribute: texcoord01
|
154
|
+
RL_SHADER_LOC_VERTEX_TEXCOORD02 = 2 # Shader location: vertex attribute: texcoord02
|
155
|
+
RL_SHADER_LOC_VERTEX_NORMAL = 3 # Shader location: vertex attribute: normal
|
156
|
+
RL_SHADER_LOC_VERTEX_TANGENT = 4 # Shader location: vertex attribute: tangent
|
157
|
+
RL_SHADER_LOC_VERTEX_COLOR = 5 # Shader location: vertex attribute: color
|
158
|
+
RL_SHADER_LOC_MATRIX_MVP = 6 # Shader location: matrix uniform: model-view-projection
|
159
|
+
RL_SHADER_LOC_MATRIX_VIEW = 7 # Shader location: matrix uniform: view (camera transform)
|
160
|
+
RL_SHADER_LOC_MATRIX_PROJECTION = 8 # Shader location: matrix uniform: projection
|
161
|
+
RL_SHADER_LOC_MATRIX_MODEL = 9 # Shader location: matrix uniform: model (transform)
|
162
|
+
RL_SHADER_LOC_MATRIX_NORMAL = 10 # Shader location: matrix uniform: normal
|
163
|
+
RL_SHADER_LOC_VECTOR_VIEW = 11 # Shader location: vector uniform: view
|
164
|
+
RL_SHADER_LOC_COLOR_DIFFUSE = 12 # Shader location: vector uniform: diffuse color
|
165
|
+
RL_SHADER_LOC_COLOR_SPECULAR = 13 # Shader location: vector uniform: specular color
|
166
|
+
RL_SHADER_LOC_COLOR_AMBIENT = 14 # Shader location: vector uniform: ambient color
|
167
|
+
RL_SHADER_LOC_MAP_ALBEDO = 15 # Shader location: sampler2d texture: albedo (same as: RL_SHADER_LOC_MAP_DIFFUSE)
|
168
|
+
RL_SHADER_LOC_MAP_METALNESS = 16 # Shader location: sampler2d texture: metalness (same as: RL_SHADER_LOC_MAP_SPECULAR)
|
169
|
+
RL_SHADER_LOC_MAP_NORMAL = 17 # Shader location: sampler2d texture: normal
|
170
|
+
RL_SHADER_LOC_MAP_ROUGHNESS = 18 # Shader location: sampler2d texture: roughness
|
171
|
+
RL_SHADER_LOC_MAP_OCCLUSION = 19 # Shader location: sampler2d texture: occlusion
|
172
|
+
RL_SHADER_LOC_MAP_EMISSION = 20 # Shader location: sampler2d texture: emission
|
173
|
+
RL_SHADER_LOC_MAP_HEIGHT = 21 # Shader location: sampler2d texture: height
|
174
|
+
RL_SHADER_LOC_MAP_CUBEMAP = 22 # Shader location: samplerCube texture: cubemap
|
175
|
+
RL_SHADER_LOC_MAP_IRRADIANCE = 23 # Shader location: samplerCube texture: irradiance
|
176
|
+
RL_SHADER_LOC_MAP_PREFILTER = 24 # Shader location: samplerCube texture: prefilter
|
177
|
+
RL_SHADER_LOC_MAP_BRDF = 25 # Shader location: sampler2d texture: brdf
|
178
|
+
|
179
|
+
# enum rlShaderUniformDataType
|
180
|
+
# Shader uniform data type
|
181
|
+
RL_SHADER_UNIFORM_FLOAT = 0 # Shader uniform type: float
|
182
|
+
RL_SHADER_UNIFORM_VEC2 = 1 # Shader uniform type: vec2 (2 float)
|
183
|
+
RL_SHADER_UNIFORM_VEC3 = 2 # Shader uniform type: vec3 (3 float)
|
184
|
+
RL_SHADER_UNIFORM_VEC4 = 3 # Shader uniform type: vec4 (4 float)
|
185
|
+
RL_SHADER_UNIFORM_INT = 4 # Shader uniform type: int
|
186
|
+
RL_SHADER_UNIFORM_IVEC2 = 5 # Shader uniform type: ivec2 (2 int)
|
187
|
+
RL_SHADER_UNIFORM_IVEC3 = 6 # Shader uniform type: ivec3 (3 int)
|
188
|
+
RL_SHADER_UNIFORM_IVEC4 = 7 # Shader uniform type: ivec4 (4 int)
|
189
|
+
RL_SHADER_UNIFORM_SAMPLER2D = 8 # Shader uniform type: sampler2d
|
190
|
+
|
191
|
+
# enum rlShaderAttributeDataType
|
192
|
+
# Shader attribute data types
|
193
|
+
RL_SHADER_ATTRIB_FLOAT = 0 # Shader attribute type: float
|
194
|
+
RL_SHADER_ATTRIB_VEC2 = 1 # Shader attribute type: vec2 (2 float)
|
195
|
+
RL_SHADER_ATTRIB_VEC3 = 2 # Shader attribute type: vec3 (3 float)
|
196
|
+
RL_SHADER_ATTRIB_VEC4 = 3 # Shader attribute type: vec4 (4 float)
|
197
|
+
|
198
|
+
# enum rlFramebufferAttachType
|
199
|
+
# Framebuffer attachment type
|
200
|
+
RL_ATTACHMENT_COLOR_CHANNEL0 = 0 # Framebuffer attachment type: color 0
|
201
|
+
RL_ATTACHMENT_COLOR_CHANNEL1 = 1 # Framebuffer attachment type: color 1
|
202
|
+
RL_ATTACHMENT_COLOR_CHANNEL2 = 2 # Framebuffer attachment type: color 2
|
203
|
+
RL_ATTACHMENT_COLOR_CHANNEL3 = 3 # Framebuffer attachment type: color 3
|
204
|
+
RL_ATTACHMENT_COLOR_CHANNEL4 = 4 # Framebuffer attachment type: color 4
|
205
|
+
RL_ATTACHMENT_COLOR_CHANNEL5 = 5 # Framebuffer attachment type: color 5
|
206
|
+
RL_ATTACHMENT_COLOR_CHANNEL6 = 6 # Framebuffer attachment type: color 6
|
207
|
+
RL_ATTACHMENT_COLOR_CHANNEL7 = 7 # Framebuffer attachment type: color 7
|
208
|
+
RL_ATTACHMENT_DEPTH = 100 # Framebuffer attachment type: depth
|
209
|
+
RL_ATTACHMENT_STENCIL = 200 # Framebuffer attachment type: stencil
|
210
|
+
|
211
|
+
# enum rlFramebufferAttachTextureType
|
212
|
+
# Framebuffer texture attachment type
|
213
|
+
RL_ATTACHMENT_CUBEMAP_POSITIVE_X = 0 # Framebuffer texture attachment type: cubemap, +X side
|
214
|
+
RL_ATTACHMENT_CUBEMAP_NEGATIVE_X = 1 # Framebuffer texture attachment type: cubemap, -X side
|
215
|
+
RL_ATTACHMENT_CUBEMAP_POSITIVE_Y = 2 # Framebuffer texture attachment type: cubemap, +Y side
|
216
|
+
RL_ATTACHMENT_CUBEMAP_NEGATIVE_Y = 3 # Framebuffer texture attachment type: cubemap, -Y side
|
217
|
+
RL_ATTACHMENT_CUBEMAP_POSITIVE_Z = 4 # Framebuffer texture attachment type: cubemap, +Z side
|
218
|
+
RL_ATTACHMENT_CUBEMAP_NEGATIVE_Z = 5 # Framebuffer texture attachment type: cubemap, -Z side
|
219
|
+
RL_ATTACHMENT_TEXTURE2D = 100 # Framebuffer texture attachment type: texture2d
|
220
|
+
RL_ATTACHMENT_RENDERBUFFER = 200 # Framebuffer texture attachment type: renderbuffer
|
221
|
+
|
222
|
+
# enum rlCullMode
|
223
|
+
# Face culling mode
|
224
|
+
RL_CULL_FACE_FRONT = 0
|
225
|
+
RL_CULL_FACE_BACK = 1
|
226
|
+
|
227
|
+
|
228
|
+
# Typedef
|
229
|
+
|
230
|
+
typedef :int, :rlGlVersion
|
231
|
+
typedef :int, :rlTraceLogLevel
|
232
|
+
typedef :int, :rlPixelFormat
|
233
|
+
typedef :int, :rlTextureFilter
|
234
|
+
typedef :int, :rlBlendMode
|
235
|
+
typedef :int, :rlShaderLocationIndex
|
236
|
+
typedef :int, :rlShaderUniformDataType
|
237
|
+
typedef :int, :rlShaderAttributeDataType
|
238
|
+
typedef :int, :rlFramebufferAttachType
|
239
|
+
typedef :int, :rlFramebufferAttachTextureType
|
240
|
+
typedef :int, :rlCullMode
|
241
|
+
|
242
|
+
# Struct
|
243
|
+
|
244
|
+
# Dynamic vertex buffers (position + texcoords + colors + indices arrays)
|
245
|
+
class RlVertexBuffer < FFI::Struct
|
246
|
+
layout(
|
247
|
+
:elementCount, :int, # Number of elements in the buffer (QUADS)
|
248
|
+
:vertices, :pointer, # Vertex position (XYZ - 3 components per vertex) (shader-location = 0)
|
249
|
+
:texcoords, :pointer, # Vertex texture coordinates (UV - 2 components per vertex) (shader-location = 1)
|
250
|
+
:colors, :pointer, # Vertex colors (RGBA - 4 components per vertex) (shader-location = 3)
|
251
|
+
:indices, :pointer, # Vertex indices (in case vertex data comes indexed) (6 indices per quad)
|
252
|
+
:vaoId, :uint, # OpenGL Vertex Array Object id
|
253
|
+
:vboId, [:uint, 4], # OpenGL Vertex Buffer Objects id (4 types of vertex data)
|
254
|
+
)
|
255
|
+
def elementCount = self[:elementCount]
|
256
|
+
def elementCount=(v) self[:elementCount] = v end
|
257
|
+
def vertices = self[:vertices]
|
258
|
+
def vertices=(v) self[:vertices] = v end
|
259
|
+
def texcoords = self[:texcoords]
|
260
|
+
def texcoords=(v) self[:texcoords] = v end
|
261
|
+
def colors = self[:colors]
|
262
|
+
def colors=(v) self[:colors] = v end
|
263
|
+
def indices = self[:indices]
|
264
|
+
def indices=(v) self[:indices] = v end
|
265
|
+
def vaoId = self[:vaoId]
|
266
|
+
def vaoId=(v) self[:vaoId] = v end
|
267
|
+
def vboId = self[:vboId]
|
268
|
+
def vboId=(v) self[:vboId] = v end
|
269
|
+
end
|
270
|
+
|
271
|
+
# of those state-change happens (this is done in core module)
|
272
|
+
class RlDrawCall < FFI::Struct
|
273
|
+
layout(
|
274
|
+
:mode, :int, # Drawing mode: LINES, TRIANGLES, QUADS
|
275
|
+
:vertexCount, :int, # Number of vertex of the draw
|
276
|
+
:vertexAlignment, :int, # Number of vertex required for index alignment (LINES, TRIANGLES)
|
277
|
+
:textureId, :uint, # Texture id to be used on the draw -> Use to create new draw call if changes
|
278
|
+
)
|
279
|
+
def mode = self[:mode]
|
280
|
+
def mode=(v) self[:mode] = v end
|
281
|
+
def vertexCount = self[:vertexCount]
|
282
|
+
def vertexCount=(v) self[:vertexCount] = v end
|
283
|
+
def vertexAlignment = self[:vertexAlignment]
|
284
|
+
def vertexAlignment=(v) self[:vertexAlignment] = v end
|
285
|
+
def textureId = self[:textureId]
|
286
|
+
def textureId=(v) self[:textureId] = v end
|
287
|
+
end
|
288
|
+
|
289
|
+
# rlRenderBatch type
|
290
|
+
class RlRenderBatch < FFI::Struct
|
291
|
+
layout(
|
292
|
+
:bufferCount, :int, # Number of vertex buffers (multi-buffering support)
|
293
|
+
:currentBuffer, :int, # Current buffer tracking in case of multi-buffering
|
294
|
+
:vertexBuffer, :pointer, # Dynamic buffer(s) for vertex data
|
295
|
+
:draws, :pointer, # Draw calls array, depends on textureId
|
296
|
+
:drawCounter, :int, # Draw calls counter
|
297
|
+
:currentDepth, :float, # Current depth value for next draw
|
298
|
+
)
|
299
|
+
def bufferCount = self[:bufferCount]
|
300
|
+
def bufferCount=(v) self[:bufferCount] = v end
|
301
|
+
def currentBuffer = self[:currentBuffer]
|
302
|
+
def currentBuffer=(v) self[:currentBuffer] = v end
|
303
|
+
def vertexBuffer = self[:vertexBuffer]
|
304
|
+
def vertexBuffer=(v) self[:vertexBuffer] = v end
|
305
|
+
def draws = self[:draws]
|
306
|
+
def draws=(v) self[:draws] = v end
|
307
|
+
def drawCounter = self[:drawCounter]
|
308
|
+
def drawCounter=(v) self[:drawCounter] = v end
|
309
|
+
def currentDepth = self[:currentDepth]
|
310
|
+
def currentDepth=(v) self[:currentDepth] = v end
|
311
|
+
end
|
312
|
+
|
313
|
+
|
314
|
+
# Function
|
315
|
+
|
316
|
+
def self.setup_rlgl_symbols
|
317
|
+
entries = [
|
318
|
+
|
319
|
+
# @!method rlMatrixMode(mode)
|
320
|
+
# rlMatrixMode : Choose the current matrix to be transformed
|
321
|
+
# @param mode [int]
|
322
|
+
# @return [void]
|
323
|
+
[:rlMatrixMode, :rlMatrixMode, [:int], :void],
|
324
|
+
|
325
|
+
# @!method rlPushMatrix()
|
326
|
+
# rlPushMatrix : Push the current matrix to stack
|
327
|
+
# @return [void]
|
328
|
+
[:rlPushMatrix, :rlPushMatrix, [], :void],
|
329
|
+
|
330
|
+
# @!method rlPopMatrix()
|
331
|
+
# rlPopMatrix : Pop latest inserted matrix from stack
|
332
|
+
# @return [void]
|
333
|
+
[:rlPopMatrix, :rlPopMatrix, [], :void],
|
334
|
+
|
335
|
+
# @!method rlLoadIdentity()
|
336
|
+
# rlLoadIdentity : Reset current matrix to identity matrix
|
337
|
+
# @return [void]
|
338
|
+
[:rlLoadIdentity, :rlLoadIdentity, [], :void],
|
339
|
+
|
340
|
+
# @!method rlTranslatef(x, y, z)
|
341
|
+
# rlTranslatef : Multiply the current matrix by a translation matrix
|
342
|
+
# @param x [float]
|
343
|
+
# @param y [float]
|
344
|
+
# @param z [float]
|
345
|
+
# @return [void]
|
346
|
+
[:rlTranslatef, :rlTranslatef, [:float, :float, :float], :void],
|
347
|
+
|
348
|
+
# @!method rlRotatef(angle, x, y, z)
|
349
|
+
# rlRotatef : Multiply the current matrix by a rotation matrix
|
350
|
+
# @param angle [float]
|
351
|
+
# @param x [float]
|
352
|
+
# @param y [float]
|
353
|
+
# @param z [float]
|
354
|
+
# @return [void]
|
355
|
+
[:rlRotatef, :rlRotatef, [:float, :float, :float, :float], :void],
|
356
|
+
|
357
|
+
# @!method rlScalef(x, y, z)
|
358
|
+
# rlScalef : Multiply the current matrix by a scaling matrix
|
359
|
+
# @param x [float]
|
360
|
+
# @param y [float]
|
361
|
+
# @param z [float]
|
362
|
+
# @return [void]
|
363
|
+
[:rlScalef, :rlScalef, [:float, :float, :float], :void],
|
364
|
+
|
365
|
+
# @!method rlMultMatrixf(matf)
|
366
|
+
# rlMultMatrixf : Multiply the current matrix by another matrix
|
367
|
+
# @param matf [const float *]
|
368
|
+
# @return [void]
|
369
|
+
[:rlMultMatrixf, :rlMultMatrixf, [:pointer], :void],
|
370
|
+
|
371
|
+
# @!method rlFrustum(left, right, bottom, top, znear, zfar)
|
372
|
+
# rlFrustum
|
373
|
+
# @param left [double]
|
374
|
+
# @param right [double]
|
375
|
+
# @param bottom [double]
|
376
|
+
# @param top [double]
|
377
|
+
# @param znear [double]
|
378
|
+
# @param zfar [double]
|
379
|
+
# @return [void]
|
380
|
+
[:rlFrustum, :rlFrustum, [:double, :double, :double, :double, :double, :double], :void],
|
381
|
+
|
382
|
+
# @!method rlOrtho(left, right, bottom, top, znear, zfar)
|
383
|
+
# rlOrtho
|
384
|
+
# @param left [double]
|
385
|
+
# @param right [double]
|
386
|
+
# @param bottom [double]
|
387
|
+
# @param top [double]
|
388
|
+
# @param znear [double]
|
389
|
+
# @param zfar [double]
|
390
|
+
# @return [void]
|
391
|
+
[:rlOrtho, :rlOrtho, [:double, :double, :double, :double, :double, :double], :void],
|
392
|
+
|
393
|
+
# @!method rlViewport(x, y, width, height)
|
394
|
+
# rlViewport : Set the viewport area
|
395
|
+
# @param x [int]
|
396
|
+
# @param y [int]
|
397
|
+
# @param width [int]
|
398
|
+
# @param height [int]
|
399
|
+
# @return [void]
|
400
|
+
[:rlViewport, :rlViewport, [:int, :int, :int, :int], :void],
|
401
|
+
|
402
|
+
# @!method rlBegin(mode)
|
403
|
+
# rlBegin : Initialize drawing mode (how to organize vertex)
|
404
|
+
# @param mode [int]
|
405
|
+
# @return [void]
|
406
|
+
[:rlBegin, :rlBegin, [:int], :void],
|
407
|
+
|
408
|
+
# @!method rlEnd()
|
409
|
+
# rlEnd : Finish vertex providing
|
410
|
+
# @return [void]
|
411
|
+
[:rlEnd, :rlEnd, [], :void],
|
412
|
+
|
413
|
+
# @!method rlVertex2i(x, y)
|
414
|
+
# rlVertex2i : Define one vertex (position) - 2 int
|
415
|
+
# @param x [int]
|
416
|
+
# @param y [int]
|
417
|
+
# @return [void]
|
418
|
+
[:rlVertex2i, :rlVertex2i, [:int, :int], :void],
|
419
|
+
|
420
|
+
# @!method rlVertex2f(x, y)
|
421
|
+
# rlVertex2f : Define one vertex (position) - 2 float
|
422
|
+
# @param x [float]
|
423
|
+
# @param y [float]
|
424
|
+
# @return [void]
|
425
|
+
[:rlVertex2f, :rlVertex2f, [:float, :float], :void],
|
426
|
+
|
427
|
+
# @!method rlVertex3f(x, y, z)
|
428
|
+
# rlVertex3f : Define one vertex (position) - 3 float
|
429
|
+
# @param x [float]
|
430
|
+
# @param y [float]
|
431
|
+
# @param z [float]
|
432
|
+
# @return [void]
|
433
|
+
[:rlVertex3f, :rlVertex3f, [:float, :float, :float], :void],
|
434
|
+
|
435
|
+
# @!method rlTexCoord2f(x, y)
|
436
|
+
# rlTexCoord2f : Define one vertex (texture coordinate) - 2 float
|
437
|
+
# @param x [float]
|
438
|
+
# @param y [float]
|
439
|
+
# @return [void]
|
440
|
+
[:rlTexCoord2f, :rlTexCoord2f, [:float, :float], :void],
|
441
|
+
|
442
|
+
# @!method rlNormal3f(x, y, z)
|
443
|
+
# rlNormal3f : Define one vertex (normal) - 3 float
|
444
|
+
# @param x [float]
|
445
|
+
# @param y [float]
|
446
|
+
# @param z [float]
|
447
|
+
# @return [void]
|
448
|
+
[:rlNormal3f, :rlNormal3f, [:float, :float, :float], :void],
|
449
|
+
|
450
|
+
# @!method rlColor4ub(r, g, b, a)
|
451
|
+
# rlColor4ub : Define one vertex (color) - 4 byte
|
452
|
+
# @param r [unsigned char]
|
453
|
+
# @param g [unsigned char]
|
454
|
+
# @param b [unsigned char]
|
455
|
+
# @param a [unsigned char]
|
456
|
+
# @return [void]
|
457
|
+
[:rlColor4ub, :rlColor4ub, [:uchar, :uchar, :uchar, :uchar], :void],
|
458
|
+
|
459
|
+
# @!method rlColor3f(x, y, z)
|
460
|
+
# rlColor3f : Define one vertex (color) - 3 float
|
461
|
+
# @param x [float]
|
462
|
+
# @param y [float]
|
463
|
+
# @param z [float]
|
464
|
+
# @return [void]
|
465
|
+
[:rlColor3f, :rlColor3f, [:float, :float, :float], :void],
|
466
|
+
|
467
|
+
# @!method rlColor4f(x, y, z, w)
|
468
|
+
# rlColor4f : Define one vertex (color) - 4 float
|
469
|
+
# @param x [float]
|
470
|
+
# @param y [float]
|
471
|
+
# @param z [float]
|
472
|
+
# @param w [float]
|
473
|
+
# @return [void]
|
474
|
+
[:rlColor4f, :rlColor4f, [:float, :float, :float, :float], :void],
|
475
|
+
|
476
|
+
# @!method rlEnableVertexArray(vaoId)
|
477
|
+
# rlEnableVertexArray : Enable vertex array (VAO, if supported)
|
478
|
+
# @param vaoId [unsigned int]
|
479
|
+
# @return [bool]
|
480
|
+
[:rlEnableVertexArray, :rlEnableVertexArray, [:uint], :bool],
|
481
|
+
|
482
|
+
# @!method rlDisableVertexArray()
|
483
|
+
# rlDisableVertexArray : Disable vertex array (VAO, if supported)
|
484
|
+
# @return [void]
|
485
|
+
[:rlDisableVertexArray, :rlDisableVertexArray, [], :void],
|
486
|
+
|
487
|
+
# @!method rlEnableVertexBuffer(id)
|
488
|
+
# rlEnableVertexBuffer : Enable vertex buffer (VBO)
|
489
|
+
# @param id [unsigned int]
|
490
|
+
# @return [void]
|
491
|
+
[:rlEnableVertexBuffer, :rlEnableVertexBuffer, [:uint], :void],
|
492
|
+
|
493
|
+
# @!method rlDisableVertexBuffer()
|
494
|
+
# rlDisableVertexBuffer : Disable vertex buffer (VBO)
|
495
|
+
# @return [void]
|
496
|
+
[:rlDisableVertexBuffer, :rlDisableVertexBuffer, [], :void],
|
497
|
+
|
498
|
+
# @!method rlEnableVertexBufferElement(id)
|
499
|
+
# rlEnableVertexBufferElement : Enable vertex buffer element (VBO element)
|
500
|
+
# @param id [unsigned int]
|
501
|
+
# @return [void]
|
502
|
+
[:rlEnableVertexBufferElement, :rlEnableVertexBufferElement, [:uint], :void],
|
503
|
+
|
504
|
+
# @!method rlDisableVertexBufferElement()
|
505
|
+
# rlDisableVertexBufferElement : Disable vertex buffer element (VBO element)
|
506
|
+
# @return [void]
|
507
|
+
[:rlDisableVertexBufferElement, :rlDisableVertexBufferElement, [], :void],
|
508
|
+
|
509
|
+
# @!method rlEnableVertexAttribute(index)
|
510
|
+
# rlEnableVertexAttribute : Enable vertex attribute index
|
511
|
+
# @param index [unsigned int]
|
512
|
+
# @return [void]
|
513
|
+
[:rlEnableVertexAttribute, :rlEnableVertexAttribute, [:uint], :void],
|
514
|
+
|
515
|
+
# @!method rlDisableVertexAttribute(index)
|
516
|
+
# rlDisableVertexAttribute : Disable vertex attribute index
|
517
|
+
# @param index [unsigned int]
|
518
|
+
# @return [void]
|
519
|
+
[:rlDisableVertexAttribute, :rlDisableVertexAttribute, [:uint], :void],
|
520
|
+
|
521
|
+
# @!method rlActiveTextureSlot(slot)
|
522
|
+
# rlActiveTextureSlot : Select and active a texture slot
|
523
|
+
# @param slot [int]
|
524
|
+
# @return [void]
|
525
|
+
[:rlActiveTextureSlot, :rlActiveTextureSlot, [:int], :void],
|
526
|
+
|
527
|
+
# @!method rlEnableTexture(id)
|
528
|
+
# rlEnableTexture : Enable texture
|
529
|
+
# @param id [unsigned int]
|
530
|
+
# @return [void]
|
531
|
+
[:rlEnableTexture, :rlEnableTexture, [:uint], :void],
|
532
|
+
|
533
|
+
# @!method rlDisableTexture()
|
534
|
+
# rlDisableTexture : Disable texture
|
535
|
+
# @return [void]
|
536
|
+
[:rlDisableTexture, :rlDisableTexture, [], :void],
|
537
|
+
|
538
|
+
# @!method rlEnableTextureCubemap(id)
|
539
|
+
# rlEnableTextureCubemap : Enable texture cubemap
|
540
|
+
# @param id [unsigned int]
|
541
|
+
# @return [void]
|
542
|
+
[:rlEnableTextureCubemap, :rlEnableTextureCubemap, [:uint], :void],
|
543
|
+
|
544
|
+
# @!method rlDisableTextureCubemap()
|
545
|
+
# rlDisableTextureCubemap : Disable texture cubemap
|
546
|
+
# @return [void]
|
547
|
+
[:rlDisableTextureCubemap, :rlDisableTextureCubemap, [], :void],
|
548
|
+
|
549
|
+
# @!method rlTextureParameters(id, param, value)
|
550
|
+
# rlTextureParameters : Set texture parameters (filter, wrap)
|
551
|
+
# @param id [unsigned int]
|
552
|
+
# @param param [int]
|
553
|
+
# @param value [int]
|
554
|
+
# @return [void]
|
555
|
+
[:rlTextureParameters, :rlTextureParameters, [:uint, :int, :int], :void],
|
556
|
+
|
557
|
+
# @!method rlCubemapParameters(id, param, value)
|
558
|
+
# rlCubemapParameters : Set cubemap parameters (filter, wrap)
|
559
|
+
# @param id [unsigned int]
|
560
|
+
# @param param [int]
|
561
|
+
# @param value [int]
|
562
|
+
# @return [void]
|
563
|
+
[:rlCubemapParameters, :rlCubemapParameters, [:uint, :int, :int], :void],
|
564
|
+
|
565
|
+
# @!method rlEnableShader(id)
|
566
|
+
# rlEnableShader : Enable shader program
|
567
|
+
# @param id [unsigned int]
|
568
|
+
# @return [void]
|
569
|
+
[:rlEnableShader, :rlEnableShader, [:uint], :void],
|
570
|
+
|
571
|
+
# @!method rlDisableShader()
|
572
|
+
# rlDisableShader : Disable shader program
|
573
|
+
# @return [void]
|
574
|
+
[:rlDisableShader, :rlDisableShader, [], :void],
|
575
|
+
|
576
|
+
# @!method rlEnableFramebuffer(id)
|
577
|
+
# rlEnableFramebuffer : Enable render texture (fbo)
|
578
|
+
# @param id [unsigned int]
|
579
|
+
# @return [void]
|
580
|
+
[:rlEnableFramebuffer, :rlEnableFramebuffer, [:uint], :void],
|
581
|
+
|
582
|
+
# @!method rlDisableFramebuffer()
|
583
|
+
# rlDisableFramebuffer : Disable render texture (fbo), return to default framebuffer
|
584
|
+
# @return [void]
|
585
|
+
[:rlDisableFramebuffer, :rlDisableFramebuffer, [], :void],
|
586
|
+
|
587
|
+
# @!method rlActiveDrawBuffers(count)
|
588
|
+
# rlActiveDrawBuffers : Activate multiple draw color buffers
|
589
|
+
# @param count [int]
|
590
|
+
# @return [void]
|
591
|
+
[:rlActiveDrawBuffers, :rlActiveDrawBuffers, [:int], :void],
|
592
|
+
|
593
|
+
# @!method rlBlitFramebuffer(srcX, srcY, srcWidth, srcHeight, dstX, dstY, dstWidth, dstHeight, bufferMask)
|
594
|
+
# rlBlitFramebuffer : Blit active framebuffer to main framebuffer
|
595
|
+
# @param srcX [int]
|
596
|
+
# @param srcY [int]
|
597
|
+
# @param srcWidth [int]
|
598
|
+
# @param srcHeight [int]
|
599
|
+
# @param dstX [int]
|
600
|
+
# @param dstY [int]
|
601
|
+
# @param dstWidth [int]
|
602
|
+
# @param dstHeight [int]
|
603
|
+
# @param bufferMask [int]
|
604
|
+
# @return [void]
|
605
|
+
[:rlBlitFramebuffer, :rlBlitFramebuffer, [:int, :int, :int, :int, :int, :int, :int, :int, :int], :void],
|
606
|
+
|
607
|
+
# @!method rlBindFramebuffer(target, framebuffer)
|
608
|
+
# rlBindFramebuffer : Bind framebuffer (FBO)
|
609
|
+
# @param target [unsigned int]
|
610
|
+
# @param framebuffer [unsigned int]
|
611
|
+
# @return [void]
|
612
|
+
[:rlBindFramebuffer, :rlBindFramebuffer, [:uint, :uint], :void],
|
613
|
+
|
614
|
+
# @!method rlEnableColorBlend()
|
615
|
+
# rlEnableColorBlend : Enable color blending
|
616
|
+
# @return [void]
|
617
|
+
[:rlEnableColorBlend, :rlEnableColorBlend, [], :void],
|
618
|
+
|
619
|
+
# @!method rlDisableColorBlend()
|
620
|
+
# rlDisableColorBlend : Disable color blending
|
621
|
+
# @return [void]
|
622
|
+
[:rlDisableColorBlend, :rlDisableColorBlend, [], :void],
|
623
|
+
|
624
|
+
# @!method rlEnableDepthTest()
|
625
|
+
# rlEnableDepthTest : Enable depth test
|
626
|
+
# @return [void]
|
627
|
+
[:rlEnableDepthTest, :rlEnableDepthTest, [], :void],
|
628
|
+
|
629
|
+
# @!method rlDisableDepthTest()
|
630
|
+
# rlDisableDepthTest : Disable depth test
|
631
|
+
# @return [void]
|
632
|
+
[:rlDisableDepthTest, :rlDisableDepthTest, [], :void],
|
633
|
+
|
634
|
+
# @!method rlEnableDepthMask()
|
635
|
+
# rlEnableDepthMask : Enable depth write
|
636
|
+
# @return [void]
|
637
|
+
[:rlEnableDepthMask, :rlEnableDepthMask, [], :void],
|
638
|
+
|
639
|
+
# @!method rlDisableDepthMask()
|
640
|
+
# rlDisableDepthMask : Disable depth write
|
641
|
+
# @return [void]
|
642
|
+
[:rlDisableDepthMask, :rlDisableDepthMask, [], :void],
|
643
|
+
|
644
|
+
# @!method rlEnableBackfaceCulling()
|
645
|
+
# rlEnableBackfaceCulling : Enable backface culling
|
646
|
+
# @return [void]
|
647
|
+
[:rlEnableBackfaceCulling, :rlEnableBackfaceCulling, [], :void],
|
648
|
+
|
649
|
+
# @!method rlDisableBackfaceCulling()
|
650
|
+
# rlDisableBackfaceCulling : Disable backface culling
|
651
|
+
# @return [void]
|
652
|
+
[:rlDisableBackfaceCulling, :rlDisableBackfaceCulling, [], :void],
|
653
|
+
|
654
|
+
# @!method rlColorMask(r, g, b, a)
|
655
|
+
# rlColorMask : Color mask control
|
656
|
+
# @param r [bool]
|
657
|
+
# @param g [bool]
|
658
|
+
# @param b [bool]
|
659
|
+
# @param a [bool]
|
660
|
+
# @return [void]
|
661
|
+
[:rlColorMask, :rlColorMask, [:bool, :bool, :bool, :bool], :void],
|
662
|
+
|
663
|
+
# @!method rlSetCullFace(mode)
|
664
|
+
# rlSetCullFace : Set face culling mode
|
665
|
+
# @param mode [int]
|
666
|
+
# @return [void]
|
667
|
+
[:rlSetCullFace, :rlSetCullFace, [:int], :void],
|
668
|
+
|
669
|
+
# @!method rlEnableScissorTest()
|
670
|
+
# rlEnableScissorTest : Enable scissor test
|
671
|
+
# @return [void]
|
672
|
+
[:rlEnableScissorTest, :rlEnableScissorTest, [], :void],
|
673
|
+
|
674
|
+
# @!method rlDisableScissorTest()
|
675
|
+
# rlDisableScissorTest : Disable scissor test
|
676
|
+
# @return [void]
|
677
|
+
[:rlDisableScissorTest, :rlDisableScissorTest, [], :void],
|
678
|
+
|
679
|
+
# @!method rlScissor(x, y, width, height)
|
680
|
+
# rlScissor : Scissor test
|
681
|
+
# @param x [int]
|
682
|
+
# @param y [int]
|
683
|
+
# @param width [int]
|
684
|
+
# @param height [int]
|
685
|
+
# @return [void]
|
686
|
+
[:rlScissor, :rlScissor, [:int, :int, :int, :int], :void],
|
687
|
+
|
688
|
+
# @!method rlEnableWireMode()
|
689
|
+
# rlEnableWireMode : Enable wire mode
|
690
|
+
# @return [void]
|
691
|
+
[:rlEnableWireMode, :rlEnableWireMode, [], :void],
|
692
|
+
|
693
|
+
# @!method rlEnablePointMode()
|
694
|
+
# rlEnablePointMode : Enable point mode
|
695
|
+
# @return [void]
|
696
|
+
[:rlEnablePointMode, :rlEnablePointMode, [], :void],
|
697
|
+
|
698
|
+
# @!method rlDisableWireMode()
|
699
|
+
# rlDisableWireMode : Disable wire mode ( and point ) maybe rename
|
700
|
+
# @return [void]
|
701
|
+
[:rlDisableWireMode, :rlDisableWireMode, [], :void],
|
702
|
+
|
703
|
+
# @!method rlSetLineWidth(width)
|
704
|
+
# rlSetLineWidth : Set the line drawing width
|
705
|
+
# @param width [float]
|
706
|
+
# @return [void]
|
707
|
+
[:rlSetLineWidth, :rlSetLineWidth, [:float], :void],
|
708
|
+
|
709
|
+
# @!method rlGetLineWidth()
|
710
|
+
# rlGetLineWidth : Get the line drawing width
|
711
|
+
# @return [float]
|
712
|
+
[:rlGetLineWidth, :rlGetLineWidth, [], :float],
|
713
|
+
|
714
|
+
# @!method rlEnableSmoothLines()
|
715
|
+
# rlEnableSmoothLines : Enable line aliasing
|
716
|
+
# @return [void]
|
717
|
+
[:rlEnableSmoothLines, :rlEnableSmoothLines, [], :void],
|
718
|
+
|
719
|
+
# @!method rlDisableSmoothLines()
|
720
|
+
# rlDisableSmoothLines : Disable line aliasing
|
721
|
+
# @return [void]
|
722
|
+
[:rlDisableSmoothLines, :rlDisableSmoothLines, [], :void],
|
723
|
+
|
724
|
+
# @!method rlEnableStereoRender()
|
725
|
+
# rlEnableStereoRender : Enable stereo rendering
|
726
|
+
# @return [void]
|
727
|
+
[:rlEnableStereoRender, :rlEnableStereoRender, [], :void],
|
728
|
+
|
729
|
+
# @!method rlDisableStereoRender()
|
730
|
+
# rlDisableStereoRender : Disable stereo rendering
|
731
|
+
# @return [void]
|
732
|
+
[:rlDisableStereoRender, :rlDisableStereoRender, [], :void],
|
733
|
+
|
734
|
+
# @!method rlIsStereoRenderEnabled()
|
735
|
+
# rlIsStereoRenderEnabled : Check if stereo render is enabled
|
736
|
+
# @return [bool]
|
737
|
+
[:rlIsStereoRenderEnabled, :rlIsStereoRenderEnabled, [], :bool],
|
738
|
+
|
739
|
+
# @!method rlClearColor(r, g, b, a)
|
740
|
+
# rlClearColor : Clear color buffer with color
|
741
|
+
# @param r [unsigned char]
|
742
|
+
# @param g [unsigned char]
|
743
|
+
# @param b [unsigned char]
|
744
|
+
# @param a [unsigned char]
|
745
|
+
# @return [void]
|
746
|
+
[:rlClearColor, :rlClearColor, [:uchar, :uchar, :uchar, :uchar], :void],
|
747
|
+
|
748
|
+
# @!method rlClearScreenBuffers()
|
749
|
+
# rlClearScreenBuffers : Clear used screen buffers (color and depth)
|
750
|
+
# @return [void]
|
751
|
+
[:rlClearScreenBuffers, :rlClearScreenBuffers, [], :void],
|
752
|
+
|
753
|
+
# @!method rlCheckErrors()
|
754
|
+
# rlCheckErrors : Check and log OpenGL error codes
|
755
|
+
# @return [void]
|
756
|
+
[:rlCheckErrors, :rlCheckErrors, [], :void],
|
757
|
+
|
758
|
+
# @!method rlSetBlendMode(mode)
|
759
|
+
# rlSetBlendMode : Set blending mode
|
760
|
+
# @param mode [int]
|
761
|
+
# @return [void]
|
762
|
+
[:rlSetBlendMode, :rlSetBlendMode, [:int], :void],
|
763
|
+
|
764
|
+
# @!method rlSetBlendFactors(glSrcFactor, glDstFactor, glEquation)
|
765
|
+
# rlSetBlendFactors : Set blending mode factor and equation (using OpenGL factors)
|
766
|
+
# @param glSrcFactor [int]
|
767
|
+
# @param glDstFactor [int]
|
768
|
+
# @param glEquation [int]
|
769
|
+
# @return [void]
|
770
|
+
[:rlSetBlendFactors, :rlSetBlendFactors, [:int, :int, :int], :void],
|
771
|
+
|
772
|
+
# @!method rlSetBlendFactorsSeparate(glSrcRGB, glDstRGB, glSrcAlpha, glDstAlpha, glEqRGB, glEqAlpha)
|
773
|
+
# rlSetBlendFactorsSeparate : Set blending mode factors and equations separately (using OpenGL factors)
|
774
|
+
# @param glSrcRGB [int]
|
775
|
+
# @param glDstRGB [int]
|
776
|
+
# @param glSrcAlpha [int]
|
777
|
+
# @param glDstAlpha [int]
|
778
|
+
# @param glEqRGB [int]
|
779
|
+
# @param glEqAlpha [int]
|
780
|
+
# @return [void]
|
781
|
+
[:rlSetBlendFactorsSeparate, :rlSetBlendFactorsSeparate, [:int, :int, :int, :int, :int, :int], :void],
|
782
|
+
|
783
|
+
# @!method rlglInit(width, height)
|
784
|
+
# rlglInit : Initialize rlgl (buffers, shaders, textures, states)
|
785
|
+
# @param width [int]
|
786
|
+
# @param height [int]
|
787
|
+
# @return [void]
|
788
|
+
[:rlglInit, :rlglInit, [:int, :int], :void],
|
789
|
+
|
790
|
+
# @!method rlglClose()
|
791
|
+
# rlglClose : De-initialize rlgl (buffers, shaders, textures)
|
792
|
+
# @return [void]
|
793
|
+
[:rlglClose, :rlglClose, [], :void],
|
794
|
+
|
795
|
+
# @!method rlLoadExtensions(loader)
|
796
|
+
# rlLoadExtensions : Load OpenGL extensions (loader function required)
|
797
|
+
# @param loader [void *]
|
798
|
+
# @return [void]
|
799
|
+
[:rlLoadExtensions, :rlLoadExtensions, [:pointer], :void],
|
800
|
+
|
801
|
+
# @!method rlGetVersion()
|
802
|
+
# rlGetVersion : Get current OpenGL version
|
803
|
+
# @return [int]
|
804
|
+
[:rlGetVersion, :rlGetVersion, [], :int],
|
805
|
+
|
806
|
+
# @!method rlSetFramebufferWidth(width)
|
807
|
+
# rlSetFramebufferWidth : Set current framebuffer width
|
808
|
+
# @param width [int]
|
809
|
+
# @return [void]
|
810
|
+
[:rlSetFramebufferWidth, :rlSetFramebufferWidth, [:int], :void],
|
811
|
+
|
812
|
+
# @!method rlGetFramebufferWidth()
|
813
|
+
# rlGetFramebufferWidth : Get default framebuffer width
|
814
|
+
# @return [int]
|
815
|
+
[:rlGetFramebufferWidth, :rlGetFramebufferWidth, [], :int],
|
816
|
+
|
817
|
+
# @!method rlSetFramebufferHeight(height)
|
818
|
+
# rlSetFramebufferHeight : Set current framebuffer height
|
819
|
+
# @param height [int]
|
820
|
+
# @return [void]
|
821
|
+
[:rlSetFramebufferHeight, :rlSetFramebufferHeight, [:int], :void],
|
822
|
+
|
823
|
+
# @!method rlGetFramebufferHeight()
|
824
|
+
# rlGetFramebufferHeight : Get default framebuffer height
|
825
|
+
# @return [int]
|
826
|
+
[:rlGetFramebufferHeight, :rlGetFramebufferHeight, [], :int],
|
827
|
+
|
828
|
+
# @!method rlGetTextureIdDefault()
|
829
|
+
# rlGetTextureIdDefault : Get default texture id
|
830
|
+
# @return [unsigned int]
|
831
|
+
[:rlGetTextureIdDefault, :rlGetTextureIdDefault, [], :uint],
|
832
|
+
|
833
|
+
# @!method rlGetShaderIdDefault()
|
834
|
+
# rlGetShaderIdDefault : Get default shader id
|
835
|
+
# @return [unsigned int]
|
836
|
+
[:rlGetShaderIdDefault, :rlGetShaderIdDefault, [], :uint],
|
837
|
+
|
838
|
+
# @!method rlGetShaderLocsDefault()
|
839
|
+
# rlGetShaderLocsDefault : Get default shader locations
|
840
|
+
# @return [int *]
|
841
|
+
[:rlGetShaderLocsDefault, :rlGetShaderLocsDefault, [], :pointer],
|
842
|
+
|
843
|
+
# @!method rlLoadRenderBatch(numBuffers, bufferElements)
|
844
|
+
# rlLoadRenderBatch : Load a render batch system
|
845
|
+
# @param numBuffers [int]
|
846
|
+
# @param bufferElements [int]
|
847
|
+
# @return [rlRenderBatch]
|
848
|
+
[:rlLoadRenderBatch, :rlLoadRenderBatch, [:int, :int], RlRenderBatch.by_value],
|
849
|
+
|
850
|
+
# @!method rlUnloadRenderBatch(batch)
|
851
|
+
# rlUnloadRenderBatch : Unload render batch system
|
852
|
+
# @param batch [rlRenderBatch]
|
853
|
+
# @return [void]
|
854
|
+
[:rlUnloadRenderBatch, :rlUnloadRenderBatch, [RlRenderBatch.by_value], :void],
|
855
|
+
|
856
|
+
# @!method rlDrawRenderBatch(batch)
|
857
|
+
# rlDrawRenderBatch : Draw render batch data (Update->Draw->Reset)
|
858
|
+
# @param batch [rlRenderBatch *]
|
859
|
+
# @return [void]
|
860
|
+
[:rlDrawRenderBatch, :rlDrawRenderBatch, [:pointer], :void],
|
861
|
+
|
862
|
+
# @!method rlSetRenderBatchActive(batch)
|
863
|
+
# rlSetRenderBatchActive : Set the active render batch for rlgl (NULL for default internal)
|
864
|
+
# @param batch [rlRenderBatch *]
|
865
|
+
# @return [void]
|
866
|
+
[:rlSetRenderBatchActive, :rlSetRenderBatchActive, [:pointer], :void],
|
867
|
+
|
868
|
+
# @!method rlDrawRenderBatchActive()
|
869
|
+
# rlDrawRenderBatchActive : Update and draw internal render batch
|
870
|
+
# @return [void]
|
871
|
+
[:rlDrawRenderBatchActive, :rlDrawRenderBatchActive, [], :void],
|
872
|
+
|
873
|
+
# @!method rlCheckRenderBatchLimit(vCount)
|
874
|
+
# rlCheckRenderBatchLimit : Check internal buffer overflow for a given number of vertex
|
875
|
+
# @param vCount [int]
|
876
|
+
# @return [bool]
|
877
|
+
[:rlCheckRenderBatchLimit, :rlCheckRenderBatchLimit, [:int], :bool],
|
878
|
+
|
879
|
+
# @!method rlSetTexture(id)
|
880
|
+
# rlSetTexture : Set current texture for render batch and check buffers limits
|
881
|
+
# @param id [unsigned int]
|
882
|
+
# @return [void]
|
883
|
+
[:rlSetTexture, :rlSetTexture, [:uint], :void],
|
884
|
+
|
885
|
+
# @!method rlLoadVertexArray()
|
886
|
+
# rlLoadVertexArray : Load vertex array (vao) if supported
|
887
|
+
# @return [unsigned int]
|
888
|
+
[:rlLoadVertexArray, :rlLoadVertexArray, [], :uint],
|
889
|
+
|
890
|
+
# @!method rlLoadVertexBuffer(buffer, size, dynamic)
|
891
|
+
# rlLoadVertexBuffer : Load a vertex buffer object
|
892
|
+
# @param buffer [const void *]
|
893
|
+
# @param size [int]
|
894
|
+
# @param dynamic [bool]
|
895
|
+
# @return [unsigned int]
|
896
|
+
[:rlLoadVertexBuffer, :rlLoadVertexBuffer, [:pointer, :int, :bool], :uint],
|
897
|
+
|
898
|
+
# @!method rlLoadVertexBufferElement(buffer, size, dynamic)
|
899
|
+
# rlLoadVertexBufferElement : Load vertex buffer elements object
|
900
|
+
# @param buffer [const void *]
|
901
|
+
# @param size [int]
|
902
|
+
# @param dynamic [bool]
|
903
|
+
# @return [unsigned int]
|
904
|
+
[:rlLoadVertexBufferElement, :rlLoadVertexBufferElement, [:pointer, :int, :bool], :uint],
|
905
|
+
|
906
|
+
# @!method rlUpdateVertexBuffer(bufferId, data, dataSize, offset)
|
907
|
+
# rlUpdateVertexBuffer : Update vertex buffer object data on GPU buffer
|
908
|
+
# @param bufferId [unsigned int]
|
909
|
+
# @param data [const void *]
|
910
|
+
# @param dataSize [int]
|
911
|
+
# @param offset [int]
|
912
|
+
# @return [void]
|
913
|
+
[:rlUpdateVertexBuffer, :rlUpdateVertexBuffer, [:uint, :pointer, :int, :int], :void],
|
914
|
+
|
915
|
+
# @!method rlUpdateVertexBufferElements(id, data, dataSize, offset)
|
916
|
+
# rlUpdateVertexBufferElements : Update vertex buffer elements data on GPU buffer
|
917
|
+
# @param id [unsigned int]
|
918
|
+
# @param data [const void *]
|
919
|
+
# @param dataSize [int]
|
920
|
+
# @param offset [int]
|
921
|
+
# @return [void]
|
922
|
+
[:rlUpdateVertexBufferElements, :rlUpdateVertexBufferElements, [:uint, :pointer, :int, :int], :void],
|
923
|
+
|
924
|
+
# @!method rlUnloadVertexArray(vaoId)
|
925
|
+
# rlUnloadVertexArray : Unload vertex array (vao)
|
926
|
+
# @param vaoId [unsigned int]
|
927
|
+
# @return [void]
|
928
|
+
[:rlUnloadVertexArray, :rlUnloadVertexArray, [:uint], :void],
|
929
|
+
|
930
|
+
# @!method rlUnloadVertexBuffer(vboId)
|
931
|
+
# rlUnloadVertexBuffer : Unload vertex buffer object
|
932
|
+
# @param vboId [unsigned int]
|
933
|
+
# @return [void]
|
934
|
+
[:rlUnloadVertexBuffer, :rlUnloadVertexBuffer, [:uint], :void],
|
935
|
+
|
936
|
+
# @!method rlSetVertexAttribute(index, compSize, type, normalized, stride, pointer)
|
937
|
+
# rlSetVertexAttribute : Set vertex attribute data configuration
|
938
|
+
# @param index [unsigned int]
|
939
|
+
# @param compSize [int]
|
940
|
+
# @param type [int]
|
941
|
+
# @param normalized [bool]
|
942
|
+
# @param stride [int]
|
943
|
+
# @param pointer [const void *]
|
944
|
+
# @return [void]
|
945
|
+
[:rlSetVertexAttribute, :rlSetVertexAttribute, [:uint, :int, :int, :bool, :int, :pointer], :void],
|
946
|
+
|
947
|
+
# @!method rlSetVertexAttributeDivisor(index, divisor)
|
948
|
+
# rlSetVertexAttributeDivisor : Set vertex attribute data divisor
|
949
|
+
# @param index [unsigned int]
|
950
|
+
# @param divisor [int]
|
951
|
+
# @return [void]
|
952
|
+
[:rlSetVertexAttributeDivisor, :rlSetVertexAttributeDivisor, [:uint, :int], :void],
|
953
|
+
|
954
|
+
# @!method rlSetVertexAttributeDefault(locIndex, value, attribType, count)
|
955
|
+
# rlSetVertexAttributeDefault : Set vertex attribute default value, when attribute to provided
|
956
|
+
# @param locIndex [int]
|
957
|
+
# @param value [const void *]
|
958
|
+
# @param attribType [int]
|
959
|
+
# @param count [int]
|
960
|
+
# @return [void]
|
961
|
+
[:rlSetVertexAttributeDefault, :rlSetVertexAttributeDefault, [:int, :pointer, :int, :int], :void],
|
962
|
+
|
963
|
+
# @!method rlDrawVertexArray(offset, count)
|
964
|
+
# rlDrawVertexArray : Draw vertex array (currently active vao)
|
965
|
+
# @param offset [int]
|
966
|
+
# @param count [int]
|
967
|
+
# @return [void]
|
968
|
+
[:rlDrawVertexArray, :rlDrawVertexArray, [:int, :int], :void],
|
969
|
+
|
970
|
+
# @!method rlDrawVertexArrayElements(offset, count, buffer)
|
971
|
+
# rlDrawVertexArrayElements : Draw vertex array elements
|
972
|
+
# @param offset [int]
|
973
|
+
# @param count [int]
|
974
|
+
# @param buffer [const void *]
|
975
|
+
# @return [void]
|
976
|
+
[:rlDrawVertexArrayElements, :rlDrawVertexArrayElements, [:int, :int, :pointer], :void],
|
977
|
+
|
978
|
+
# @!method rlDrawVertexArrayInstanced(offset, count, instances)
|
979
|
+
# rlDrawVertexArrayInstanced : Draw vertex array (currently active vao) with instancing
|
980
|
+
# @param offset [int]
|
981
|
+
# @param count [int]
|
982
|
+
# @param instances [int]
|
983
|
+
# @return [void]
|
984
|
+
[:rlDrawVertexArrayInstanced, :rlDrawVertexArrayInstanced, [:int, :int, :int], :void],
|
985
|
+
|
986
|
+
# @!method rlDrawVertexArrayElementsInstanced(offset, count, buffer, instances)
|
987
|
+
# rlDrawVertexArrayElementsInstanced : Draw vertex array elements with instancing
|
988
|
+
# @param offset [int]
|
989
|
+
# @param count [int]
|
990
|
+
# @param buffer [const void *]
|
991
|
+
# @param instances [int]
|
992
|
+
# @return [void]
|
993
|
+
[:rlDrawVertexArrayElementsInstanced, :rlDrawVertexArrayElementsInstanced, [:int, :int, :pointer, :int], :void],
|
994
|
+
|
995
|
+
# @!method rlLoadTexture(data, width, height, format, mipmapCount)
|
996
|
+
# rlLoadTexture : Load texture data
|
997
|
+
# @param data [const void *]
|
998
|
+
# @param width [int]
|
999
|
+
# @param height [int]
|
1000
|
+
# @param format [int]
|
1001
|
+
# @param mipmapCount [int]
|
1002
|
+
# @return [unsigned int]
|
1003
|
+
[:rlLoadTexture, :rlLoadTexture, [:pointer, :int, :int, :int, :int], :uint],
|
1004
|
+
|
1005
|
+
# @!method rlLoadTextureDepth(width, height, useRenderBuffer)
|
1006
|
+
# rlLoadTextureDepth : Load depth texture/renderbuffer (to be attached to fbo)
|
1007
|
+
# @param width [int]
|
1008
|
+
# @param height [int]
|
1009
|
+
# @param useRenderBuffer [bool]
|
1010
|
+
# @return [unsigned int]
|
1011
|
+
[:rlLoadTextureDepth, :rlLoadTextureDepth, [:int, :int, :bool], :uint],
|
1012
|
+
|
1013
|
+
# @!method rlLoadTextureCubemap(data, size, format)
|
1014
|
+
# rlLoadTextureCubemap : Load texture cubemap data
|
1015
|
+
# @param data [const void *]
|
1016
|
+
# @param size [int]
|
1017
|
+
# @param format [int]
|
1018
|
+
# @return [unsigned int]
|
1019
|
+
[:rlLoadTextureCubemap, :rlLoadTextureCubemap, [:pointer, :int, :int], :uint],
|
1020
|
+
|
1021
|
+
# @!method rlUpdateTexture(id, offsetX, offsetY, width, height, format, data)
|
1022
|
+
# rlUpdateTexture : Update texture with new data on GPU
|
1023
|
+
# @param id [unsigned int]
|
1024
|
+
# @param offsetX [int]
|
1025
|
+
# @param offsetY [int]
|
1026
|
+
# @param width [int]
|
1027
|
+
# @param height [int]
|
1028
|
+
# @param format [int]
|
1029
|
+
# @param data [const void *]
|
1030
|
+
# @return [void]
|
1031
|
+
[:rlUpdateTexture, :rlUpdateTexture, [:uint, :int, :int, :int, :int, :int, :pointer], :void],
|
1032
|
+
|
1033
|
+
# @!method rlGetGlTextureFormats(format, glInternalFormat, glFormat, glType)
|
1034
|
+
# rlGetGlTextureFormats : Get OpenGL internal formats
|
1035
|
+
# @param format [int]
|
1036
|
+
# @param glInternalFormat [unsigned int *]
|
1037
|
+
# @param glFormat [unsigned int *]
|
1038
|
+
# @param glType [unsigned int *]
|
1039
|
+
# @return [void]
|
1040
|
+
[:rlGetGlTextureFormats, :rlGetGlTextureFormats, [:int, :pointer, :pointer, :pointer], :void],
|
1041
|
+
|
1042
|
+
# @!method rlGetPixelFormatName(format)
|
1043
|
+
# rlGetPixelFormatName : Get name string for pixel format
|
1044
|
+
# @param format [unsigned int]
|
1045
|
+
# @return [const char *]
|
1046
|
+
[:rlGetPixelFormatName, :rlGetPixelFormatName, [:uint], :pointer],
|
1047
|
+
|
1048
|
+
# @!method rlUnloadTexture(id)
|
1049
|
+
# rlUnloadTexture : Unload texture from GPU memory
|
1050
|
+
# @param id [unsigned int]
|
1051
|
+
# @return [void]
|
1052
|
+
[:rlUnloadTexture, :rlUnloadTexture, [:uint], :void],
|
1053
|
+
|
1054
|
+
# @!method rlGenTextureMipmaps(id, width, height, format, mipmaps)
|
1055
|
+
# rlGenTextureMipmaps : Generate mipmap data for selected texture
|
1056
|
+
# @param id [unsigned int]
|
1057
|
+
# @param width [int]
|
1058
|
+
# @param height [int]
|
1059
|
+
# @param format [int]
|
1060
|
+
# @param mipmaps [int *]
|
1061
|
+
# @return [void]
|
1062
|
+
[:rlGenTextureMipmaps, :rlGenTextureMipmaps, [:uint, :int, :int, :int, :pointer], :void],
|
1063
|
+
|
1064
|
+
# @!method rlReadTexturePixels(id, width, height, format)
|
1065
|
+
# rlReadTexturePixels : Read texture pixel data
|
1066
|
+
# @param id [unsigned int]
|
1067
|
+
# @param width [int]
|
1068
|
+
# @param height [int]
|
1069
|
+
# @param format [int]
|
1070
|
+
# @return [void *]
|
1071
|
+
[:rlReadTexturePixels, :rlReadTexturePixels, [:uint, :int, :int, :int], :pointer],
|
1072
|
+
|
1073
|
+
# @!method rlReadScreenPixels(width, height)
|
1074
|
+
# rlReadScreenPixels : Read screen pixel data (color buffer)
|
1075
|
+
# @param width [int]
|
1076
|
+
# @param height [int]
|
1077
|
+
# @return [unsigned char *]
|
1078
|
+
[:rlReadScreenPixels, :rlReadScreenPixels, [:int, :int], :pointer],
|
1079
|
+
|
1080
|
+
# @!method rlLoadFramebuffer(width, height)
|
1081
|
+
# rlLoadFramebuffer : Load an empty framebuffer
|
1082
|
+
# @param width [int]
|
1083
|
+
# @param height [int]
|
1084
|
+
# @return [unsigned int]
|
1085
|
+
[:rlLoadFramebuffer, :rlLoadFramebuffer, [:int, :int], :uint],
|
1086
|
+
|
1087
|
+
# @!method rlFramebufferAttach(fboId, texId, attachType, texType, mipLevel)
|
1088
|
+
# rlFramebufferAttach : Attach texture/renderbuffer to a framebuffer
|
1089
|
+
# @param fboId [unsigned int]
|
1090
|
+
# @param texId [unsigned int]
|
1091
|
+
# @param attachType [int]
|
1092
|
+
# @param texType [int]
|
1093
|
+
# @param mipLevel [int]
|
1094
|
+
# @return [void]
|
1095
|
+
[:rlFramebufferAttach, :rlFramebufferAttach, [:uint, :uint, :int, :int, :int], :void],
|
1096
|
+
|
1097
|
+
# @!method rlFramebufferComplete(id)
|
1098
|
+
# rlFramebufferComplete : Verify framebuffer is complete
|
1099
|
+
# @param id [unsigned int]
|
1100
|
+
# @return [bool]
|
1101
|
+
[:rlFramebufferComplete, :rlFramebufferComplete, [:uint], :bool],
|
1102
|
+
|
1103
|
+
# @!method rlUnloadFramebuffer(id)
|
1104
|
+
# rlUnloadFramebuffer : Delete framebuffer from GPU
|
1105
|
+
# @param id [unsigned int]
|
1106
|
+
# @return [void]
|
1107
|
+
[:rlUnloadFramebuffer, :rlUnloadFramebuffer, [:uint], :void],
|
1108
|
+
|
1109
|
+
# @!method rlLoadShaderCode(vsCode, fsCode)
|
1110
|
+
# rlLoadShaderCode : Load shader from code strings
|
1111
|
+
# @param vsCode [const char *]
|
1112
|
+
# @param fsCode [const char *]
|
1113
|
+
# @return [unsigned int]
|
1114
|
+
[:rlLoadShaderCode, :rlLoadShaderCode, [:pointer, :pointer], :uint],
|
1115
|
+
|
1116
|
+
# @!method rlCompileShader(shaderCode, type)
|
1117
|
+
# rlCompileShader : Compile custom shader and return shader id (type: RL_VERTEX_SHADER, RL_FRAGMENT_SHADER, RL_COMPUTE_SHADER)
|
1118
|
+
# @param shaderCode [const char *]
|
1119
|
+
# @param type [int]
|
1120
|
+
# @return [unsigned int]
|
1121
|
+
[:rlCompileShader, :rlCompileShader, [:pointer, :int], :uint],
|
1122
|
+
|
1123
|
+
# @!method rlLoadShaderProgram(vShaderId, fShaderId)
|
1124
|
+
# rlLoadShaderProgram : Load custom shader program
|
1125
|
+
# @param vShaderId [unsigned int]
|
1126
|
+
# @param fShaderId [unsigned int]
|
1127
|
+
# @return [unsigned int]
|
1128
|
+
[:rlLoadShaderProgram, :rlLoadShaderProgram, [:uint, :uint], :uint],
|
1129
|
+
|
1130
|
+
# @!method rlUnloadShaderProgram(id)
|
1131
|
+
# rlUnloadShaderProgram : Unload shader program
|
1132
|
+
# @param id [unsigned int]
|
1133
|
+
# @return [void]
|
1134
|
+
[:rlUnloadShaderProgram, :rlUnloadShaderProgram, [:uint], :void],
|
1135
|
+
|
1136
|
+
# @!method rlGetLocationUniform(shaderId, uniformName)
|
1137
|
+
# rlGetLocationUniform : Get shader location uniform
|
1138
|
+
# @param shaderId [unsigned int]
|
1139
|
+
# @param uniformName [const char *]
|
1140
|
+
# @return [int]
|
1141
|
+
[:rlGetLocationUniform, :rlGetLocationUniform, [:uint, :pointer], :int],
|
1142
|
+
|
1143
|
+
# @!method rlGetLocationAttrib(shaderId, attribName)
|
1144
|
+
# rlGetLocationAttrib : Get shader location attribute
|
1145
|
+
# @param shaderId [unsigned int]
|
1146
|
+
# @param attribName [const char *]
|
1147
|
+
# @return [int]
|
1148
|
+
[:rlGetLocationAttrib, :rlGetLocationAttrib, [:uint, :pointer], :int],
|
1149
|
+
|
1150
|
+
# @!method rlSetUniform(locIndex, value, uniformType, count)
|
1151
|
+
# rlSetUniform : Set shader value uniform
|
1152
|
+
# @param locIndex [int]
|
1153
|
+
# @param value [const void *]
|
1154
|
+
# @param uniformType [int]
|
1155
|
+
# @param count [int]
|
1156
|
+
# @return [void]
|
1157
|
+
[:rlSetUniform, :rlSetUniform, [:int, :pointer, :int, :int], :void],
|
1158
|
+
|
1159
|
+
# @!method rlSetUniformMatrix(locIndex, mat)
|
1160
|
+
# rlSetUniformMatrix : Set shader value matrix
|
1161
|
+
# @param locIndex [int]
|
1162
|
+
# @param mat [Matrix]
|
1163
|
+
# @return [void]
|
1164
|
+
[:rlSetUniformMatrix, :rlSetUniformMatrix, [:int, Matrix.by_value], :void],
|
1165
|
+
|
1166
|
+
# @!method rlSetUniformSampler(locIndex, textureId)
|
1167
|
+
# rlSetUniformSampler : Set shader value sampler
|
1168
|
+
# @param locIndex [int]
|
1169
|
+
# @param textureId [unsigned int]
|
1170
|
+
# @return [void]
|
1171
|
+
[:rlSetUniformSampler, :rlSetUniformSampler, [:int, :uint], :void],
|
1172
|
+
|
1173
|
+
# @!method rlSetShader(id, locs)
|
1174
|
+
# rlSetShader : Set shader currently active (id and locations)
|
1175
|
+
# @param id [unsigned int]
|
1176
|
+
# @param locs [int *]
|
1177
|
+
# @return [void]
|
1178
|
+
[:rlSetShader, :rlSetShader, [:uint, :pointer], :void],
|
1179
|
+
|
1180
|
+
# @!method rlLoadComputeShaderProgram(shaderId)
|
1181
|
+
# rlLoadComputeShaderProgram : Load compute shader program
|
1182
|
+
# @param shaderId [unsigned int]
|
1183
|
+
# @return [unsigned int]
|
1184
|
+
[:rlLoadComputeShaderProgram, :rlLoadComputeShaderProgram, [:uint], :uint],
|
1185
|
+
|
1186
|
+
# @!method rlComputeShaderDispatch(groupX, groupY, groupZ)
|
1187
|
+
# rlComputeShaderDispatch : Dispatch compute shader (equivalent to *draw* for graphics pipeline)
|
1188
|
+
# @param groupX [unsigned int]
|
1189
|
+
# @param groupY [unsigned int]
|
1190
|
+
# @param groupZ [unsigned int]
|
1191
|
+
# @return [void]
|
1192
|
+
[:rlComputeShaderDispatch, :rlComputeShaderDispatch, [:uint, :uint, :uint], :void],
|
1193
|
+
|
1194
|
+
# @!method rlLoadShaderBuffer(size, data, usageHint)
|
1195
|
+
# rlLoadShaderBuffer : Load shader storage buffer object (SSBO)
|
1196
|
+
# @param size [unsigned int]
|
1197
|
+
# @param data [const void *]
|
1198
|
+
# @param usageHint [int]
|
1199
|
+
# @return [unsigned int]
|
1200
|
+
[:rlLoadShaderBuffer, :rlLoadShaderBuffer, [:uint, :pointer, :int], :uint],
|
1201
|
+
|
1202
|
+
# @!method rlUnloadShaderBuffer(ssboId)
|
1203
|
+
# rlUnloadShaderBuffer : Unload shader storage buffer object (SSBO)
|
1204
|
+
# @param ssboId [unsigned int]
|
1205
|
+
# @return [void]
|
1206
|
+
[:rlUnloadShaderBuffer, :rlUnloadShaderBuffer, [:uint], :void],
|
1207
|
+
|
1208
|
+
# @!method rlUpdateShaderBuffer(id, data, dataSize, offset)
|
1209
|
+
# rlUpdateShaderBuffer : Update SSBO buffer data
|
1210
|
+
# @param id [unsigned int]
|
1211
|
+
# @param data [const void *]
|
1212
|
+
# @param dataSize [unsigned int]
|
1213
|
+
# @param offset [unsigned int]
|
1214
|
+
# @return [void]
|
1215
|
+
[:rlUpdateShaderBuffer, :rlUpdateShaderBuffer, [:uint, :pointer, :uint, :uint], :void],
|
1216
|
+
|
1217
|
+
# @!method rlBindShaderBuffer(id, index)
|
1218
|
+
# rlBindShaderBuffer : Bind SSBO buffer
|
1219
|
+
# @param id [unsigned int]
|
1220
|
+
# @param index [unsigned int]
|
1221
|
+
# @return [void]
|
1222
|
+
[:rlBindShaderBuffer, :rlBindShaderBuffer, [:uint, :uint], :void],
|
1223
|
+
|
1224
|
+
# @!method rlReadShaderBuffer(id, dest, count, offset)
|
1225
|
+
# rlReadShaderBuffer : Read SSBO buffer data (GPU->CPU)
|
1226
|
+
# @param id [unsigned int]
|
1227
|
+
# @param dest [void *]
|
1228
|
+
# @param count [unsigned int]
|
1229
|
+
# @param offset [unsigned int]
|
1230
|
+
# @return [void]
|
1231
|
+
[:rlReadShaderBuffer, :rlReadShaderBuffer, [:uint, :pointer, :uint, :uint], :void],
|
1232
|
+
|
1233
|
+
# @!method rlCopyShaderBuffer(destId, srcId, destOffset, srcOffset, count)
|
1234
|
+
# rlCopyShaderBuffer : Copy SSBO data between buffers
|
1235
|
+
# @param destId [unsigned int]
|
1236
|
+
# @param srcId [unsigned int]
|
1237
|
+
# @param destOffset [unsigned int]
|
1238
|
+
# @param srcOffset [unsigned int]
|
1239
|
+
# @param count [unsigned int]
|
1240
|
+
# @return [void]
|
1241
|
+
[:rlCopyShaderBuffer, :rlCopyShaderBuffer, [:uint, :uint, :uint, :uint, :uint], :void],
|
1242
|
+
|
1243
|
+
# @!method rlGetShaderBufferSize(id)
|
1244
|
+
# rlGetShaderBufferSize : Get SSBO buffer size
|
1245
|
+
# @param id [unsigned int]
|
1246
|
+
# @return [unsigned int]
|
1247
|
+
[:rlGetShaderBufferSize, :rlGetShaderBufferSize, [:uint], :uint],
|
1248
|
+
|
1249
|
+
# @!method rlBindImageTexture(id, index, format, readonly)
|
1250
|
+
# rlBindImageTexture : Bind image texture
|
1251
|
+
# @param id [unsigned int]
|
1252
|
+
# @param index [unsigned int]
|
1253
|
+
# @param format [int]
|
1254
|
+
# @param readonly [bool]
|
1255
|
+
# @return [void]
|
1256
|
+
[:rlBindImageTexture, :rlBindImageTexture, [:uint, :uint, :int, :bool], :void],
|
1257
|
+
|
1258
|
+
# @!method rlGetMatrixModelview()
|
1259
|
+
# rlGetMatrixModelview : Get internal modelview matrix
|
1260
|
+
# @return [Matrix]
|
1261
|
+
[:rlGetMatrixModelview, :rlGetMatrixModelview, [], Matrix.by_value],
|
1262
|
+
|
1263
|
+
# @!method rlGetMatrixProjection()
|
1264
|
+
# rlGetMatrixProjection : Get internal projection matrix
|
1265
|
+
# @return [Matrix]
|
1266
|
+
[:rlGetMatrixProjection, :rlGetMatrixProjection, [], Matrix.by_value],
|
1267
|
+
|
1268
|
+
# @!method rlGetMatrixTransform()
|
1269
|
+
# rlGetMatrixTransform : Get internal accumulated transform matrix
|
1270
|
+
# @return [Matrix]
|
1271
|
+
[:rlGetMatrixTransform, :rlGetMatrixTransform, [], Matrix.by_value],
|
1272
|
+
|
1273
|
+
# @!method rlGetMatrixProjectionStereo(eye)
|
1274
|
+
# rlGetMatrixProjectionStereo : Get internal projection matrix for stereo render (selected eye)
|
1275
|
+
# @param eye [int]
|
1276
|
+
# @return [Matrix]
|
1277
|
+
[:rlGetMatrixProjectionStereo, :rlGetMatrixProjectionStereo, [:int], Matrix.by_value],
|
1278
|
+
|
1279
|
+
# @!method rlGetMatrixViewOffsetStereo(eye)
|
1280
|
+
# rlGetMatrixViewOffsetStereo : Get internal view offset matrix for stereo render (selected eye)
|
1281
|
+
# @param eye [int]
|
1282
|
+
# @return [Matrix]
|
1283
|
+
[:rlGetMatrixViewOffsetStereo, :rlGetMatrixViewOffsetStereo, [:int], Matrix.by_value],
|
1284
|
+
|
1285
|
+
# @!method rlSetMatrixProjection(proj)
|
1286
|
+
# rlSetMatrixProjection : Set a custom projection matrix (replaces internal projection matrix)
|
1287
|
+
# @param proj [Matrix]
|
1288
|
+
# @return [void]
|
1289
|
+
[:rlSetMatrixProjection, :rlSetMatrixProjection, [Matrix.by_value], :void],
|
1290
|
+
|
1291
|
+
# @!method rlSetMatrixModelview(view)
|
1292
|
+
# rlSetMatrixModelview : Set a custom modelview matrix (replaces internal modelview matrix)
|
1293
|
+
# @param view [Matrix]
|
1294
|
+
# @return [void]
|
1295
|
+
[:rlSetMatrixModelview, :rlSetMatrixModelview, [Matrix.by_value], :void],
|
1296
|
+
|
1297
|
+
# @!method rlSetMatrixProjectionStereo(right, left)
|
1298
|
+
# rlSetMatrixProjectionStereo : Set eyes projection matrices for stereo rendering
|
1299
|
+
# @param right [Matrix]
|
1300
|
+
# @param left [Matrix]
|
1301
|
+
# @return [void]
|
1302
|
+
[:rlSetMatrixProjectionStereo, :rlSetMatrixProjectionStereo, [Matrix.by_value, Matrix.by_value], :void],
|
1303
|
+
|
1304
|
+
# @!method rlSetMatrixViewOffsetStereo(right, left)
|
1305
|
+
# rlSetMatrixViewOffsetStereo : Set eyes view offsets matrices for stereo rendering
|
1306
|
+
# @param right [Matrix]
|
1307
|
+
# @param left [Matrix]
|
1308
|
+
# @return [void]
|
1309
|
+
[:rlSetMatrixViewOffsetStereo, :rlSetMatrixViewOffsetStereo, [Matrix.by_value, Matrix.by_value], :void],
|
1310
|
+
|
1311
|
+
# @!method rlLoadDrawCube()
|
1312
|
+
# rlLoadDrawCube : Load and draw a cube
|
1313
|
+
# @return [void]
|
1314
|
+
[:rlLoadDrawCube, :rlLoadDrawCube, [], :void],
|
1315
|
+
|
1316
|
+
# @!method rlLoadDrawQuad()
|
1317
|
+
# rlLoadDrawQuad : Load and draw a quad
|
1318
|
+
# @return [void]
|
1319
|
+
[:rlLoadDrawQuad, :rlLoadDrawQuad, [], :void],
|
1320
|
+
]
|
1321
|
+
entries.each do |entry|
|
1322
|
+
attach_function entry[0], entry[1], entry[2], entry[3]
|
1323
|
+
rescue FFI::NotFoundError => e
|
1324
|
+
warn "[Warning] Failed to import #{entry[0]} (#{e})."
|
1325
|
+
end
|
1326
|
+
end
|
1327
|
+
end
|