raylib-bindings 0.5.2 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
data/lib/rlgl.rb CHANGED
@@ -87,6 +87,7 @@ module Raylib
87
87
  RL_OPENGL_33 = 3 # OpenGL 3.3 (GLSL 330)
88
88
  RL_OPENGL_43 = 4 # OpenGL 4.3 (using GLSL 330)
89
89
  RL_OPENGL_ES_20 = 5 # OpenGL ES 2.0 (GLSL 100)
90
+ RL_OPENGL_ES_30 = 6 # OpenGL ES 3.0 (GLSL 300 es)
90
91
 
91
92
  # enum rlTraceLogLevel
92
93
  # Trace log level
@@ -312,826 +313,971 @@ module Raylib
312
313
  def self.setup_rlgl_symbols
313
314
  entries = [
314
315
 
315
- # rlMatrixMode : Choose the current matrix to be transformed
316
- # @param mode [int]
317
- # @return [void]
316
+ # @!method rlMatrixMode(mode)
317
+ # rlMatrixMode : Choose the current matrix to be transformed
318
+ # @param mode [int]
319
+ # @return [void]
318
320
  [:rlMatrixMode, :rlMatrixMode, [:int], :void],
319
321
 
320
- # rlPushMatrix : Push the current matrix to stack
321
- # @return [void]
322
+ # @!method rlPushMatrix()
323
+ # rlPushMatrix : Push the current matrix to stack
324
+ # @return [void]
322
325
  [:rlPushMatrix, :rlPushMatrix, [], :void],
323
326
 
324
- # rlPopMatrix : Pop latest inserted matrix from stack
325
- # @return [void]
327
+ # @!method rlPopMatrix()
328
+ # rlPopMatrix : Pop latest inserted matrix from stack
329
+ # @return [void]
326
330
  [:rlPopMatrix, :rlPopMatrix, [], :void],
327
331
 
328
- # rlLoadIdentity : Reset current matrix to identity matrix
329
- # @return [void]
332
+ # @!method rlLoadIdentity()
333
+ # rlLoadIdentity : Reset current matrix to identity matrix
334
+ # @return [void]
330
335
  [:rlLoadIdentity, :rlLoadIdentity, [], :void],
331
336
 
332
- # rlTranslatef : Multiply the current matrix by a translation matrix
333
- # @param x [float]
334
- # @param y [float]
335
- # @param z [float]
336
- # @return [void]
337
+ # @!method rlTranslatef(x, y, z)
338
+ # rlTranslatef : Multiply the current matrix by a translation matrix
339
+ # @param x [float]
340
+ # @param y [float]
341
+ # @param z [float]
342
+ # @return [void]
337
343
  [:rlTranslatef, :rlTranslatef, [:float, :float, :float], :void],
338
344
 
339
- # rlRotatef : Multiply the current matrix by a rotation matrix
340
- # @param angle [float]
341
- # @param x [float]
342
- # @param y [float]
343
- # @param z [float]
344
- # @return [void]
345
+ # @!method rlRotatef(angle, x, y, z)
346
+ # rlRotatef : Multiply the current matrix by a rotation matrix
347
+ # @param angle [float]
348
+ # @param x [float]
349
+ # @param y [float]
350
+ # @param z [float]
351
+ # @return [void]
345
352
  [:rlRotatef, :rlRotatef, [:float, :float, :float, :float], :void],
346
353
 
347
- # rlScalef : Multiply the current matrix by a scaling matrix
348
- # @param x [float]
349
- # @param y [float]
350
- # @param z [float]
351
- # @return [void]
354
+ # @!method rlScalef(x, y, z)
355
+ # rlScalef : Multiply the current matrix by a scaling matrix
356
+ # @param x [float]
357
+ # @param y [float]
358
+ # @param z [float]
359
+ # @return [void]
352
360
  [:rlScalef, :rlScalef, [:float, :float, :float], :void],
353
361
 
354
- # rlMultMatrixf : Multiply the current matrix by another matrix
355
- # @param matf [const float *]
356
- # @return [void]
362
+ # @!method rlMultMatrixf(matf)
363
+ # rlMultMatrixf : Multiply the current matrix by another matrix
364
+ # @param matf [const float *]
365
+ # @return [void]
357
366
  [:rlMultMatrixf, :rlMultMatrixf, [:pointer], :void],
358
367
 
359
- # rlFrustum
360
- # @param left [double]
361
- # @param right [double]
362
- # @param bottom [double]
363
- # @param top [double]
364
- # @param znear [double]
365
- # @param zfar [double]
366
- # @return [void]
368
+ # @!method rlFrustum(left, right, bottom, top, znear, zfar)
369
+ # rlFrustum
370
+ # @param left [double]
371
+ # @param right [double]
372
+ # @param bottom [double]
373
+ # @param top [double]
374
+ # @param znear [double]
375
+ # @param zfar [double]
376
+ # @return [void]
367
377
  [:rlFrustum, :rlFrustum, [:double, :double, :double, :double, :double, :double], :void],
368
378
 
369
- # rlOrtho
370
- # @param left [double]
371
- # @param right [double]
372
- # @param bottom [double]
373
- # @param top [double]
374
- # @param znear [double]
375
- # @param zfar [double]
376
- # @return [void]
379
+ # @!method rlOrtho(left, right, bottom, top, znear, zfar)
380
+ # rlOrtho
381
+ # @param left [double]
382
+ # @param right [double]
383
+ # @param bottom [double]
384
+ # @param top [double]
385
+ # @param znear [double]
386
+ # @param zfar [double]
387
+ # @return [void]
377
388
  [:rlOrtho, :rlOrtho, [:double, :double, :double, :double, :double, :double], :void],
378
389
 
379
- # rlViewport : Set the viewport area
380
- # @param x [int]
381
- # @param y [int]
382
- # @param width [int]
383
- # @param height [int]
384
- # @return [void]
390
+ # @!method rlViewport(x, y, width, height)
391
+ # rlViewport : Set the viewport area
392
+ # @param x [int]
393
+ # @param y [int]
394
+ # @param width [int]
395
+ # @param height [int]
396
+ # @return [void]
385
397
  [:rlViewport, :rlViewport, [:int, :int, :int, :int], :void],
386
398
 
387
- # rlBegin : Initialize drawing mode (how to organize vertex)
388
- # @param mode [int]
389
- # @return [void]
399
+ # @!method rlBegin(mode)
400
+ # rlBegin : Initialize drawing mode (how to organize vertex)
401
+ # @param mode [int]
402
+ # @return [void]
390
403
  [:rlBegin, :rlBegin, [:int], :void],
391
404
 
392
- # rlEnd : Finish vertex providing
393
- # @return [void]
405
+ # @!method rlEnd()
406
+ # rlEnd : Finish vertex providing
407
+ # @return [void]
394
408
  [:rlEnd, :rlEnd, [], :void],
395
409
 
396
- # rlVertex2i : Define one vertex (position) - 2 int
397
- # @param x [int]
398
- # @param y [int]
399
- # @return [void]
410
+ # @!method rlVertex2i(x, y)
411
+ # rlVertex2i : Define one vertex (position) - 2 int
412
+ # @param x [int]
413
+ # @param y [int]
414
+ # @return [void]
400
415
  [:rlVertex2i, :rlVertex2i, [:int, :int], :void],
401
416
 
402
- # rlVertex2f : Define one vertex (position) - 2 float
403
- # @param x [float]
404
- # @param y [float]
405
- # @return [void]
417
+ # @!method rlVertex2f(x, y)
418
+ # rlVertex2f : Define one vertex (position) - 2 float
419
+ # @param x [float]
420
+ # @param y [float]
421
+ # @return [void]
406
422
  [:rlVertex2f, :rlVertex2f, [:float, :float], :void],
407
423
 
408
- # rlVertex3f : Define one vertex (position) - 3 float
409
- # @param x [float]
410
- # @param y [float]
411
- # @param z [float]
412
- # @return [void]
424
+ # @!method rlVertex3f(x, y, z)
425
+ # rlVertex3f : Define one vertex (position) - 3 float
426
+ # @param x [float]
427
+ # @param y [float]
428
+ # @param z [float]
429
+ # @return [void]
413
430
  [:rlVertex3f, :rlVertex3f, [:float, :float, :float], :void],
414
431
 
415
- # rlTexCoord2f : Define one vertex (texture coordinate) - 2 float
416
- # @param x [float]
417
- # @param y [float]
418
- # @return [void]
432
+ # @!method rlTexCoord2f(x, y)
433
+ # rlTexCoord2f : Define one vertex (texture coordinate) - 2 float
434
+ # @param x [float]
435
+ # @param y [float]
436
+ # @return [void]
419
437
  [:rlTexCoord2f, :rlTexCoord2f, [:float, :float], :void],
420
438
 
421
- # rlNormal3f : Define one vertex (normal) - 3 float
422
- # @param x [float]
423
- # @param y [float]
424
- # @param z [float]
425
- # @return [void]
439
+ # @!method rlNormal3f(x, y, z)
440
+ # rlNormal3f : Define one vertex (normal) - 3 float
441
+ # @param x [float]
442
+ # @param y [float]
443
+ # @param z [float]
444
+ # @return [void]
426
445
  [:rlNormal3f, :rlNormal3f, [:float, :float, :float], :void],
427
446
 
428
- # rlColor4ub : Define one vertex (color) - 4 byte
429
- # @param r [unsigned char]
430
- # @param g [unsigned char]
431
- # @param b [unsigned char]
432
- # @param a [unsigned char]
433
- # @return [void]
447
+ # @!method rlColor4ub(r, g, b, a)
448
+ # rlColor4ub : Define one vertex (color) - 4 byte
449
+ # @param r [unsigned char]
450
+ # @param g [unsigned char]
451
+ # @param b [unsigned char]
452
+ # @param a [unsigned char]
453
+ # @return [void]
434
454
  [:rlColor4ub, :rlColor4ub, [:uchar, :uchar, :uchar, :uchar], :void],
435
455
 
436
- # rlColor3f : Define one vertex (color) - 3 float
437
- # @param x [float]
438
- # @param y [float]
439
- # @param z [float]
440
- # @return [void]
456
+ # @!method rlColor3f(x, y, z)
457
+ # rlColor3f : Define one vertex (color) - 3 float
458
+ # @param x [float]
459
+ # @param y [float]
460
+ # @param z [float]
461
+ # @return [void]
441
462
  [:rlColor3f, :rlColor3f, [:float, :float, :float], :void],
442
463
 
443
- # rlColor4f : Define one vertex (color) - 4 float
444
- # @param x [float]
445
- # @param y [float]
446
- # @param z [float]
447
- # @param w [float]
448
- # @return [void]
464
+ # @!method rlColor4f(x, y, z, w)
465
+ # rlColor4f : Define one vertex (color) - 4 float
466
+ # @param x [float]
467
+ # @param y [float]
468
+ # @param z [float]
469
+ # @param w [float]
470
+ # @return [void]
449
471
  [:rlColor4f, :rlColor4f, [:float, :float, :float, :float], :void],
450
472
 
451
- # rlEnableVertexArray : Enable vertex array (VAO, if supported)
452
- # @param vaoId [unsigned int]
453
- # @return [bool]
473
+ # @!method rlEnableVertexArray(vaoId)
474
+ # rlEnableVertexArray : Enable vertex array (VAO, if supported)
475
+ # @param vaoId [unsigned int]
476
+ # @return [bool]
454
477
  [:rlEnableVertexArray, :rlEnableVertexArray, [:uint], :bool],
455
478
 
456
- # rlDisableVertexArray : Disable vertex array (VAO, if supported)
457
- # @return [void]
479
+ # @!method rlDisableVertexArray()
480
+ # rlDisableVertexArray : Disable vertex array (VAO, if supported)
481
+ # @return [void]
458
482
  [:rlDisableVertexArray, :rlDisableVertexArray, [], :void],
459
483
 
460
- # rlEnableVertexBuffer : Enable vertex buffer (VBO)
461
- # @param id [unsigned int]
462
- # @return [void]
484
+ # @!method rlEnableVertexBuffer(id)
485
+ # rlEnableVertexBuffer : Enable vertex buffer (VBO)
486
+ # @param id [unsigned int]
487
+ # @return [void]
463
488
  [:rlEnableVertexBuffer, :rlEnableVertexBuffer, [:uint], :void],
464
489
 
465
- # rlDisableVertexBuffer : Disable vertex buffer (VBO)
466
- # @return [void]
490
+ # @!method rlDisableVertexBuffer()
491
+ # rlDisableVertexBuffer : Disable vertex buffer (VBO)
492
+ # @return [void]
467
493
  [:rlDisableVertexBuffer, :rlDisableVertexBuffer, [], :void],
468
494
 
469
- # rlEnableVertexBufferElement : Enable vertex buffer element (VBO element)
470
- # @param id [unsigned int]
471
- # @return [void]
495
+ # @!method rlEnableVertexBufferElement(id)
496
+ # rlEnableVertexBufferElement : Enable vertex buffer element (VBO element)
497
+ # @param id [unsigned int]
498
+ # @return [void]
472
499
  [:rlEnableVertexBufferElement, :rlEnableVertexBufferElement, [:uint], :void],
473
500
 
474
- # rlDisableVertexBufferElement : Disable vertex buffer element (VBO element)
475
- # @return [void]
501
+ # @!method rlDisableVertexBufferElement()
502
+ # rlDisableVertexBufferElement : Disable vertex buffer element (VBO element)
503
+ # @return [void]
476
504
  [:rlDisableVertexBufferElement, :rlDisableVertexBufferElement, [], :void],
477
505
 
478
- # rlEnableVertexAttribute : Enable vertex attribute index
479
- # @param index [unsigned int]
480
- # @return [void]
506
+ # @!method rlEnableVertexAttribute(index)
507
+ # rlEnableVertexAttribute : Enable vertex attribute index
508
+ # @param index [unsigned int]
509
+ # @return [void]
481
510
  [:rlEnableVertexAttribute, :rlEnableVertexAttribute, [:uint], :void],
482
511
 
483
- # rlDisableVertexAttribute : Disable vertex attribute index
484
- # @param index [unsigned int]
485
- # @return [void]
512
+ # @!method rlDisableVertexAttribute(index)
513
+ # rlDisableVertexAttribute : Disable vertex attribute index
514
+ # @param index [unsigned int]
515
+ # @return [void]
486
516
  [:rlDisableVertexAttribute, :rlDisableVertexAttribute, [:uint], :void],
487
517
 
488
- # rlActiveTextureSlot : Select and active a texture slot
489
- # @param slot [int]
490
- # @return [void]
518
+ # @!method rlActiveTextureSlot(slot)
519
+ # rlActiveTextureSlot : Select and active a texture slot
520
+ # @param slot [int]
521
+ # @return [void]
491
522
  [:rlActiveTextureSlot, :rlActiveTextureSlot, [:int], :void],
492
523
 
493
- # rlEnableTexture : Enable texture
494
- # @param id [unsigned int]
495
- # @return [void]
524
+ # @!method rlEnableTexture(id)
525
+ # rlEnableTexture : Enable texture
526
+ # @param id [unsigned int]
527
+ # @return [void]
496
528
  [:rlEnableTexture, :rlEnableTexture, [:uint], :void],
497
529
 
498
- # rlDisableTexture : Disable texture
499
- # @return [void]
530
+ # @!method rlDisableTexture()
531
+ # rlDisableTexture : Disable texture
532
+ # @return [void]
500
533
  [:rlDisableTexture, :rlDisableTexture, [], :void],
501
534
 
502
- # rlEnableTextureCubemap : Enable texture cubemap
503
- # @param id [unsigned int]
504
- # @return [void]
535
+ # @!method rlEnableTextureCubemap(id)
536
+ # rlEnableTextureCubemap : Enable texture cubemap
537
+ # @param id [unsigned int]
538
+ # @return [void]
505
539
  [:rlEnableTextureCubemap, :rlEnableTextureCubemap, [:uint], :void],
506
540
 
507
- # rlDisableTextureCubemap : Disable texture cubemap
508
- # @return [void]
541
+ # @!method rlDisableTextureCubemap()
542
+ # rlDisableTextureCubemap : Disable texture cubemap
543
+ # @return [void]
509
544
  [:rlDisableTextureCubemap, :rlDisableTextureCubemap, [], :void],
510
545
 
511
- # rlTextureParameters : Set texture parameters (filter, wrap)
512
- # @param id [unsigned int]
513
- # @param param [int]
514
- # @param value [int]
515
- # @return [void]
546
+ # @!method rlTextureParameters(id, param, value)
547
+ # rlTextureParameters : Set texture parameters (filter, wrap)
548
+ # @param id [unsigned int]
549
+ # @param param [int]
550
+ # @param value [int]
551
+ # @return [void]
516
552
  [:rlTextureParameters, :rlTextureParameters, [:uint, :int, :int], :void],
517
553
 
518
- # rlCubemapParameters : Set cubemap parameters (filter, wrap)
519
- # @param id [unsigned int]
520
- # @param param [int]
521
- # @param value [int]
522
- # @return [void]
554
+ # @!method rlCubemapParameters(id, param, value)
555
+ # rlCubemapParameters : Set cubemap parameters (filter, wrap)
556
+ # @param id [unsigned int]
557
+ # @param param [int]
558
+ # @param value [int]
559
+ # @return [void]
523
560
  [:rlCubemapParameters, :rlCubemapParameters, [:uint, :int, :int], :void],
524
561
 
525
- # rlEnableShader : Enable shader program
526
- # @param id [unsigned int]
527
- # @return [void]
562
+ # @!method rlEnableShader(id)
563
+ # rlEnableShader : Enable shader program
564
+ # @param id [unsigned int]
565
+ # @return [void]
528
566
  [:rlEnableShader, :rlEnableShader, [:uint], :void],
529
567
 
530
- # rlDisableShader : Disable shader program
531
- # @return [void]
568
+ # @!method rlDisableShader()
569
+ # rlDisableShader : Disable shader program
570
+ # @return [void]
532
571
  [:rlDisableShader, :rlDisableShader, [], :void],
533
572
 
534
- # rlEnableFramebuffer : Enable render texture (fbo)
535
- # @param id [unsigned int]
536
- # @return [void]
573
+ # @!method rlEnableFramebuffer(id)
574
+ # rlEnableFramebuffer : Enable render texture (fbo)
575
+ # @param id [unsigned int]
576
+ # @return [void]
537
577
  [:rlEnableFramebuffer, :rlEnableFramebuffer, [:uint], :void],
538
578
 
539
- # rlDisableFramebuffer : Disable render texture (fbo), return to default framebuffer
540
- # @return [void]
579
+ # @!method rlDisableFramebuffer()
580
+ # rlDisableFramebuffer : Disable render texture (fbo), return to default framebuffer
581
+ # @return [void]
541
582
  [:rlDisableFramebuffer, :rlDisableFramebuffer, [], :void],
542
583
 
543
- # rlActiveDrawBuffers : Activate multiple draw color buffers
544
- # @param count [int]
545
- # @return [void]
584
+ # @!method rlActiveDrawBuffers(count)
585
+ # rlActiveDrawBuffers : Activate multiple draw color buffers
586
+ # @param count [int]
587
+ # @return [void]
546
588
  [:rlActiveDrawBuffers, :rlActiveDrawBuffers, [:int], :void],
547
589
 
548
- # rlEnableColorBlend : Enable color blending
549
- # @return [void]
590
+ # @!method rlEnableColorBlend()
591
+ # rlEnableColorBlend : Enable color blending
592
+ # @return [void]
550
593
  [:rlEnableColorBlend, :rlEnableColorBlend, [], :void],
551
594
 
552
- # rlDisableColorBlend : Disable color blending
553
- # @return [void]
595
+ # @!method rlDisableColorBlend()
596
+ # rlDisableColorBlend : Disable color blending
597
+ # @return [void]
554
598
  [:rlDisableColorBlend, :rlDisableColorBlend, [], :void],
555
599
 
556
- # rlEnableDepthTest : Enable depth test
557
- # @return [void]
600
+ # @!method rlEnableDepthTest()
601
+ # rlEnableDepthTest : Enable depth test
602
+ # @return [void]
558
603
  [:rlEnableDepthTest, :rlEnableDepthTest, [], :void],
559
604
 
560
- # rlDisableDepthTest : Disable depth test
561
- # @return [void]
605
+ # @!method rlDisableDepthTest()
606
+ # rlDisableDepthTest : Disable depth test
607
+ # @return [void]
562
608
  [:rlDisableDepthTest, :rlDisableDepthTest, [], :void],
563
609
 
564
- # rlEnableDepthMask : Enable depth write
565
- # @return [void]
610
+ # @!method rlEnableDepthMask()
611
+ # rlEnableDepthMask : Enable depth write
612
+ # @return [void]
566
613
  [:rlEnableDepthMask, :rlEnableDepthMask, [], :void],
567
614
 
568
- # rlDisableDepthMask : Disable depth write
569
- # @return [void]
615
+ # @!method rlDisableDepthMask()
616
+ # rlDisableDepthMask : Disable depth write
617
+ # @return [void]
570
618
  [:rlDisableDepthMask, :rlDisableDepthMask, [], :void],
571
619
 
572
- # rlEnableBackfaceCulling : Enable backface culling
573
- # @return [void]
620
+ # @!method rlEnableBackfaceCulling()
621
+ # rlEnableBackfaceCulling : Enable backface culling
622
+ # @return [void]
574
623
  [:rlEnableBackfaceCulling, :rlEnableBackfaceCulling, [], :void],
575
624
 
576
- # rlDisableBackfaceCulling : Disable backface culling
577
- # @return [void]
625
+ # @!method rlDisableBackfaceCulling()
626
+ # rlDisableBackfaceCulling : Disable backface culling
627
+ # @return [void]
578
628
  [:rlDisableBackfaceCulling, :rlDisableBackfaceCulling, [], :void],
579
629
 
580
- # rlSetCullFace : Set face culling mode
581
- # @param mode [int]
582
- # @return [void]
630
+ # @!method rlSetCullFace(mode)
631
+ # rlSetCullFace : Set face culling mode
632
+ # @param mode [int]
633
+ # @return [void]
583
634
  [:rlSetCullFace, :rlSetCullFace, [:int], :void],
584
635
 
585
- # rlEnableScissorTest : Enable scissor test
586
- # @return [void]
636
+ # @!method rlEnableScissorTest()
637
+ # rlEnableScissorTest : Enable scissor test
638
+ # @return [void]
587
639
  [:rlEnableScissorTest, :rlEnableScissorTest, [], :void],
588
640
 
589
- # rlDisableScissorTest : Disable scissor test
590
- # @return [void]
641
+ # @!method rlDisableScissorTest()
642
+ # rlDisableScissorTest : Disable scissor test
643
+ # @return [void]
591
644
  [:rlDisableScissorTest, :rlDisableScissorTest, [], :void],
592
645
 
593
- # rlScissor : Scissor test
594
- # @param x [int]
595
- # @param y [int]
596
- # @param width [int]
597
- # @param height [int]
598
- # @return [void]
646
+ # @!method rlScissor(x, y, width, height)
647
+ # rlScissor : Scissor test
648
+ # @param x [int]
649
+ # @param y [int]
650
+ # @param width [int]
651
+ # @param height [int]
652
+ # @return [void]
599
653
  [:rlScissor, :rlScissor, [:int, :int, :int, :int], :void],
600
654
 
601
- # rlEnableWireMode : Enable wire mode
602
- # @return [void]
655
+ # @!method rlEnableWireMode()
656
+ # rlEnableWireMode : Enable wire mode
657
+ # @return [void]
603
658
  [:rlEnableWireMode, :rlEnableWireMode, [], :void],
604
659
 
605
- # rlDisableWireMode : Disable wire mode
606
- # @return [void]
660
+ # @!method rlDisableWireMode()
661
+ # rlDisableWireMode : Disable wire mode
662
+ # @return [void]
607
663
  [:rlDisableWireMode, :rlDisableWireMode, [], :void],
608
664
 
609
- # rlSetLineWidth : Set the line drawing width
610
- # @param width [float]
611
- # @return [void]
665
+ # @!method rlSetLineWidth(width)
666
+ # rlSetLineWidth : Set the line drawing width
667
+ # @param width [float]
668
+ # @return [void]
612
669
  [:rlSetLineWidth, :rlSetLineWidth, [:float], :void],
613
670
 
614
- # rlGetLineWidth : Get the line drawing width
615
- # @return [float]
671
+ # @!method rlGetLineWidth()
672
+ # rlGetLineWidth : Get the line drawing width
673
+ # @return [float]
616
674
  [:rlGetLineWidth, :rlGetLineWidth, [], :float],
617
675
 
618
- # rlEnableSmoothLines : Enable line aliasing
619
- # @return [void]
676
+ # @!method rlEnableSmoothLines()
677
+ # rlEnableSmoothLines : Enable line aliasing
678
+ # @return [void]
620
679
  [:rlEnableSmoothLines, :rlEnableSmoothLines, [], :void],
621
680
 
622
- # rlDisableSmoothLines : Disable line aliasing
623
- # @return [void]
681
+ # @!method rlDisableSmoothLines()
682
+ # rlDisableSmoothLines : Disable line aliasing
683
+ # @return [void]
624
684
  [:rlDisableSmoothLines, :rlDisableSmoothLines, [], :void],
625
685
 
626
- # rlEnableStereoRender : Enable stereo rendering
627
- # @return [void]
686
+ # @!method rlEnableStereoRender()
687
+ # rlEnableStereoRender : Enable stereo rendering
688
+ # @return [void]
628
689
  [:rlEnableStereoRender, :rlEnableStereoRender, [], :void],
629
690
 
630
- # rlDisableStereoRender : Disable stereo rendering
631
- # @return [void]
691
+ # @!method rlDisableStereoRender()
692
+ # rlDisableStereoRender : Disable stereo rendering
693
+ # @return [void]
632
694
  [:rlDisableStereoRender, :rlDisableStereoRender, [], :void],
633
695
 
634
- # rlIsStereoRenderEnabled : Check if stereo render is enabled
635
- # @return [bool]
696
+ # @!method rlIsStereoRenderEnabled()
697
+ # rlIsStereoRenderEnabled : Check if stereo render is enabled
698
+ # @return [bool]
636
699
  [:rlIsStereoRenderEnabled, :rlIsStereoRenderEnabled, [], :bool],
637
700
 
638
- # rlClearColor : Clear color buffer with color
639
- # @param r [unsigned char]
640
- # @param g [unsigned char]
641
- # @param b [unsigned char]
642
- # @param a [unsigned char]
643
- # @return [void]
701
+ # @!method rlClearColor(r, g, b, a)
702
+ # rlClearColor : Clear color buffer with color
703
+ # @param r [unsigned char]
704
+ # @param g [unsigned char]
705
+ # @param b [unsigned char]
706
+ # @param a [unsigned char]
707
+ # @return [void]
644
708
  [:rlClearColor, :rlClearColor, [:uchar, :uchar, :uchar, :uchar], :void],
645
709
 
646
- # rlClearScreenBuffers : Clear used screen buffers (color and depth)
647
- # @return [void]
710
+ # @!method rlClearScreenBuffers()
711
+ # rlClearScreenBuffers : Clear used screen buffers (color and depth)
712
+ # @return [void]
648
713
  [:rlClearScreenBuffers, :rlClearScreenBuffers, [], :void],
649
714
 
650
- # rlCheckErrors : Check and log OpenGL error codes
651
- # @return [void]
715
+ # @!method rlCheckErrors()
716
+ # rlCheckErrors : Check and log OpenGL error codes
717
+ # @return [void]
652
718
  [:rlCheckErrors, :rlCheckErrors, [], :void],
653
719
 
654
- # rlSetBlendMode : Set blending mode
655
- # @param mode [int]
656
- # @return [void]
720
+ # @!method rlSetBlendMode(mode)
721
+ # rlSetBlendMode : Set blending mode
722
+ # @param mode [int]
723
+ # @return [void]
657
724
  [:rlSetBlendMode, :rlSetBlendMode, [:int], :void],
658
725
 
659
- # rlSetBlendFactors : Set blending mode factor and equation (using OpenGL factors)
660
- # @param glSrcFactor [int]
661
- # @param glDstFactor [int]
662
- # @param glEquation [int]
663
- # @return [void]
726
+ # @!method rlSetBlendFactors(glSrcFactor, glDstFactor, glEquation)
727
+ # rlSetBlendFactors : Set blending mode factor and equation (using OpenGL factors)
728
+ # @param glSrcFactor [int]
729
+ # @param glDstFactor [int]
730
+ # @param glEquation [int]
731
+ # @return [void]
664
732
  [:rlSetBlendFactors, :rlSetBlendFactors, [:int, :int, :int], :void],
665
733
 
666
- # rlSetBlendFactorsSeparate : Set blending mode factors and equations separately (using OpenGL factors)
667
- # @param glSrcRGB [int]
668
- # @param glDstRGB [int]
669
- # @param glSrcAlpha [int]
670
- # @param glDstAlpha [int]
671
- # @param glEqRGB [int]
672
- # @param glEqAlpha [int]
673
- # @return [void]
734
+ # @!method rlSetBlendFactorsSeparate(glSrcRGB, glDstRGB, glSrcAlpha, glDstAlpha, glEqRGB, glEqAlpha)
735
+ # rlSetBlendFactorsSeparate : Set blending mode factors and equations separately (using OpenGL factors)
736
+ # @param glSrcRGB [int]
737
+ # @param glDstRGB [int]
738
+ # @param glSrcAlpha [int]
739
+ # @param glDstAlpha [int]
740
+ # @param glEqRGB [int]
741
+ # @param glEqAlpha [int]
742
+ # @return [void]
674
743
  [:rlSetBlendFactorsSeparate, :rlSetBlendFactorsSeparate, [:int, :int, :int, :int, :int, :int], :void],
675
744
 
676
- # rlglInit : Initialize rlgl (buffers, shaders, textures, states)
677
- # @param width [int]
678
- # @param height [int]
679
- # @return [void]
745
+ # @!method rlglInit(width, height)
746
+ # rlglInit : Initialize rlgl (buffers, shaders, textures, states)
747
+ # @param width [int]
748
+ # @param height [int]
749
+ # @return [void]
680
750
  [:rlglInit, :rlglInit, [:int, :int], :void],
681
751
 
682
- # rlglClose : De-initialize rlgl (buffers, shaders, textures)
683
- # @return [void]
752
+ # @!method rlglClose()
753
+ # rlglClose : De-initialize rlgl (buffers, shaders, textures)
754
+ # @return [void]
684
755
  [:rlglClose, :rlglClose, [], :void],
685
756
 
686
- # rlLoadExtensions : Load OpenGL extensions (loader function required)
687
- # @param loader [void *]
688
- # @return [void]
757
+ # @!method rlLoadExtensions(loader)
758
+ # rlLoadExtensions : Load OpenGL extensions (loader function required)
759
+ # @param loader [void *]
760
+ # @return [void]
689
761
  [:rlLoadExtensions, :rlLoadExtensions, [:pointer], :void],
690
762
 
691
- # rlGetVersion : Get current OpenGL version
692
- # @return [int]
763
+ # @!method rlGetVersion()
764
+ # rlGetVersion : Get current OpenGL version
765
+ # @return [int]
693
766
  [:rlGetVersion, :rlGetVersion, [], :int],
694
767
 
695
- # rlSetFramebufferWidth : Set current framebuffer width
696
- # @param width [int]
697
- # @return [void]
768
+ # @!method rlSetFramebufferWidth(width)
769
+ # rlSetFramebufferWidth : Set current framebuffer width
770
+ # @param width [int]
771
+ # @return [void]
698
772
  [:rlSetFramebufferWidth, :rlSetFramebufferWidth, [:int], :void],
699
773
 
700
- # rlGetFramebufferWidth : Get default framebuffer width
701
- # @return [int]
774
+ # @!method rlGetFramebufferWidth()
775
+ # rlGetFramebufferWidth : Get default framebuffer width
776
+ # @return [int]
702
777
  [:rlGetFramebufferWidth, :rlGetFramebufferWidth, [], :int],
703
778
 
704
- # rlSetFramebufferHeight : Set current framebuffer height
705
- # @param height [int]
706
- # @return [void]
779
+ # @!method rlSetFramebufferHeight(height)
780
+ # rlSetFramebufferHeight : Set current framebuffer height
781
+ # @param height [int]
782
+ # @return [void]
707
783
  [:rlSetFramebufferHeight, :rlSetFramebufferHeight, [:int], :void],
708
784
 
709
- # rlGetFramebufferHeight : Get default framebuffer height
710
- # @return [int]
785
+ # @!method rlGetFramebufferHeight()
786
+ # rlGetFramebufferHeight : Get default framebuffer height
787
+ # @return [int]
711
788
  [:rlGetFramebufferHeight, :rlGetFramebufferHeight, [], :int],
712
789
 
713
- # rlGetTextureIdDefault : Get default texture id
714
- # @return [unsigned int]
790
+ # @!method rlGetTextureIdDefault()
791
+ # rlGetTextureIdDefault : Get default texture id
792
+ # @return [unsigned int]
715
793
  [:rlGetTextureIdDefault, :rlGetTextureIdDefault, [], :uint],
716
794
 
717
- # rlGetShaderIdDefault : Get default shader id
718
- # @return [unsigned int]
795
+ # @!method rlGetShaderIdDefault()
796
+ # rlGetShaderIdDefault : Get default shader id
797
+ # @return [unsigned int]
719
798
  [:rlGetShaderIdDefault, :rlGetShaderIdDefault, [], :uint],
720
799
 
721
- # rlGetShaderLocsDefault : Get default shader locations
722
- # @return [int *]
800
+ # @!method rlGetShaderLocsDefault()
801
+ # rlGetShaderLocsDefault : Get default shader locations
802
+ # @return [int *]
723
803
  [:rlGetShaderLocsDefault, :rlGetShaderLocsDefault, [], :pointer],
724
804
 
725
- # rlLoadRenderBatch : Load a render batch system
726
- # @param numBuffers [int]
727
- # @param bufferElements [int]
728
- # @return [rlRenderBatch]
805
+ # @!method rlLoadRenderBatch(numBuffers, bufferElements)
806
+ # rlLoadRenderBatch : Load a render batch system
807
+ # @param numBuffers [int]
808
+ # @param bufferElements [int]
809
+ # @return [rlRenderBatch]
729
810
  [:rlLoadRenderBatch, :rlLoadRenderBatch, [:int, :int], RlRenderBatch.by_value],
730
811
 
731
- # rlUnloadRenderBatch : Unload render batch system
732
- # @param batch [rlRenderBatch]
733
- # @return [void]
812
+ # @!method rlUnloadRenderBatch(batch)
813
+ # rlUnloadRenderBatch : Unload render batch system
814
+ # @param batch [rlRenderBatch]
815
+ # @return [void]
734
816
  [:rlUnloadRenderBatch, :rlUnloadRenderBatch, [RlRenderBatch.by_value], :void],
735
817
 
736
- # rlDrawRenderBatch : Draw render batch data (Update->Draw->Reset)
737
- # @param batch [rlRenderBatch *]
738
- # @return [void]
818
+ # @!method rlDrawRenderBatch(batch)
819
+ # rlDrawRenderBatch : Draw render batch data (Update->Draw->Reset)
820
+ # @param batch [rlRenderBatch *]
821
+ # @return [void]
739
822
  [:rlDrawRenderBatch, :rlDrawRenderBatch, [:pointer], :void],
740
823
 
741
- # rlSetRenderBatchActive : Set the active render batch for rlgl (NULL for default internal)
742
- # @param batch [rlRenderBatch *]
743
- # @return [void]
824
+ # @!method rlSetRenderBatchActive(batch)
825
+ # rlSetRenderBatchActive : Set the active render batch for rlgl (NULL for default internal)
826
+ # @param batch [rlRenderBatch *]
827
+ # @return [void]
744
828
  [:rlSetRenderBatchActive, :rlSetRenderBatchActive, [:pointer], :void],
745
829
 
746
- # rlDrawRenderBatchActive : Update and draw internal render batch
747
- # @return [void]
830
+ # @!method rlDrawRenderBatchActive()
831
+ # rlDrawRenderBatchActive : Update and draw internal render batch
832
+ # @return [void]
748
833
  [:rlDrawRenderBatchActive, :rlDrawRenderBatchActive, [], :void],
749
834
 
750
- # rlCheckRenderBatchLimit : Check internal buffer overflow for a given number of vertex
751
- # @param vCount [int]
752
- # @return [bool]
835
+ # @!method rlCheckRenderBatchLimit(vCount)
836
+ # rlCheckRenderBatchLimit : Check internal buffer overflow for a given number of vertex
837
+ # @param vCount [int]
838
+ # @return [bool]
753
839
  [:rlCheckRenderBatchLimit, :rlCheckRenderBatchLimit, [:int], :bool],
754
840
 
755
- # rlSetTexture : Set current texture for render batch and check buffers limits
756
- # @param id [unsigned int]
757
- # @return [void]
841
+ # @!method rlSetTexture(id)
842
+ # rlSetTexture : Set current texture for render batch and check buffers limits
843
+ # @param id [unsigned int]
844
+ # @return [void]
758
845
  [:rlSetTexture, :rlSetTexture, [:uint], :void],
759
846
 
760
- # rlLoadVertexArray : Load vertex array (vao) if supported
761
- # @return [unsigned int]
847
+ # @!method rlLoadVertexArray()
848
+ # rlLoadVertexArray : Load vertex array (vao) if supported
849
+ # @return [unsigned int]
762
850
  [:rlLoadVertexArray, :rlLoadVertexArray, [], :uint],
763
851
 
764
- # rlLoadVertexBuffer : Load a vertex buffer attribute
765
- # @param buffer [const void *]
766
- # @param size [int]
767
- # @param dynamic [bool]
768
- # @return [unsigned int]
852
+ # @!method rlLoadVertexBuffer(buffer, size, dynamic)
853
+ # rlLoadVertexBuffer : Load a vertex buffer attribute
854
+ # @param buffer [const void *]
855
+ # @param size [int]
856
+ # @param dynamic [bool]
857
+ # @return [unsigned int]
769
858
  [:rlLoadVertexBuffer, :rlLoadVertexBuffer, [:pointer, :int, :bool], :uint],
770
859
 
771
- # rlLoadVertexBufferElement : Load a new attributes element buffer
772
- # @param buffer [const void *]
773
- # @param size [int]
774
- # @param dynamic [bool]
775
- # @return [unsigned int]
860
+ # @!method rlLoadVertexBufferElement(buffer, size, dynamic)
861
+ # rlLoadVertexBufferElement : Load a new attributes element buffer
862
+ # @param buffer [const void *]
863
+ # @param size [int]
864
+ # @param dynamic [bool]
865
+ # @return [unsigned int]
776
866
  [:rlLoadVertexBufferElement, :rlLoadVertexBufferElement, [:pointer, :int, :bool], :uint],
777
867
 
778
- # rlUpdateVertexBuffer : Update GPU buffer with new data
779
- # @param bufferId [unsigned int]
780
- # @param data [const void *]
781
- # @param dataSize [int]
782
- # @param offset [int]
783
- # @return [void]
868
+ # @!method rlUpdateVertexBuffer(bufferId, data, dataSize, offset)
869
+ # rlUpdateVertexBuffer : Update GPU buffer with new data
870
+ # @param bufferId [unsigned int]
871
+ # @param data [const void *]
872
+ # @param dataSize [int]
873
+ # @param offset [int]
874
+ # @return [void]
784
875
  [:rlUpdateVertexBuffer, :rlUpdateVertexBuffer, [:uint, :pointer, :int, :int], :void],
785
876
 
786
- # rlUpdateVertexBufferElements : Update vertex buffer elements with new data
787
- # @param id [unsigned int]
788
- # @param data [const void *]
789
- # @param dataSize [int]
790
- # @param offset [int]
791
- # @return [void]
877
+ # @!method rlUpdateVertexBufferElements(id, data, dataSize, offset)
878
+ # rlUpdateVertexBufferElements : Update vertex buffer elements with new data
879
+ # @param id [unsigned int]
880
+ # @param data [const void *]
881
+ # @param dataSize [int]
882
+ # @param offset [int]
883
+ # @return [void]
792
884
  [:rlUpdateVertexBufferElements, :rlUpdateVertexBufferElements, [:uint, :pointer, :int, :int], :void],
793
885
 
794
- # rlUnloadVertexArray
795
- # @param vaoId [unsigned int]
796
- # @return [void]
886
+ # @!method rlUnloadVertexArray(vaoId)
887
+ # rlUnloadVertexArray
888
+ # @param vaoId [unsigned int]
889
+ # @return [void]
797
890
  [:rlUnloadVertexArray, :rlUnloadVertexArray, [:uint], :void],
798
891
 
799
- # rlUnloadVertexBuffer
800
- # @param vboId [unsigned int]
801
- # @return [void]
892
+ # @!method rlUnloadVertexBuffer(vboId)
893
+ # rlUnloadVertexBuffer
894
+ # @param vboId [unsigned int]
895
+ # @return [void]
802
896
  [:rlUnloadVertexBuffer, :rlUnloadVertexBuffer, [:uint], :void],
803
897
 
804
- # rlSetVertexAttribute
805
- # @param index [unsigned int]
806
- # @param compSize [int]
807
- # @param type [int]
808
- # @param normalized [bool]
809
- # @param stride [int]
810
- # @param pointer [const void *]
811
- # @return [void]
898
+ # @!method rlSetVertexAttribute(index, compSize, type, normalized, stride, pointer)
899
+ # rlSetVertexAttribute
900
+ # @param index [unsigned int]
901
+ # @param compSize [int]
902
+ # @param type [int]
903
+ # @param normalized [bool]
904
+ # @param stride [int]
905
+ # @param pointer [const void *]
906
+ # @return [void]
812
907
  [:rlSetVertexAttribute, :rlSetVertexAttribute, [:uint, :int, :int, :bool, :int, :pointer], :void],
813
908
 
814
- # rlSetVertexAttributeDivisor
815
- # @param index [unsigned int]
816
- # @param divisor [int]
817
- # @return [void]
909
+ # @!method rlSetVertexAttributeDivisor(index, divisor)
910
+ # rlSetVertexAttributeDivisor
911
+ # @param index [unsigned int]
912
+ # @param divisor [int]
913
+ # @return [void]
818
914
  [:rlSetVertexAttributeDivisor, :rlSetVertexAttributeDivisor, [:uint, :int], :void],
819
915
 
820
- # rlSetVertexAttributeDefault : Set vertex attribute default value
821
- # @param locIndex [int]
822
- # @param value [const void *]
823
- # @param attribType [int]
824
- # @param count [int]
825
- # @return [void]
916
+ # @!method rlSetVertexAttributeDefault(locIndex, value, attribType, count)
917
+ # rlSetVertexAttributeDefault : Set vertex attribute default value
918
+ # @param locIndex [int]
919
+ # @param value [const void *]
920
+ # @param attribType [int]
921
+ # @param count [int]
922
+ # @return [void]
826
923
  [:rlSetVertexAttributeDefault, :rlSetVertexAttributeDefault, [:int, :pointer, :int, :int], :void],
827
924
 
828
- # rlDrawVertexArray
829
- # @param offset [int]
830
- # @param count [int]
831
- # @return [void]
925
+ # @!method rlDrawVertexArray(offset, count)
926
+ # rlDrawVertexArray
927
+ # @param offset [int]
928
+ # @param count [int]
929
+ # @return [void]
832
930
  [:rlDrawVertexArray, :rlDrawVertexArray, [:int, :int], :void],
833
931
 
834
- # rlDrawVertexArrayElements
835
- # @param offset [int]
836
- # @param count [int]
837
- # @param buffer [const void *]
838
- # @return [void]
932
+ # @!method rlDrawVertexArrayElements(offset, count, buffer)
933
+ # rlDrawVertexArrayElements
934
+ # @param offset [int]
935
+ # @param count [int]
936
+ # @param buffer [const void *]
937
+ # @return [void]
839
938
  [:rlDrawVertexArrayElements, :rlDrawVertexArrayElements, [:int, :int, :pointer], :void],
840
939
 
841
- # rlDrawVertexArrayInstanced
842
- # @param offset [int]
843
- # @param count [int]
844
- # @param instances [int]
845
- # @return [void]
940
+ # @!method rlDrawVertexArrayInstanced(offset, count, instances)
941
+ # rlDrawVertexArrayInstanced
942
+ # @param offset [int]
943
+ # @param count [int]
944
+ # @param instances [int]
945
+ # @return [void]
846
946
  [:rlDrawVertexArrayInstanced, :rlDrawVertexArrayInstanced, [:int, :int, :int], :void],
847
947
 
848
- # rlDrawVertexArrayElementsInstanced
849
- # @param offset [int]
850
- # @param count [int]
851
- # @param buffer [const void *]
852
- # @param instances [int]
853
- # @return [void]
948
+ # @!method rlDrawVertexArrayElementsInstanced(offset, count, buffer, instances)
949
+ # rlDrawVertexArrayElementsInstanced
950
+ # @param offset [int]
951
+ # @param count [int]
952
+ # @param buffer [const void *]
953
+ # @param instances [int]
954
+ # @return [void]
854
955
  [:rlDrawVertexArrayElementsInstanced, :rlDrawVertexArrayElementsInstanced, [:int, :int, :pointer, :int], :void],
855
956
 
856
- # rlLoadTexture : Load texture in GPU
857
- # @param data [const void *]
858
- # @param width [int]
859
- # @param height [int]
860
- # @param format [int]
861
- # @param mipmapCount [int]
862
- # @return [unsigned int]
957
+ # @!method rlLoadTexture(data, width, height, format, mipmapCount)
958
+ # rlLoadTexture : Load texture in GPU
959
+ # @param data [const void *]
960
+ # @param width [int]
961
+ # @param height [int]
962
+ # @param format [int]
963
+ # @param mipmapCount [int]
964
+ # @return [unsigned int]
863
965
  [:rlLoadTexture, :rlLoadTexture, [:pointer, :int, :int, :int, :int], :uint],
864
966
 
865
- # rlLoadTextureDepth : Load depth texture/renderbuffer (to be attached to fbo)
866
- # @param width [int]
867
- # @param height [int]
868
- # @param useRenderBuffer [bool]
869
- # @return [unsigned int]
967
+ # @!method rlLoadTextureDepth(width, height, useRenderBuffer)
968
+ # rlLoadTextureDepth : Load depth texture/renderbuffer (to be attached to fbo)
969
+ # @param width [int]
970
+ # @param height [int]
971
+ # @param useRenderBuffer [bool]
972
+ # @return [unsigned int]
870
973
  [:rlLoadTextureDepth, :rlLoadTextureDepth, [:int, :int, :bool], :uint],
871
974
 
872
- # rlLoadTextureCubemap : Load texture cubemap
873
- # @param data [const void *]
874
- # @param size [int]
875
- # @param format [int]
876
- # @return [unsigned int]
975
+ # @!method rlLoadTextureCubemap(data, size, format)
976
+ # rlLoadTextureCubemap : Load texture cubemap
977
+ # @param data [const void *]
978
+ # @param size [int]
979
+ # @param format [int]
980
+ # @return [unsigned int]
877
981
  [:rlLoadTextureCubemap, :rlLoadTextureCubemap, [:pointer, :int, :int], :uint],
878
982
 
879
- # rlUpdateTexture : Update GPU texture with new data
880
- # @param id [unsigned int]
881
- # @param offsetX [int]
882
- # @param offsetY [int]
883
- # @param width [int]
884
- # @param height [int]
885
- # @param format [int]
886
- # @param data [const void *]
887
- # @return [void]
983
+ # @!method rlUpdateTexture(id, offsetX, offsetY, width, height, format, data)
984
+ # rlUpdateTexture : Update GPU texture with new data
985
+ # @param id [unsigned int]
986
+ # @param offsetX [int]
987
+ # @param offsetY [int]
988
+ # @param width [int]
989
+ # @param height [int]
990
+ # @param format [int]
991
+ # @param data [const void *]
992
+ # @return [void]
888
993
  [:rlUpdateTexture, :rlUpdateTexture, [:uint, :int, :int, :int, :int, :int, :pointer], :void],
889
994
 
890
- # rlGetGlTextureFormats : Get OpenGL internal formats
891
- # @param format [int]
892
- # @param glInternalFormat [unsigned int *]
893
- # @param glFormat [unsigned int *]
894
- # @param glType [unsigned int *]
895
- # @return [void]
995
+ # @!method rlGetGlTextureFormats(format, glInternalFormat, glFormat, glType)
996
+ # rlGetGlTextureFormats : Get OpenGL internal formats
997
+ # @param format [int]
998
+ # @param glInternalFormat [unsigned int *]
999
+ # @param glFormat [unsigned int *]
1000
+ # @param glType [unsigned int *]
1001
+ # @return [void]
896
1002
  [:rlGetGlTextureFormats, :rlGetGlTextureFormats, [:int, :pointer, :pointer, :pointer], :void],
897
1003
 
898
- # rlGetPixelFormatName : Get name string for pixel format
899
- # @param format [unsigned int]
900
- # @return [const char *]
1004
+ # @!method rlGetPixelFormatName(format)
1005
+ # rlGetPixelFormatName : Get name string for pixel format
1006
+ # @param format [unsigned int]
1007
+ # @return [const char *]
901
1008
  [:rlGetPixelFormatName, :rlGetPixelFormatName, [:uint], :pointer],
902
1009
 
903
- # rlUnloadTexture : Unload texture from GPU memory
904
- # @param id [unsigned int]
905
- # @return [void]
1010
+ # @!method rlUnloadTexture(id)
1011
+ # rlUnloadTexture : Unload texture from GPU memory
1012
+ # @param id [unsigned int]
1013
+ # @return [void]
906
1014
  [:rlUnloadTexture, :rlUnloadTexture, [:uint], :void],
907
1015
 
908
- # rlGenTextureMipmaps : Generate mipmap data for selected texture
909
- # @param id [unsigned int]
910
- # @param width [int]
911
- # @param height [int]
912
- # @param format [int]
913
- # @param mipmaps [int *]
914
- # @return [void]
1016
+ # @!method rlGenTextureMipmaps(id, width, height, format, mipmaps)
1017
+ # rlGenTextureMipmaps : Generate mipmap data for selected texture
1018
+ # @param id [unsigned int]
1019
+ # @param width [int]
1020
+ # @param height [int]
1021
+ # @param format [int]
1022
+ # @param mipmaps [int *]
1023
+ # @return [void]
915
1024
  [:rlGenTextureMipmaps, :rlGenTextureMipmaps, [:uint, :int, :int, :int, :pointer], :void],
916
1025
 
917
- # rlReadTexturePixels : Read texture pixel data
918
- # @param id [unsigned int]
919
- # @param width [int]
920
- # @param height [int]
921
- # @param format [int]
922
- # @return [void *]
1026
+ # @!method rlReadTexturePixels(id, width, height, format)
1027
+ # rlReadTexturePixels : Read texture pixel data
1028
+ # @param id [unsigned int]
1029
+ # @param width [int]
1030
+ # @param height [int]
1031
+ # @param format [int]
1032
+ # @return [void *]
923
1033
  [:rlReadTexturePixels, :rlReadTexturePixels, [:uint, :int, :int, :int], :pointer],
924
1034
 
925
- # rlReadScreenPixels : Read screen pixel data (color buffer)
926
- # @param width [int]
927
- # @param height [int]
928
- # @return [unsigned char *]
1035
+ # @!method rlReadScreenPixels(width, height)
1036
+ # rlReadScreenPixels : Read screen pixel data (color buffer)
1037
+ # @param width [int]
1038
+ # @param height [int]
1039
+ # @return [unsigned char *]
929
1040
  [:rlReadScreenPixels, :rlReadScreenPixels, [:int, :int], :pointer],
930
1041
 
931
- # rlLoadFramebuffer : Load an empty framebuffer
932
- # @param width [int]
933
- # @param height [int]
934
- # @return [unsigned int]
1042
+ # @!method rlLoadFramebuffer(width, height)
1043
+ # rlLoadFramebuffer : Load an empty framebuffer
1044
+ # @param width [int]
1045
+ # @param height [int]
1046
+ # @return [unsigned int]
935
1047
  [:rlLoadFramebuffer, :rlLoadFramebuffer, [:int, :int], :uint],
936
1048
 
937
- # rlFramebufferAttach : Attach texture/renderbuffer to a framebuffer
938
- # @param fboId [unsigned int]
939
- # @param texId [unsigned int]
940
- # @param attachType [int]
941
- # @param texType [int]
942
- # @param mipLevel [int]
943
- # @return [void]
1049
+ # @!method rlFramebufferAttach(fboId, texId, attachType, texType, mipLevel)
1050
+ # rlFramebufferAttach : Attach texture/renderbuffer to a framebuffer
1051
+ # @param fboId [unsigned int]
1052
+ # @param texId [unsigned int]
1053
+ # @param attachType [int]
1054
+ # @param texType [int]
1055
+ # @param mipLevel [int]
1056
+ # @return [void]
944
1057
  [:rlFramebufferAttach, :rlFramebufferAttach, [:uint, :uint, :int, :int, :int], :void],
945
1058
 
946
- # rlFramebufferComplete : Verify framebuffer is complete
947
- # @param id [unsigned int]
948
- # @return [bool]
1059
+ # @!method rlFramebufferComplete(id)
1060
+ # rlFramebufferComplete : Verify framebuffer is complete
1061
+ # @param id [unsigned int]
1062
+ # @return [bool]
949
1063
  [:rlFramebufferComplete, :rlFramebufferComplete, [:uint], :bool],
950
1064
 
951
- # rlUnloadFramebuffer : Delete framebuffer from GPU
952
- # @param id [unsigned int]
953
- # @return [void]
1065
+ # @!method rlUnloadFramebuffer(id)
1066
+ # rlUnloadFramebuffer : Delete framebuffer from GPU
1067
+ # @param id [unsigned int]
1068
+ # @return [void]
954
1069
  [:rlUnloadFramebuffer, :rlUnloadFramebuffer, [:uint], :void],
955
1070
 
956
- # rlLoadShaderCode : Load shader from code strings
957
- # @param vsCode [const char *]
958
- # @param fsCode [const char *]
959
- # @return [unsigned int]
1071
+ # @!method rlLoadShaderCode(vsCode, fsCode)
1072
+ # rlLoadShaderCode : Load shader from code strings
1073
+ # @param vsCode [const char *]
1074
+ # @param fsCode [const char *]
1075
+ # @return [unsigned int]
960
1076
  [:rlLoadShaderCode, :rlLoadShaderCode, [:pointer, :pointer], :uint],
961
1077
 
962
- # rlCompileShader : Compile custom shader and return shader id (type: RL_VERTEX_SHADER, RL_FRAGMENT_SHADER, RL_COMPUTE_SHADER)
963
- # @param shaderCode [const char *]
964
- # @param type [int]
965
- # @return [unsigned int]
1078
+ # @!method rlCompileShader(shaderCode, type)
1079
+ # rlCompileShader : Compile custom shader and return shader id (type: RL_VERTEX_SHADER, RL_FRAGMENT_SHADER, RL_COMPUTE_SHADER)
1080
+ # @param shaderCode [const char *]
1081
+ # @param type [int]
1082
+ # @return [unsigned int]
966
1083
  [:rlCompileShader, :rlCompileShader, [:pointer, :int], :uint],
967
1084
 
968
- # rlLoadShaderProgram : Load custom shader program
969
- # @param vShaderId [unsigned int]
970
- # @param fShaderId [unsigned int]
971
- # @return [unsigned int]
1085
+ # @!method rlLoadShaderProgram(vShaderId, fShaderId)
1086
+ # rlLoadShaderProgram : Load custom shader program
1087
+ # @param vShaderId [unsigned int]
1088
+ # @param fShaderId [unsigned int]
1089
+ # @return [unsigned int]
972
1090
  [:rlLoadShaderProgram, :rlLoadShaderProgram, [:uint, :uint], :uint],
973
1091
 
974
- # rlUnloadShaderProgram : Unload shader program
975
- # @param id [unsigned int]
976
- # @return [void]
1092
+ # @!method rlUnloadShaderProgram(id)
1093
+ # rlUnloadShaderProgram : Unload shader program
1094
+ # @param id [unsigned int]
1095
+ # @return [void]
977
1096
  [:rlUnloadShaderProgram, :rlUnloadShaderProgram, [:uint], :void],
978
1097
 
979
- # rlGetLocationUniform : Get shader location uniform
980
- # @param shaderId [unsigned int]
981
- # @param uniformName [const char *]
982
- # @return [int]
1098
+ # @!method rlGetLocationUniform(shaderId, uniformName)
1099
+ # rlGetLocationUniform : Get shader location uniform
1100
+ # @param shaderId [unsigned int]
1101
+ # @param uniformName [const char *]
1102
+ # @return [int]
983
1103
  [:rlGetLocationUniform, :rlGetLocationUniform, [:uint, :pointer], :int],
984
1104
 
985
- # rlGetLocationAttrib : Get shader location attribute
986
- # @param shaderId [unsigned int]
987
- # @param attribName [const char *]
988
- # @return [int]
1105
+ # @!method rlGetLocationAttrib(shaderId, attribName)
1106
+ # rlGetLocationAttrib : Get shader location attribute
1107
+ # @param shaderId [unsigned int]
1108
+ # @param attribName [const char *]
1109
+ # @return [int]
989
1110
  [:rlGetLocationAttrib, :rlGetLocationAttrib, [:uint, :pointer], :int],
990
1111
 
991
- # rlSetUniform : Set shader value uniform
992
- # @param locIndex [int]
993
- # @param value [const void *]
994
- # @param uniformType [int]
995
- # @param count [int]
996
- # @return [void]
1112
+ # @!method rlSetUniform(locIndex, value, uniformType, count)
1113
+ # rlSetUniform : Set shader value uniform
1114
+ # @param locIndex [int]
1115
+ # @param value [const void *]
1116
+ # @param uniformType [int]
1117
+ # @param count [int]
1118
+ # @return [void]
997
1119
  [:rlSetUniform, :rlSetUniform, [:int, :pointer, :int, :int], :void],
998
1120
 
999
- # rlSetUniformMatrix : Set shader value matrix
1000
- # @param locIndex [int]
1001
- # @param mat [Matrix]
1002
- # @return [void]
1121
+ # @!method rlSetUniformMatrix(locIndex, mat)
1122
+ # rlSetUniformMatrix : Set shader value matrix
1123
+ # @param locIndex [int]
1124
+ # @param mat [Matrix]
1125
+ # @return [void]
1003
1126
  [:rlSetUniformMatrix, :rlSetUniformMatrix, [:int, Matrix.by_value], :void],
1004
1127
 
1005
- # rlSetUniformSampler : Set shader value sampler
1006
- # @param locIndex [int]
1007
- # @param textureId [unsigned int]
1008
- # @return [void]
1128
+ # @!method rlSetUniformSampler(locIndex, textureId)
1129
+ # rlSetUniformSampler : Set shader value sampler
1130
+ # @param locIndex [int]
1131
+ # @param textureId [unsigned int]
1132
+ # @return [void]
1009
1133
  [:rlSetUniformSampler, :rlSetUniformSampler, [:int, :uint], :void],
1010
1134
 
1011
- # rlSetShader : Set shader currently active (id and locations)
1012
- # @param id [unsigned int]
1013
- # @param locs [int *]
1014
- # @return [void]
1135
+ # @!method rlSetShader(id, locs)
1136
+ # rlSetShader : Set shader currently active (id and locations)
1137
+ # @param id [unsigned int]
1138
+ # @param locs [int *]
1139
+ # @return [void]
1015
1140
  [:rlSetShader, :rlSetShader, [:uint, :pointer], :void],
1016
1141
 
1017
- # rlLoadComputeShaderProgram : Load compute shader program
1018
- # @param shaderId [unsigned int]
1019
- # @return [unsigned int]
1142
+ # @!method rlLoadComputeShaderProgram(shaderId)
1143
+ # rlLoadComputeShaderProgram : Load compute shader program
1144
+ # @param shaderId [unsigned int]
1145
+ # @return [unsigned int]
1020
1146
  [:rlLoadComputeShaderProgram, :rlLoadComputeShaderProgram, [:uint], :uint],
1021
1147
 
1022
- # rlComputeShaderDispatch : Dispatch compute shader (equivalent to *draw* for graphics pipeline)
1023
- # @param groupX [unsigned int]
1024
- # @param groupY [unsigned int]
1025
- # @param groupZ [unsigned int]
1026
- # @return [void]
1148
+ # @!method rlComputeShaderDispatch(groupX, groupY, groupZ)
1149
+ # rlComputeShaderDispatch : Dispatch compute shader (equivalent to *draw* for graphics pipeline)
1150
+ # @param groupX [unsigned int]
1151
+ # @param groupY [unsigned int]
1152
+ # @param groupZ [unsigned int]
1153
+ # @return [void]
1027
1154
  [:rlComputeShaderDispatch, :rlComputeShaderDispatch, [:uint, :uint, :uint], :void],
1028
1155
 
1029
- # rlLoadShaderBuffer : Load shader storage buffer object (SSBO)
1030
- # @param size [unsigned int]
1031
- # @param data [const void *]
1032
- # @param usageHint [int]
1033
- # @return [unsigned int]
1156
+ # @!method rlLoadShaderBuffer(size, data, usageHint)
1157
+ # rlLoadShaderBuffer : Load shader storage buffer object (SSBO)
1158
+ # @param size [unsigned int]
1159
+ # @param data [const void *]
1160
+ # @param usageHint [int]
1161
+ # @return [unsigned int]
1034
1162
  [:rlLoadShaderBuffer, :rlLoadShaderBuffer, [:uint, :pointer, :int], :uint],
1035
1163
 
1036
- # rlUnloadShaderBuffer : Unload shader storage buffer object (SSBO)
1037
- # @param ssboId [unsigned int]
1038
- # @return [void]
1164
+ # @!method rlUnloadShaderBuffer(ssboId)
1165
+ # rlUnloadShaderBuffer : Unload shader storage buffer object (SSBO)
1166
+ # @param ssboId [unsigned int]
1167
+ # @return [void]
1039
1168
  [:rlUnloadShaderBuffer, :rlUnloadShaderBuffer, [:uint], :void],
1040
1169
 
1041
- # rlUpdateShaderBuffer : Update SSBO buffer data
1042
- # @param id [unsigned int]
1043
- # @param data [const void *]
1044
- # @param dataSize [unsigned int]
1045
- # @param offset [unsigned int]
1046
- # @return [void]
1170
+ # @!method rlUpdateShaderBuffer(id, data, dataSize, offset)
1171
+ # rlUpdateShaderBuffer : Update SSBO buffer data
1172
+ # @param id [unsigned int]
1173
+ # @param data [const void *]
1174
+ # @param dataSize [unsigned int]
1175
+ # @param offset [unsigned int]
1176
+ # @return [void]
1047
1177
  [:rlUpdateShaderBuffer, :rlUpdateShaderBuffer, [:uint, :pointer, :uint, :uint], :void],
1048
1178
 
1049
- # rlBindShaderBuffer : Bind SSBO buffer
1050
- # @param id [unsigned int]
1051
- # @param index [unsigned int]
1052
- # @return [void]
1179
+ # @!method rlBindShaderBuffer(id, index)
1180
+ # rlBindShaderBuffer : Bind SSBO buffer
1181
+ # @param id [unsigned int]
1182
+ # @param index [unsigned int]
1183
+ # @return [void]
1053
1184
  [:rlBindShaderBuffer, :rlBindShaderBuffer, [:uint, :uint], :void],
1054
1185
 
1055
- # rlReadShaderBuffer : Read SSBO buffer data (GPU->CPU)
1056
- # @param id [unsigned int]
1057
- # @param dest [void *]
1058
- # @param count [unsigned int]
1059
- # @param offset [unsigned int]
1060
- # @return [void]
1186
+ # @!method rlReadShaderBuffer(id, dest, count, offset)
1187
+ # rlReadShaderBuffer : Read SSBO buffer data (GPU->CPU)
1188
+ # @param id [unsigned int]
1189
+ # @param dest [void *]
1190
+ # @param count [unsigned int]
1191
+ # @param offset [unsigned int]
1192
+ # @return [void]
1061
1193
  [:rlReadShaderBuffer, :rlReadShaderBuffer, [:uint, :pointer, :uint, :uint], :void],
1062
1194
 
1063
- # rlCopyShaderBuffer : Copy SSBO data between buffers
1064
- # @param destId [unsigned int]
1065
- # @param srcId [unsigned int]
1066
- # @param destOffset [unsigned int]
1067
- # @param srcOffset [unsigned int]
1068
- # @param count [unsigned int]
1069
- # @return [void]
1195
+ # @!method rlCopyShaderBuffer(destId, srcId, destOffset, srcOffset, count)
1196
+ # rlCopyShaderBuffer : Copy SSBO data between buffers
1197
+ # @param destId [unsigned int]
1198
+ # @param srcId [unsigned int]
1199
+ # @param destOffset [unsigned int]
1200
+ # @param srcOffset [unsigned int]
1201
+ # @param count [unsigned int]
1202
+ # @return [void]
1070
1203
  [:rlCopyShaderBuffer, :rlCopyShaderBuffer, [:uint, :uint, :uint, :uint, :uint], :void],
1071
1204
 
1072
- # rlGetShaderBufferSize : Get SSBO buffer size
1073
- # @param id [unsigned int]
1074
- # @return [unsigned int]
1205
+ # @!method rlGetShaderBufferSize(id)
1206
+ # rlGetShaderBufferSize : Get SSBO buffer size
1207
+ # @param id [unsigned int]
1208
+ # @return [unsigned int]
1075
1209
  [:rlGetShaderBufferSize, :rlGetShaderBufferSize, [:uint], :uint],
1076
1210
 
1077
- # rlBindImageTexture : Bind image texture
1078
- # @param id [unsigned int]
1079
- # @param index [unsigned int]
1080
- # @param format [int]
1081
- # @param readonly [bool]
1082
- # @return [void]
1211
+ # @!method rlBindImageTexture(id, index, format, readonly)
1212
+ # rlBindImageTexture : Bind image texture
1213
+ # @param id [unsigned int]
1214
+ # @param index [unsigned int]
1215
+ # @param format [int]
1216
+ # @param readonly [bool]
1217
+ # @return [void]
1083
1218
  [:rlBindImageTexture, :rlBindImageTexture, [:uint, :uint, :int, :bool], :void],
1084
1219
 
1085
- # rlGetMatrixModelview : Get internal modelview matrix
1086
- # @return [Matrix]
1220
+ # @!method rlGetMatrixModelview()
1221
+ # rlGetMatrixModelview : Get internal modelview matrix
1222
+ # @return [Matrix]
1087
1223
  [:rlGetMatrixModelview, :rlGetMatrixModelview, [], Matrix.by_value],
1088
1224
 
1089
- # rlGetMatrixProjection : Get internal projection matrix
1090
- # @return [Matrix]
1225
+ # @!method rlGetMatrixProjection()
1226
+ # rlGetMatrixProjection : Get internal projection matrix
1227
+ # @return [Matrix]
1091
1228
  [:rlGetMatrixProjection, :rlGetMatrixProjection, [], Matrix.by_value],
1092
1229
 
1093
- # rlGetMatrixTransform : Get internal accumulated transform matrix
1094
- # @return [Matrix]
1230
+ # @!method rlGetMatrixTransform()
1231
+ # rlGetMatrixTransform : Get internal accumulated transform matrix
1232
+ # @return [Matrix]
1095
1233
  [:rlGetMatrixTransform, :rlGetMatrixTransform, [], Matrix.by_value],
1096
1234
 
1097
- # rlGetMatrixProjectionStereo : Get internal projection matrix for stereo render (selected eye)
1098
- # @param eye [int]
1099
- # @return [Matrix]
1235
+ # @!method rlGetMatrixProjectionStereo(eye)
1236
+ # rlGetMatrixProjectionStereo : Get internal projection matrix for stereo render (selected eye)
1237
+ # @param eye [int]
1238
+ # @return [Matrix]
1100
1239
  [:rlGetMatrixProjectionStereo, :rlGetMatrixProjectionStereo, [:int], Matrix.by_value],
1101
1240
 
1102
- # rlGetMatrixViewOffsetStereo : Get internal view offset matrix for stereo render (selected eye)
1103
- # @param eye [int]
1104
- # @return [Matrix]
1241
+ # @!method rlGetMatrixViewOffsetStereo(eye)
1242
+ # rlGetMatrixViewOffsetStereo : Get internal view offset matrix for stereo render (selected eye)
1243
+ # @param eye [int]
1244
+ # @return [Matrix]
1105
1245
  [:rlGetMatrixViewOffsetStereo, :rlGetMatrixViewOffsetStereo, [:int], Matrix.by_value],
1106
1246
 
1107
- # rlSetMatrixProjection : Set a custom projection matrix (replaces internal projection matrix)
1108
- # @param proj [Matrix]
1109
- # @return [void]
1247
+ # @!method rlSetMatrixProjection(proj)
1248
+ # rlSetMatrixProjection : Set a custom projection matrix (replaces internal projection matrix)
1249
+ # @param proj [Matrix]
1250
+ # @return [void]
1110
1251
  [:rlSetMatrixProjection, :rlSetMatrixProjection, [Matrix.by_value], :void],
1111
1252
 
1112
- # rlSetMatrixModelview : Set a custom modelview matrix (replaces internal modelview matrix)
1113
- # @param view [Matrix]
1114
- # @return [void]
1253
+ # @!method rlSetMatrixModelview(view)
1254
+ # rlSetMatrixModelview : Set a custom modelview matrix (replaces internal modelview matrix)
1255
+ # @param view [Matrix]
1256
+ # @return [void]
1115
1257
  [:rlSetMatrixModelview, :rlSetMatrixModelview, [Matrix.by_value], :void],
1116
1258
 
1117
- # rlSetMatrixProjectionStereo : Set eyes projection matrices for stereo rendering
1118
- # @param right [Matrix]
1119
- # @param left [Matrix]
1120
- # @return [void]
1259
+ # @!method rlSetMatrixProjectionStereo(right, left)
1260
+ # rlSetMatrixProjectionStereo : Set eyes projection matrices for stereo rendering
1261
+ # @param right [Matrix]
1262
+ # @param left [Matrix]
1263
+ # @return [void]
1121
1264
  [:rlSetMatrixProjectionStereo, :rlSetMatrixProjectionStereo, [Matrix.by_value, Matrix.by_value], :void],
1122
1265
 
1123
- # rlSetMatrixViewOffsetStereo : Set eyes view offsets matrices for stereo rendering
1124
- # @param right [Matrix]
1125
- # @param left [Matrix]
1126
- # @return [void]
1266
+ # @!method rlSetMatrixViewOffsetStereo(right, left)
1267
+ # rlSetMatrixViewOffsetStereo : Set eyes view offsets matrices for stereo rendering
1268
+ # @param right [Matrix]
1269
+ # @param left [Matrix]
1270
+ # @return [void]
1127
1271
  [:rlSetMatrixViewOffsetStereo, :rlSetMatrixViewOffsetStereo, [Matrix.by_value, Matrix.by_value], :void],
1128
1272
 
1129
- # rlLoadDrawCube : Load and draw a cube
1130
- # @return [void]
1273
+ # @!method rlLoadDrawCube()
1274
+ # rlLoadDrawCube : Load and draw a cube
1275
+ # @return [void]
1131
1276
  [:rlLoadDrawCube, :rlLoadDrawCube, [], :void],
1132
1277
 
1133
- # rlLoadDrawQuad : Load and draw a quad
1134
- # @return [void]
1278
+ # @!method rlLoadDrawQuad()
1279
+ # rlLoadDrawQuad : Load and draw a quad
1280
+ # @return [void]
1135
1281
  [:rlLoadDrawQuad, :rlLoadDrawQuad, [], :void],
1136
1282
  ]
1137
1283
  entries.each do |entry|