raylib-bindings 0.5.1 → 0.5.3

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