ruby-sdl2 0.3.5 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/.gitignore +4 -1
 - data/Gemfile +11 -0
 - data/README.md +5 -2
 - data/Rakefile +22 -2
 - data/Steepfile +24 -0
 - data/doc/DEVELOP.md +35 -0
 - data/event.c +3 -3
 - data/gamecontroller.c +26 -25
 - data/gamecontroller.c.m4 +26 -25
 - data/gl.c +56 -63
 - data/gl.c.m4 +56 -63
 - data/hint.c +3 -3
 - data/joystick.c +11 -10
 - data/joystick.c.m4 +11 -10
 - data/key.c +21 -19
 - data/key.c.m4 +21 -19
 - data/lib/sdl2/version.rb +3 -3
 - data/main.c +13 -16
 - data/messagebox.c +7 -7
 - data/mixer.c +41 -31
 - data/mixer.c.m4 +41 -31
 - data/mouse.c +3 -3
 - data/rbs_collection.yaml +32 -0
 - data/ttf.c +15 -15
 - data/ttf.c.m4 +15 -15
 - data/video.c +172 -122
 - data/video.c.m4 +109 -91
 - metadata +7 -3
 
    
        data/video.c
    CHANGED
    
    | 
         @@ -352,13 +352,14 @@ static VALUE SDL2_s_video_init(VALUE self, VALUE driver_name) 
     | 
|
| 
       352 
352 
     | 
    
         
             
             *
         
     | 
| 
       353 
353 
     | 
    
         
             
             *
         
     | 
| 
       354 
354 
     | 
    
         
             
             * @!method destroy?
         
     | 
| 
       355 
     | 
    
         
            -
             *    
     | 
| 
      
 355 
     | 
    
         
            +
             *   @return [Boolean] true if the window is already destroyed.
         
     | 
| 
       356 
356 
     | 
    
         
             
             */
         
     | 
| 
       357 
357 
     | 
    
         | 
| 
       358 
358 
     | 
    
         
             
            /*
         
     | 
| 
       359 
359 
     | 
    
         
             
             * @overload create(title, x, y, w, h, flags)
         
     | 
| 
       360 
360 
     | 
    
         
             
             *   Create a window with the specified position (x,y), dimensions (w,h) and flags.
         
     | 
| 
       361 
361 
     | 
    
         
             
             *
         
     | 
| 
      
 362 
     | 
    
         
            +
             *   @param [String] title title of the created window
         
     | 
| 
       362 
363 
     | 
    
         
             
             *   @param [Integer] x the x position of the left-top of the window
         
     | 
| 
       363 
364 
     | 
    
         
             
             *   @param [Integer] y the y position of the left-top of the window
         
     | 
| 
       364 
365 
     | 
    
         
             
             *   @param [Integer] w the width of the window
         
     | 
| 
         @@ -482,7 +483,7 @@ static VALUE Window_window_id(VALUE self) 
     | 
|
| 
       482 
483 
     | 
    
         
             
            /*
         
     | 
| 
       483 
484 
     | 
    
         
             
             * Get information about the window.
         
     | 
| 
       484 
485 
     | 
    
         
             
             *
         
     | 
| 
       485 
     | 
    
         
            -
             * @return [SDL2:: 
     | 
| 
      
 486 
     | 
    
         
            +
             * @return [SDL2::Display::Mode]
         
     | 
| 
       486 
487 
     | 
    
         
             
             */
         
     | 
| 
       487 
488 
     | 
    
         
             
            static VALUE Window_display_mode(VALUE self)
         
     | 
| 
       488 
489 
     | 
    
         
             
            {
         
     | 
| 
         @@ -519,7 +520,7 @@ static VALUE Window_brightness(VALUE self) 
     | 
|
| 
       519 
520 
     | 
    
         
             
             *
         
     | 
| 
       520 
521 
     | 
    
         
             
             *   @param brightness [Float] the brightness, 0.0 means complete dark and 1.0 means
         
     | 
| 
       521 
522 
     | 
    
         
             
             *     normal brightness.
         
     | 
| 
       522 
     | 
    
         
            -
             *   @return [ 
     | 
| 
      
 523 
     | 
    
         
            +
             *   @return [void]
         
     | 
| 
       523 
524 
     | 
    
         
             
             *
         
     | 
| 
       524 
525 
     | 
    
         
             
             *   @see #brightness
         
     | 
| 
       525 
526 
     | 
    
         
             
             */
         
     | 
| 
         @@ -573,7 +574,7 @@ static VALUE Window_gamma_ramp(VALUE self) 
     | 
|
| 
       573 
574 
     | 
    
         
             
             *   Set the window icon.
         
     | 
| 
       574 
575 
     | 
    
         
             
             *
         
     | 
| 
       575 
576 
     | 
    
         
             
             *   @param icon [SDL2::Surface] the icon for the window
         
     | 
| 
       576 
     | 
    
         
            -
             *   @return [ 
     | 
| 
      
 577 
     | 
    
         
            +
             *   @return [void]
         
     | 
| 
       577 
578 
     | 
    
         
             
             */
         
     | 
| 
       578 
579 
     | 
    
         
             
            static VALUE Window_set_icon(VALUE self, VALUE icon)
         
     | 
| 
       579 
580 
     | 
    
         
             
            {
         
     | 
| 
         @@ -596,7 +597,7 @@ static VALUE Window_input_is_grabbed_p(VALUE self) 
     | 
|
| 
       596 
597 
     | 
    
         
             
             *   Set the window's input grab mode.
         
     | 
| 
       597 
598 
     | 
    
         
             
             *
         
     | 
| 
       598 
599 
     | 
    
         
             
             *   @param grabbed [Boolean] true to grub input, and false to release input
         
     | 
| 
       599 
     | 
    
         
            -
             *   @return [ 
     | 
| 
      
 600 
     | 
    
         
            +
             *   @return [void]
         
     | 
| 
       600 
601 
     | 
    
         
             
             *
         
     | 
| 
       601 
602 
     | 
    
         
             
             *   @see #input_is_grabbed?
         
     | 
| 
       602 
603 
     | 
    
         
             
             */
         
     | 
| 
         @@ -625,7 +626,7 @@ static VALUE Window_set_int_int(void (*func)(SDL_Window*, int, int), VALUE windo 
     | 
|
| 
       625 
626 
     | 
    
         
             
            /*
         
     | 
| 
       626 
627 
     | 
    
         
             
             * Get the maximum size of the window's client area.
         
     | 
| 
       627 
628 
     | 
    
         
             
             *
         
     | 
| 
       628 
     | 
    
         
            -
             * @return [Integer,Integer] maximum width and maximum height.
         
     | 
| 
      
 629 
     | 
    
         
            +
             * @return [Array(Integer,Integer)] maximum width and maximum height.
         
     | 
| 
       629 
630 
     | 
    
         
             
             *
         
     | 
| 
       630 
631 
     | 
    
         
             
             * @see #maximum_size=
         
     | 
| 
       631 
632 
     | 
    
         
             
             */
         
     | 
| 
         @@ -638,10 +639,10 @@ static VALUE Window_maximum_size(VALUE self) 
     | 
|
| 
       638 
639 
     | 
    
         
             
             * @overload maximum_size=(size)
         
     | 
| 
       639 
640 
     | 
    
         
             
             *   Set the maximum size of the window's client area.
         
     | 
| 
       640 
641 
     | 
    
         
             
             *
         
     | 
| 
       641 
     | 
    
         
            -
             *   @param size [ 
     | 
| 
      
 642 
     | 
    
         
            +
             *   @param size [Array(Integer, Integer)] maximum width and maximum height,
         
     | 
| 
       642 
643 
     | 
    
         
             
             *     the both must be positive.
         
     | 
| 
       643 
644 
     | 
    
         
             
             *
         
     | 
| 
       644 
     | 
    
         
            -
             *   @return [ 
     | 
| 
      
 645 
     | 
    
         
            +
             *   @return [void]
         
     | 
| 
       645 
646 
     | 
    
         
             
             *
         
     | 
| 
       646 
647 
     | 
    
         
             
             *   @see #maximum_size
         
     | 
| 
       647 
648 
     | 
    
         
             
             */
         
     | 
| 
         @@ -653,7 +654,7 @@ static VALUE Window_set_maximum_size(VALUE self, VALUE max_size) 
     | 
|
| 
       653 
654 
     | 
    
         
             
            /*
         
     | 
| 
       654 
655 
     | 
    
         
             
             * Get the minimum size of the window's client area.
         
     | 
| 
       655 
656 
     | 
    
         
             
             *
         
     | 
| 
       656 
     | 
    
         
            -
             * @return [Integer,Integer] minimum width and minimum height.
         
     | 
| 
      
 657 
     | 
    
         
            +
             * @return [Array(Integer,Integer)] minimum width and minimum height.
         
     | 
| 
       657 
658 
     | 
    
         
             
             *
         
     | 
| 
       658 
659 
     | 
    
         
             
             * @see #minimum_size=
         
     | 
| 
       659 
660 
     | 
    
         
             
             */
         
     | 
| 
         @@ -666,10 +667,10 @@ static VALUE Window_minimum_size(VALUE self) 
     | 
|
| 
       666 
667 
     | 
    
         
             
             * @overload minimum_size=(size)
         
     | 
| 
       667 
668 
     | 
    
         
             
             *   Set the minimum size of the window's client area.
         
     | 
| 
       668 
669 
     | 
    
         
             
             *
         
     | 
| 
       669 
     | 
    
         
            -
             *   @param size [ 
     | 
| 
      
 670 
     | 
    
         
            +
             *   @param size [Array(Integer, Integer)] minimum width and minimum height,
         
     | 
| 
       670 
671 
     | 
    
         
             
             *     the both must be positive.
         
     | 
| 
       671 
672 
     | 
    
         
             
             *
         
     | 
| 
       672 
     | 
    
         
            -
             *   @return [ 
     | 
| 
      
 673 
     | 
    
         
            +
             *   @return [void]
         
     | 
| 
       673 
674 
     | 
    
         
             
             *
         
     | 
| 
       674 
675 
     | 
    
         
             
             *   @see #minimum_size
         
     | 
| 
       675 
676 
     | 
    
         
             
             */
         
     | 
| 
         @@ -681,7 +682,7 @@ static VALUE Window_set_minimum_size(VALUE self, VALUE min_size) 
     | 
|
| 
       681 
682 
     | 
    
         
             
            /*
         
     | 
| 
       682 
683 
     | 
    
         
             
             * Get the position of the window.
         
     | 
| 
       683 
684 
     | 
    
         
             
             *
         
     | 
| 
       684 
     | 
    
         
            -
             * @return [Integer,Integer] the x position and the y position
         
     | 
| 
      
 685 
     | 
    
         
            +
             * @return [Array(Integer,Integer)] the x position and the y position
         
     | 
| 
       685 
686 
     | 
    
         
             
             *
         
     | 
| 
       686 
687 
     | 
    
         
             
             * @see #position=
         
     | 
| 
       687 
688 
     | 
    
         
             
             */
         
     | 
| 
         @@ -694,11 +695,11 @@ static VALUE Window_position(VALUE self) 
     | 
|
| 
       694 
695 
     | 
    
         
             
             * @overload position=(xy)
         
     | 
| 
       695 
696 
     | 
    
         
             
             *   Set the position of the window
         
     | 
| 
       696 
697 
     | 
    
         
             
             *
         
     | 
| 
       697 
     | 
    
         
            -
             *   @param xy [ 
     | 
| 
      
 698 
     | 
    
         
            +
             *   @param xy [Array(Integer, Integer)] the x position and the y position,
         
     | 
| 
       698 
699 
     | 
    
         
             
             *     {SDL2::Window::POS_CENTERED} and {SDL2::Window::POS_UNDEFINED}
         
     | 
| 
       699 
700 
     | 
    
         
             
             *     are available.
         
     | 
| 
       700 
701 
     | 
    
         
             
             *
         
     | 
| 
       701 
     | 
    
         
            -
             *   @return [ 
     | 
| 
      
 702 
     | 
    
         
            +
             *   @return [void]
         
     | 
| 
       702 
703 
     | 
    
         
             
             *
         
     | 
| 
       703 
704 
     | 
    
         
             
             *   @see #position
         
     | 
| 
       704 
705 
     | 
    
         
             
             */
         
     | 
| 
         @@ -710,7 +711,7 @@ static VALUE Window_set_position(VALUE self, VALUE xy) 
     | 
|
| 
       710 
711 
     | 
    
         
             
            /*
         
     | 
| 
       711 
712 
     | 
    
         
             
             * Get the size of the window.
         
     | 
| 
       712 
713 
     | 
    
         
             
             *
         
     | 
| 
       713 
     | 
    
         
            -
             * @return [ 
     | 
| 
      
 714 
     | 
    
         
            +
             * @return [Array(Integer, Integer)] the width and the height
         
     | 
| 
       714 
715 
     | 
    
         
             
             *
         
     | 
| 
       715 
716 
     | 
    
         
             
             * @see size=
         
     | 
| 
       716 
717 
     | 
    
         
             
             */
         
     | 
| 
         @@ -723,9 +724,9 @@ static VALUE Window_size(VALUE self) 
     | 
|
| 
       723 
724 
     | 
    
         
             
             * @overload size=(size)
         
     | 
| 
       724 
725 
     | 
    
         
             
             *   Set the size of the window.
         
     | 
| 
       725 
726 
     | 
    
         
             
             *
         
     | 
| 
       726 
     | 
    
         
            -
             *   @param  
     | 
| 
      
 727 
     | 
    
         
            +
             *   @param size [Array(Integer, Integer)] new width and new height
         
     | 
| 
       727 
728 
     | 
    
         
             
             *
         
     | 
| 
       728 
     | 
    
         
            -
             *   @return [ 
     | 
| 
      
 729 
     | 
    
         
            +
             *   @return [void]
         
     | 
| 
       729 
730 
     | 
    
         
             
             *
         
     | 
| 
       730 
731 
     | 
    
         
             
             *   @see #size
         
     | 
| 
       731 
732 
     | 
    
         
             
             */
         
     | 
| 
         @@ -765,7 +766,7 @@ static VALUE Window_bordered(VALUE self) 
     | 
|
| 
       765 
766 
     | 
    
         
             
             *   @param bordered [Boolean] true for bordered window, anad false for
         
     | 
| 
       766 
767 
     | 
    
         
             
             *     borderless window
         
     | 
| 
       767 
768 
     | 
    
         
             
             *
         
     | 
| 
       768 
     | 
    
         
            -
             *   @return [ 
     | 
| 
      
 769 
     | 
    
         
            +
             *   @return [void]
         
     | 
| 
       769 
770 
     | 
    
         
             
             *
         
     | 
| 
       770 
771 
     | 
    
         
             
             *   @see #bordered
         
     | 
| 
       771 
772 
     | 
    
         
             
             */
         
     | 
| 
         @@ -780,7 +781,7 @@ static VALUE Window_set_bordered(VALUE self, VALUE bordered) 
     | 
|
| 
       780 
781 
     | 
    
         
             
             *   Set the title of the window.
         
     | 
| 
       781 
782 
     | 
    
         
             
             *
         
     | 
| 
       782 
783 
     | 
    
         
             
             *   @param title [String] the title
         
     | 
| 
       783 
     | 
    
         
            -
             *   @return [ 
     | 
| 
      
 784 
     | 
    
         
            +
             *   @return [void]
         
     | 
| 
       784 
785 
     | 
    
         
             
             *
         
     | 
| 
       785 
786 
     | 
    
         
             
             *   @see #title
         
     | 
| 
       786 
787 
     | 
    
         
             
             */
         
     | 
| 
         @@ -885,7 +886,7 @@ static VALUE Window_fullscreen_mode(VALUE self) 
     | 
|
| 
       885 
886 
     | 
    
         
             
             *   @param flag [Integer] 0 for window mode, {SDL2::Window::Flags::FULLSCREEN} for
         
     | 
| 
       886 
887 
     | 
    
         
             
             *     fullscreen mode, and {SDL2::Flags::Window::FULLSCREEN_DESKTOP} for fullscreen
         
     | 
| 
       887 
888 
     | 
    
         
             
             *     at the current desktop resolution.
         
     | 
| 
       888 
     | 
    
         
            -
             *   @return [ 
     | 
| 
      
 889 
     | 
    
         
            +
             *   @return [void]
         
     | 
| 
       889 
890 
     | 
    
         
             
             *
         
     | 
| 
       890 
891 
     | 
    
         
             
             *   @see #fullscreen_mode
         
     | 
| 
       891 
892 
     | 
    
         
             
             */
         
     | 
| 
         @@ -899,7 +900,7 @@ static VALUE Window_set_fullscreen_mode(VALUE self, VALUE flags) 
     | 
|
| 
       899 
900 
     | 
    
         
             
            /*
         
     | 
| 
       900 
901 
     | 
    
         
             
             * Get the size of the drawable region.
         
     | 
| 
       901 
902 
     | 
    
         
             
             *
         
     | 
| 
       902 
     | 
    
         
            -
             * @return [ 
     | 
| 
      
 903 
     | 
    
         
            +
             * @return [Array(Integer, Integer)] the width and height of the region
         
     | 
| 
       903 
904 
     | 
    
         
             
             */
         
     | 
| 
       904 
905 
     | 
    
         
             
            static VALUE Window_gl_drawable_size(VALUE self)
         
     | 
| 
       905 
906 
     | 
    
         
             
            {
         
     | 
| 
         @@ -977,7 +978,7 @@ static VALUE Window_debug_info(VALUE self) 
     | 
|
| 
       977 
978 
     | 
    
         
             
             *
         
     | 
| 
       978 
979 
     | 
    
         
             
             * @!attribute [r] name
         
     | 
| 
       979 
980 
     | 
    
         
             
             *   The name of the display
         
     | 
| 
       980 
     | 
    
         
            -
             *   @return [ 
     | 
| 
      
 981 
     | 
    
         
            +
             *   @return [String]
         
     | 
| 
       981 
982 
     | 
    
         
             
             *
         
     | 
| 
       982 
983 
     | 
    
         
             
             */
         
     | 
| 
       983 
984 
     | 
    
         | 
| 
         @@ -1351,7 +1352,7 @@ static VALUE Renderer_clear(VALUE self) 
     | 
|
| 
       1351 
1352 
     | 
    
         | 
| 
       1352 
1353 
     | 
    
         
             
            /*
         
     | 
| 
       1353 
1354 
     | 
    
         
             
             * Get the color used for drawing operations
         
     | 
| 
       1354 
     | 
    
         
            -
             * @return [ 
     | 
| 
      
 1355 
     | 
    
         
            +
             * @return [Array(Integer,Integer,Integer,Integer)]
         
     | 
| 
       1355 
1356 
     | 
    
         
             
             *   red, green, blue, and alpha components of the drawing color
         
     | 
| 
       1356 
1357 
     | 
    
         
             
             *   (all components are more than or equal to 0 and less than and equal to 255)
         
     | 
| 
       1357 
1358 
     | 
    
         
             
             *
         
     | 
| 
         @@ -1379,12 +1380,10 @@ static VALUE Renderer_draw_color(VALUE self) 
     | 
|
| 
       1379 
1380 
     | 
    
         
             
             *   * {#fill_rect}
         
     | 
| 
       1380 
1381 
     | 
    
         
             
             *   * {#clear}
         
     | 
| 
       1381 
1382 
     | 
    
         
             
             *
         
     | 
| 
       1382 
     | 
    
         
            -
             *   @param [ 
     | 
| 
       1383 
     | 
    
         
            -
             *     red, green, and  
     | 
| 
       1384 
     | 
    
         
            -
             *   @param [[Integer, Integer, Integer, Integer]] color
         
     | 
| 
       1385 
     | 
    
         
            -
             *     red, green, blue, and alpha components used for drawing
         
     | 
| 
      
 1383 
     | 
    
         
            +
             *   @param [Array<Integer>] color
         
     | 
| 
      
 1384 
     | 
    
         
            +
             *     red, green, blue, and optionally alpha components used for drawing
         
     | 
| 
       1386 
1385 
     | 
    
         
             
             *
         
     | 
| 
       1387 
     | 
    
         
            -
             *   @return [ 
     | 
| 
      
 1386 
     | 
    
         
            +
             *   @return [Array<Integer>]
         
     | 
| 
       1388 
1387 
     | 
    
         
             
             *
         
     | 
| 
       1389 
1388 
     | 
    
         
             
             *   @see #draw_color
         
     | 
| 
       1390 
1389 
     | 
    
         
             
             */
         
     | 
| 
         @@ -1529,7 +1528,8 @@ static VALUE Renderer_clip_rect(VALUE self) 
     | 
|
| 
       1529 
1528 
     | 
    
         
             
             *
         
     | 
| 
       1530 
1529 
     | 
    
         
             
             *   Set the clip rectangle for the current target.
         
     | 
| 
       1531 
1530 
     | 
    
         
             
             *
         
     | 
| 
       1532 
     | 
    
         
            -
             *   @ 
     | 
| 
      
 1531 
     | 
    
         
            +
             *   @param rect [SDL2::Rect]
         
     | 
| 
      
 1532 
     | 
    
         
            +
             *   @return [void]
         
     | 
| 
       1533 
1533 
     | 
    
         
             
             *   @see #clip_rect
         
     | 
| 
       1534 
1534 
     | 
    
         
             
             */
         
     | 
| 
       1535 
1535 
     | 
    
         
             
            static VALUE Renderer_set_clip_rect(VALUE self, VALUE rect)
         
     | 
| 
         @@ -1553,7 +1553,7 @@ static VALUE Render_clip_enabled_p(VALUE self) 
     | 
|
| 
       1553 
1553 
     | 
    
         
             
            /*
         
     | 
| 
       1554 
1554 
     | 
    
         
             
             * Get device indepndent resolution for rendering.
         
     | 
| 
       1555 
1555 
     | 
    
         
             
             *
         
     | 
| 
       1556 
     | 
    
         
            -
             * @return [ 
     | 
| 
      
 1556 
     | 
    
         
            +
             * @return [Array(Integer, Integer)] the logical width and height
         
     | 
| 
       1557 
1557 
     | 
    
         
             
             * @see #logical_size=
         
     | 
| 
       1558 
1558 
     | 
    
         
             
             */
         
     | 
| 
       1559 
1559 
     | 
    
         
             
            static VALUE Renderer_logical_size(VALUE self)
         
     | 
| 
         @@ -1568,8 +1568,8 @@ static VALUE Renderer_logical_size(VALUE self) 
     | 
|
| 
       1568 
1568 
     | 
    
         
             
             *
         
     | 
| 
       1569 
1569 
     | 
    
         
             
             *   Set a device indepndent resolution for rendering.
         
     | 
| 
       1570 
1570 
     | 
    
         
             
             *
         
     | 
| 
       1571 
     | 
    
         
            -
             *   @param w_and_h [ 
     | 
| 
       1572 
     | 
    
         
            -
             *   @return [ 
     | 
| 
      
 1571 
     | 
    
         
            +
             *   @param w_and_h [Array(Integer, Integer)] the width and height of the logical resolution
         
     | 
| 
      
 1572 
     | 
    
         
            +
             *   @return [void]
         
     | 
| 
       1573 
1573 
     | 
    
         
             
             *   @see #logical_size
         
     | 
| 
       1574 
1574 
     | 
    
         
             
             */
         
     | 
| 
       1575 
1575 
     | 
    
         
             
            static VALUE Renderer_set_logical_size(VALUE self, VALUE wh)
         
     | 
| 
         @@ -1583,7 +1583,7 @@ static VALUE Renderer_set_logical_size(VALUE self, VALUE wh) 
     | 
|
| 
       1583 
1583 
     | 
    
         
             
            /*
         
     | 
| 
       1584 
1584 
     | 
    
         
             
             * Get the drawing scale for the current target.
         
     | 
| 
       1585 
1585 
     | 
    
         
             
             *
         
     | 
| 
       1586 
     | 
    
         
            -
             * @return [ 
     | 
| 
      
 1586 
     | 
    
         
            +
             * @return [Array(Integer, Integer)] horizontal and vertical scale factor
         
     | 
| 
       1587 
1587 
     | 
    
         
             
             * @see #scale=
         
     | 
| 
       1588 
1588 
     | 
    
         
             
             */
         
     | 
| 
       1589 
1589 
     | 
    
         
             
            static VALUE Renderer_scale(VALUE self)
         
     | 
| 
         @@ -1605,8 +1605,8 @@ static VALUE Renderer_scale(VALUE self) 
     | 
|
| 
       1605 
1605 
     | 
    
         
             
             *   it will be handled using the appropriate
         
     | 
| 
       1606 
1606 
     | 
    
         
             
             *   quality hints. For best results use integer scaling factors.
         
     | 
| 
       1607 
1607 
     | 
    
         
             
             *
         
     | 
| 
       1608 
     | 
    
         
            -
             *   @param scaleX_and_scaleY [ 
     | 
| 
       1609 
     | 
    
         
            -
             *   @return [ 
     | 
| 
      
 1608 
     | 
    
         
            +
             *   @param scaleX_and_scaleY [Array(Float, Float)] the horizontal and vertical scaling factors
         
     | 
| 
      
 1609 
     | 
    
         
            +
             *   @return [void]
         
     | 
| 
       1610 
1610 
     | 
    
         
             
             *   @see #scale
         
     | 
| 
       1611 
1611 
     | 
    
         
             
             */
         
     | 
| 
       1612 
1612 
     | 
    
         
             
            static VALUE Renderer_set_scale(VALUE self, VALUE xy)
         
     | 
| 
         @@ -1636,7 +1636,7 @@ static VALUE Renderer_viewport(VALUE self) 
     | 
|
| 
       1636 
1636 
     | 
    
         
             
             *   Set the drawing area for rendering on the current target.
         
     | 
| 
       1637 
1637 
     | 
    
         
             
             *
         
     | 
| 
       1638 
1638 
     | 
    
         
             
             *   @param area [SDL2::Rect,nil] the drawing area, or nil to set the viewport to the entire target
         
     | 
| 
       1639 
     | 
    
         
            -
             *   @return [ 
     | 
| 
      
 1639 
     | 
    
         
            +
             *   @return [void]
         
     | 
| 
       1640 
1640 
     | 
    
         
             
             *   @see #viewport
         
     | 
| 
       1641 
1641 
     | 
    
         
             
             */
         
     | 
| 
       1642 
1642 
     | 
    
         
             
            static VALUE Renderer_set_viewport(VALUE self, VALUE rect)
         
     | 
| 
         @@ -1658,7 +1658,7 @@ static VALUE Renderer_support_render_target_p(VALUE self) 
     | 
|
| 
       1658 
1658 
     | 
    
         
             
            /*
         
     | 
| 
       1659 
1659 
     | 
    
         
             
             * Get the output size of a rendering context.
         
     | 
| 
       1660 
1660 
     | 
    
         
             
             *
         
     | 
| 
       1661 
     | 
    
         
            -
             * @return [ 
     | 
| 
      
 1661 
     | 
    
         
            +
             * @return [Array(Integer, Integer)] the width and the height
         
     | 
| 
       1662 
1662 
     | 
    
         
             
             */
         
     | 
| 
       1663 
1663 
     | 
    
         
             
            static VALUE Renderer_output_size(VALUE self)
         
     | 
| 
       1664 
1664 
     | 
    
         
             
            {
         
     | 
| 
         @@ -1681,7 +1681,7 @@ static VALUE Renderer_output_size(VALUE self) 
     | 
|
| 
       1681 
1681 
     | 
    
         
             
             *  @param [SDL2::Texture,nil] target the targeted texture, or nil
         
     | 
| 
       1682 
1682 
     | 
    
         
             
             *    for the default render target(i.e. screen)
         
     | 
| 
       1683 
1683 
     | 
    
         
             
             *
         
     | 
| 
       1684 
     | 
    
         
            -
             *  @return [ 
     | 
| 
      
 1684 
     | 
    
         
            +
             *  @return [void]
         
     | 
| 
       1685 
1685 
     | 
    
         
             
             *
         
     | 
| 
       1686 
1686 
     | 
    
         
             
             *  @see #render_target
         
     | 
| 
       1687 
1687 
     | 
    
         
             
             */
         
     | 
| 
         @@ -1791,6 +1791,8 @@ static VALUE Renderer_debug_info(VALUE self) 
     | 
|
| 
       1791 
1791 
     | 
    
         
             
            /*
         
     | 
| 
       1792 
1792 
     | 
    
         
             
             * Destroy the texture and deallocate memory.
         
     | 
| 
       1793 
1793 
     | 
    
         
             
             *
         
     | 
| 
      
 1794 
     | 
    
         
            +
             * @return [void]
         
     | 
| 
      
 1795 
     | 
    
         
            +
             *
         
     | 
| 
       1794 
1796 
     | 
    
         
             
             * @see #destroy?
         
     | 
| 
       1795 
1797 
     | 
    
         
             
             */
         
     | 
| 
       1796 
1798 
     | 
    
         
             
            static VALUE Texture_destroy(VALUE self)
         
     | 
| 
         @@ -1818,7 +1820,7 @@ static VALUE Texture_blend_mode(VALUE self) 
     | 
|
| 
       1818 
1820 
     | 
    
         
             
             *   Set the blending model of the texture.
         
     | 
| 
       1819 
1821 
     | 
    
         
             
             *
         
     | 
| 
       1820 
1822 
     | 
    
         
             
             *   @param mode [Integer] blending mode
         
     | 
| 
       1821 
     | 
    
         
            -
             *   @return [ 
     | 
| 
      
 1823 
     | 
    
         
            +
             *   @return [void]
         
     | 
| 
       1822 
1824 
     | 
    
         
             
             *
         
     | 
| 
       1823 
1825 
     | 
    
         
             
             *   @see #blend_mode
         
     | 
| 
       1824 
1826 
     | 
    
         
             
             */
         
     | 
| 
         @@ -1848,7 +1850,7 @@ static VALUE Texture_alpha_mod(VALUE self) 
     | 
|
| 
       1848 
1850 
     | 
    
         
             
             *
         
     | 
| 
       1849 
1851 
     | 
    
         
             
             *   @param alpha [Integer] the alpha value multiplied into copy operation,
         
     | 
| 
       1850 
1852 
     | 
    
         
             
             *     from 0 to 255
         
     | 
| 
       1851 
     | 
    
         
            -
             *   @return [ 
     | 
| 
      
 1853 
     | 
    
         
            +
             *   @return [void]
         
     | 
| 
       1852 
1854 
     | 
    
         
             
             *
         
     | 
| 
       1853 
1855 
     | 
    
         
             
             *   @see #alpha_mod
         
     | 
| 
       1854 
1856 
     | 
    
         
             
             */
         
     | 
| 
         @@ -1861,7 +1863,7 @@ static VALUE Texture_set_alpha_mod(VALUE self, VALUE alpha) 
     | 
|
| 
       1861 
1863 
     | 
    
         
             
            /*
         
     | 
| 
       1862 
1864 
     | 
    
         
             
             * Get an additional color value used in render copy operations.
         
     | 
| 
       1863 
1865 
     | 
    
         
             
             *
         
     | 
| 
       1864 
     | 
    
         
            -
             * @return [ 
     | 
| 
      
 1866 
     | 
    
         
            +
             * @return [Array(Integer, Integer, Integer)] the current red, green, and blue
         
     | 
| 
       1865 
1867 
     | 
    
         
             
             *   color value.
         
     | 
| 
       1866 
1868 
     | 
    
         
             
             */
         
     | 
| 
       1867 
1869 
     | 
    
         
             
            static VALUE Texture_color_mod(VALUE self)
         
     | 
| 
         @@ -1875,9 +1877,9 @@ static VALUE Texture_color_mod(VALUE self) 
     | 
|
| 
       1875 
1877 
     | 
    
         
             
             * @overload color_mod=(rgb)
         
     | 
| 
       1876 
1878 
     | 
    
         
             
             *   Set an additional color value used in render copy operations.
         
     | 
| 
       1877 
1879 
     | 
    
         
             
             *
         
     | 
| 
       1878 
     | 
    
         
            -
             *   @param rgb [ 
     | 
| 
      
 1880 
     | 
    
         
            +
             *   @param rgb [Array(Integer, Integer, Integer)] the red, green, and blue
         
     | 
| 
       1879 
1881 
     | 
    
         
             
             *     color value multiplied into copy operations.
         
     | 
| 
       1880 
     | 
    
         
            -
             *   @return [ 
     | 
| 
      
 1882 
     | 
    
         
            +
             *   @return [void]
         
     | 
| 
       1881 
1883 
     | 
    
         
             
             */
         
     | 
| 
       1882 
1884 
     | 
    
         
             
            static VALUE Texture_set_color_mod(VALUE self, VALUE rgb)
         
     | 
| 
       1883 
1885 
     | 
    
         
             
            {
         
     | 
| 
         @@ -2033,7 +2035,7 @@ static VALUE Surface_s_save_bmp(VALUE self, VALUE src, VALUE fname) 
     | 
|
| 
       2033 
2035 
     | 
    
         
             
            }
         
     | 
| 
       2034 
2036 
     | 
    
         | 
| 
       2035 
2037 
     | 
    
         
             
            /*
         
     | 
| 
       2036 
     | 
    
         
            -
             * @overload from_string(string, width,  
     | 
| 
      
 2038 
     | 
    
         
            +
             * @overload from_string(string, width, height, depth, pitch=nil, rmask=nil, gmask=nil, bmask=nil, amask=nil)
         
     | 
| 
       2037 
2039 
     | 
    
         
             
             *
         
     | 
| 
       2038 
2040 
     | 
    
         
             
             *   Create a RGB surface from pixel data as String object.
         
     | 
| 
       2039 
2041 
     | 
    
         
             
             *
         
     | 
| 
         @@ -2129,7 +2131,7 @@ static VALUE Surface_blend_mode(VALUE self) 
     | 
|
| 
       2129 
2131 
     | 
    
         
             
             *   Set the blending mode of the surface used for blit operations.
         
     | 
| 
       2130 
2132 
     | 
    
         
             
             *
         
     | 
| 
       2131 
2133 
     | 
    
         
             
             *   @param mode [Integer] the blending mode
         
     | 
| 
       2132 
     | 
    
         
            -
             *   @return [ 
     | 
| 
      
 2134 
     | 
    
         
            +
             *   @return [void]
         
     | 
| 
       2133 
2135 
     | 
    
         
             
             *   @see #blend_mode
         
     | 
| 
       2134 
2136 
     | 
    
         
             
             */
         
     | 
| 
       2135 
2137 
     | 
    
         
             
            static VALUE Surface_set_blend_mode(VALUE self, VALUE mode)
         
     | 
| 
         @@ -2256,7 +2258,7 @@ static VALUE Surface_bytes_per_pixel(VALUE self) 
     | 
|
| 
       2256 
2258 
     | 
    
         
             
             *
         
     | 
| 
       2257 
2259 
     | 
    
         
             
             *   @param x [Integer] the x coordinate
         
     | 
| 
       2258 
2260 
     | 
    
         
             
             *   @param y [Integer] the y coordinate
         
     | 
| 
       2259 
     | 
    
         
            -
             *   @return [ 
     | 
| 
      
 2261 
     | 
    
         
            +
             *   @return [Array(Integer, Integer, Integer, Integer)]
         
     | 
| 
       2260 
2262 
     | 
    
         
             
             *     the red, green, blue, and alpha component of the specified pixel.
         
     | 
| 
       2261 
2263 
     | 
    
         
             
             *
         
     | 
| 
       2262 
2264 
     | 
    
         
             
             */
         
     | 
| 
         @@ -2316,7 +2318,7 @@ static VALUE Surface_unset_color_key(VALUE self) 
     | 
|
| 
       2316 
2318 
     | 
    
         
             
             *     the color key, pixel value (see {#pixel}) or pixel color (array of
         
     | 
| 
       2317 
2319 
     | 
    
         
             
             *     three or four integer elements).
         
     | 
| 
       2318 
2320 
     | 
    
         
             
             *
         
     | 
| 
       2319 
     | 
    
         
            -
             *   @return [ 
     | 
| 
      
 2321 
     | 
    
         
            +
             *   @return [Integer, Array<Integer>] value
         
     | 
| 
       2320 
2322 
     | 
    
         
             
             *
         
     | 
| 
       2321 
2323 
     | 
    
         
             
             *   @see #color_key
         
     | 
| 
       2322 
2324 
     | 
    
         
             
             *   @see #unset_color_key
         
     | 
| 
         @@ -2477,8 +2479,13 @@ static VALUE Surface_s_new(int argc, VALUE* argv, VALUE self) 
     | 
|
| 
       2477 
2479 
     | 
    
         
             
             *   Height of the rectangle
         
     | 
| 
       2478 
2480 
     | 
    
         
             
             *   @return [Integer]
         
     | 
| 
       2479 
2481 
     | 
    
         
             
             *
         
     | 
| 
       2480 
     | 
    
         
            -
             * @!method self.[]( 
     | 
| 
      
 2482 
     | 
    
         
            +
             * @!method self.[](x, y, w, h)
         
     | 
| 
       2481 
2483 
     | 
    
         
             
             *   Alias of new. See {#initialize}.
         
     | 
| 
      
 2484 
     | 
    
         
            +
             *
         
     | 
| 
      
 2485 
     | 
    
         
            +
             *   @param x [Integer] X coordiante of the left-top point of the rectangle
         
     | 
| 
      
 2486 
     | 
    
         
            +
             *   @param y [Integer] Y coordiante of the left-top point of the rectangle
         
     | 
| 
      
 2487 
     | 
    
         
            +
             *   @param w [Integer] Width of the rectangle
         
     | 
| 
      
 2488 
     | 
    
         
            +
             *   @param h [Integer] Height of the rectangle
         
     | 
| 
       2482 
2489 
     | 
    
         
             
             *   @return [SDL2::Rect]
         
     | 
| 
       2483 
2490 
     | 
    
         
             
             */
         
     | 
| 
       2484 
2491 
     | 
    
         
             
            static VALUE Rect_s_allocate(VALUE klass)
         
     | 
| 
         @@ -2749,6 +2756,8 @@ static VALUE PixelFormat_fourcc_p(VALUE self) 
     | 
|
| 
       2749 
2756 
     | 
    
         
             
             * @overload ==(other)
         
     | 
| 
       2750 
2757 
     | 
    
         
             
             *   Return true if two pixel format is the same format.
         
     | 
| 
       2751 
2758 
     | 
    
         
             
             *
         
     | 
| 
      
 2759 
     | 
    
         
            +
             * @param other [SDL2::PixelFormat] other PixelFormat object
         
     | 
| 
      
 2760 
     | 
    
         
            +
             *
         
     | 
| 
       2752 
2761 
     | 
    
         
             
             * @return [Boolean]
         
     | 
| 
       2753 
2762 
     | 
    
         
             
             */
         
     | 
| 
       2754 
2763 
     | 
    
         
             
            static VALUE PixelFormat_eq(VALUE self, VALUE other)
         
     | 
| 
         @@ -2874,45 +2883,45 @@ void rubysdl2_init_video(void) 
     | 
|
| 
       2874 
2883 
     | 
    
         
             
            #endif
         
     | 
| 
       2875 
2884 
     | 
    
         
             
                rb_define_method(cWindow, "gl_swap", Window_gl_swap, 0);
         
     | 
| 
       2876 
2885 
     | 
    
         | 
| 
       2877 
     | 
    
         
            -
                /* Indicate that you don't care what the window position is */
         
     | 
| 
      
 2886 
     | 
    
         
            +
                /* @return [Integer] Indicate that you don't care what the window position is */
         
     | 
| 
       2878 
2887 
     | 
    
         
             
                rb_define_const(cWindow, "POS_CENTERED", INT2NUM(SDL_WINDOWPOS_CENTERED));
         
     | 
| 
       2879 
     | 
    
         
            -
                /* Indicate that the window position should be centered */
         
     | 
| 
      
 2888 
     | 
    
         
            +
                /* @return [Integer] Indicate that the window position should be centered */
         
     | 
| 
       2880 
2889 
     | 
    
         
             
                rb_define_const(cWindow, "POS_UNDEFINED", INT2NUM(SDL_WINDOWPOS_UNDEFINED));
         
     | 
| 
       2881 
2890 
     | 
    
         | 
| 
       2882 
2891 
     | 
    
         
             
                mWindowFlags = rb_define_module_under(cWindow, "Flags");
         
     | 
| 
       2883 
2892 
     | 
    
         
             
                /*  */
         
     | 
| 
       2884 
     | 
    
         
            -
                /* fullscreen window */
         
     | 
| 
      
 2893 
     | 
    
         
            +
                /* @return [Integer] fullscreen window */
         
     | 
| 
       2885 
2894 
     | 
    
         
             
                rb_define_const(mWindowFlags, "FULLSCREEN", UINT2NUM(SDL_WINDOW_FULLSCREEN));
         
     | 
| 
       2886 
     | 
    
         
            -
                /* fullscreen window at the current desktop resolution */
         
     | 
| 
      
 2895 
     | 
    
         
            +
                /* @return [Integer] fullscreen window at the current desktop resolution */
         
     | 
| 
       2887 
2896 
     | 
    
         
             
                rb_define_const(mWindowFlags, "FULLSCREEN_DESKTOP", UINT2NUM(SDL_WINDOW_FULLSCREEN_DESKTOP));
         
     | 
| 
       2888 
     | 
    
         
            -
                /* window usable with OpenGL context */
         
     | 
| 
      
 2897 
     | 
    
         
            +
                /* @return [Integer] window usable with OpenGL context */
         
     | 
| 
       2889 
2898 
     | 
    
         
             
                rb_define_const(mWindowFlags, "OPENGL", UINT2NUM(SDL_WINDOW_OPENGL));
         
     | 
| 
       2890 
     | 
    
         
            -
                /* window is visible */
         
     | 
| 
      
 2899 
     | 
    
         
            +
                /* @return [Integer] window is visible */
         
     | 
| 
       2891 
2900 
     | 
    
         
             
                rb_define_const(mWindowFlags, "SHOWN", UINT2NUM(SDL_WINDOW_SHOWN));
         
     | 
| 
       2892 
     | 
    
         
            -
                /* window is not visible */
         
     | 
| 
      
 2901 
     | 
    
         
            +
                /* @return [Integer] window is not visible */
         
     | 
| 
       2893 
2902 
     | 
    
         
             
                rb_define_const(mWindowFlags, "HIDDEN", UINT2NUM(SDL_WINDOW_HIDDEN));
         
     | 
| 
       2894 
     | 
    
         
            -
                /* no window decoration */
         
     | 
| 
      
 2903 
     | 
    
         
            +
                /* @return [Integer] no window decoration */
         
     | 
| 
       2895 
2904 
     | 
    
         
             
                rb_define_const(mWindowFlags, "BORDERLESS", UINT2NUM(SDL_WINDOW_BORDERLESS));
         
     | 
| 
       2896 
     | 
    
         
            -
                /* window is resizable */
         
     | 
| 
      
 2905 
     | 
    
         
            +
                /* @return [Integer] window is resizable */
         
     | 
| 
       2897 
2906 
     | 
    
         
             
                rb_define_const(mWindowFlags, "RESIZABLE", UINT2NUM(SDL_WINDOW_RESIZABLE));
         
     | 
| 
       2898 
     | 
    
         
            -
                /* window is minimized */
         
     | 
| 
      
 2907 
     | 
    
         
            +
                /* @return [Integer] window is minimized */
         
     | 
| 
       2899 
2908 
     | 
    
         
             
                rb_define_const(mWindowFlags, "MINIMIZED", UINT2NUM(SDL_WINDOW_MINIMIZED));
         
     | 
| 
       2900 
     | 
    
         
            -
                /* window is maximized */
         
     | 
| 
      
 2909 
     | 
    
         
            +
                /* @return [Integer] window is maximized */
         
     | 
| 
       2901 
2910 
     | 
    
         
             
                rb_define_const(mWindowFlags, "MAXIMIZED", UINT2NUM(SDL_WINDOW_MAXIMIZED));
         
     | 
| 
       2902 
     | 
    
         
            -
                /* window has grabbed input focus */
         
     | 
| 
      
 2911 
     | 
    
         
            +
                /* @return [Integer] window has grabbed input focus */
         
     | 
| 
       2903 
2912 
     | 
    
         
             
                rb_define_const(mWindowFlags, "INPUT_GRABBED", UINT2NUM(SDL_WINDOW_INPUT_GRABBED));
         
     | 
| 
       2904 
     | 
    
         
            -
                /* window has input focus */
         
     | 
| 
      
 2913 
     | 
    
         
            +
                /* @return [Integer] window has input focus */
         
     | 
| 
       2905 
2914 
     | 
    
         
             
                rb_define_const(mWindowFlags, "INPUT_FOCUS", UINT2NUM(SDL_WINDOW_INPUT_FOCUS));
         
     | 
| 
       2906 
     | 
    
         
            -
                /* window has mouse focus */
         
     | 
| 
      
 2915 
     | 
    
         
            +
                /* @return [Integer] window has mouse focus */
         
     | 
| 
       2907 
2916 
     | 
    
         
             
                rb_define_const(mWindowFlags, "MOUSE_FOCUS", UINT2NUM(SDL_WINDOW_MOUSE_FOCUS));
         
     | 
| 
       2908 
     | 
    
         
            -
                /* window is not created by SDL */
         
     | 
| 
      
 2917 
     | 
    
         
            +
                /* @return [Integer] window is not created by SDL */
         
     | 
| 
       2909 
2918 
     | 
    
         
             
                rb_define_const(mWindowFlags, "FOREIGN", UINT2NUM(SDL_WINDOW_FOREIGN));
         
     | 
| 
       2910 
2919 
     | 
    
         
             
            #ifdef HAVE_CONST_SDL_WINDOW_ALLOW_HIGHDPI
         
     | 
| 
       2911 
     | 
    
         
            -
                /* window should be created in high-DPI mode if supported (>= SDL 2.0.1)*/
         
     | 
| 
      
 2920 
     | 
    
         
            +
                /* @return [Integer] window should be created in high-DPI mode if supported (>= SDL 2.0.1)*/
         
     | 
| 
       2912 
2921 
     | 
    
         
             
                rb_define_const(mWindowFlags, "ALLOW_HIGHDPI", UINT2NUM(SDL_WINDOW_ALLOW_HIGHDPI));
         
     | 
| 
       2913 
2922 
     | 
    
         
             
            #endif
         
     | 
| 
       2914 
2923 
     | 
    
         
             
            #ifdef HAVE_CONST_SDL_WINDOW_MOUSE_CAPTURE
         
     | 
| 
       2915 
     | 
    
         
            -
                /* window has mouse caputred (>= SDL 2.0.4) */
         
     | 
| 
      
 2924 
     | 
    
         
            +
                /* @return [Integer] window has mouse caputred (>= SDL 2.0.4) */
         
     | 
| 
       2916 
2925 
     | 
    
         
             
                rb_define_const(mWindowFlags, "MOUSE_CAPTURE", UINT2NUM(SDL_WINDOW_MOUSE_CAPTURE));
         
     | 
| 
       2917 
2926 
     | 
    
         
             
            #endif
         
     | 
| 
       2918 
2927 
     | 
    
         | 
| 
         @@ -2982,33 +2991,33 @@ void rubysdl2_init_video(void) 
     | 
|
| 
       2982 
2991 
     | 
    
         
             
                mRendererFlags = rb_define_module_under(cRenderer, "Flags");
         
     | 
| 
       2983 
2992 
     | 
    
         | 
| 
       2984 
2993 
     | 
    
         
             
                /*  */
         
     | 
| 
       2985 
     | 
    
         
            -
                /* the renderer is a software fallback */
         
     | 
| 
      
 2994 
     | 
    
         
            +
                /* @return [Integer] the renderer is a software fallback */
         
     | 
| 
       2986 
2995 
     | 
    
         
             
                rb_define_const(mRendererFlags, "SOFTWARE", UINT2NUM(SDL_RENDERER_SOFTWARE));
         
     | 
| 
       2987 
     | 
    
         
            -
                /* the renderer uses hardware acceleration */
         
     | 
| 
      
 2996 
     | 
    
         
            +
                /* @return [Integer] the renderer uses hardware acceleration */
         
     | 
| 
       2988 
2997 
     | 
    
         
             
                rb_define_const(mRendererFlags, "ACCELERATED", UINT2NUM(SDL_RENDERER_ACCELERATED));
         
     | 
| 
       2989 
2998 
     | 
    
         
             
            #ifdef HAVE_CONST_SDL_RENDERER_PRESENTVSYNC
         
     | 
| 
       2990 
     | 
    
         
            -
                /* present is synchronized with the refresh rate */
         
     | 
| 
      
 2999 
     | 
    
         
            +
                /* @return [Integer] present is synchronized with the refresh rate */
         
     | 
| 
       2991 
3000 
     | 
    
         
             
                rb_define_const(mRendererFlags, "PRESENTVSYNC", UINT2NUM(SDL_RENDERER_PRESENTVSYNC));
         
     | 
| 
       2992 
3001 
     | 
    
         
             
            #endif
         
     | 
| 
       2993 
     | 
    
         
            -
                /* the renderer supports rendering to texture */
         
     | 
| 
      
 3002 
     | 
    
         
            +
                /* @return [Integer] the renderer supports rendering to texture */
         
     | 
| 
       2994 
3003 
     | 
    
         
             
                rb_define_const(mRendererFlags, "TARGETTEXTURE", UINT2NUM(SDL_RENDERER_TARGETTEXTURE));
         
     | 
| 
       2995 
3004 
     | 
    
         
             
                /*  */
         
     | 
| 
       2996 
     | 
    
         
            -
                /* Do not flip, used in {Renderer#copy_ex} */
         
     | 
| 
      
 3005 
     | 
    
         
            +
                /* @return [Integer] Do not flip, used in {Renderer#copy_ex} */
         
     | 
| 
       2997 
3006 
     | 
    
         
             
                rb_define_const(cRenderer, "FLIP_NONE", INT2FIX(SDL_FLIP_NONE));
         
     | 
| 
       2998 
     | 
    
         
            -
                /* Flip horizontally, used in {Renderer#copy_ex} */
         
     | 
| 
      
 3007 
     | 
    
         
            +
                /* @return [Integer] Flip horizontally, used in {Renderer#copy_ex} */
         
     | 
| 
       2999 
3008 
     | 
    
         
             
                rb_define_const(cRenderer, "FLIP_HORIZONTAL", INT2FIX(SDL_FLIP_HORIZONTAL));
         
     | 
| 
       3000 
     | 
    
         
            -
                /* Flip vertically, used in {Renderer#copy_ex} */
         
     | 
| 
      
 3009 
     | 
    
         
            +
                /* @return [Integer] Flip vertically, used in {Renderer#copy_ex} */
         
     | 
| 
       3001 
3010 
     | 
    
         
             
                rb_define_const(cRenderer, "FLIP_VERTICAL", INT2FIX(SDL_FLIP_VERTICAL));
         
     | 
| 
       3002 
3011 
     | 
    
         | 
| 
       3003 
3012 
     | 
    
         
             
                mBlendMode = rb_define_module_under(mSDL2, "BlendMode");
         
     | 
| 
       3004 
3013 
     | 
    
         
             
                /*  */
         
     | 
| 
       3005 
     | 
    
         
            -
                /* no blending (dstRGBA = srcRGBA) */
         
     | 
| 
      
 3014 
     | 
    
         
            +
                /* @return [Integer] no blending (dstRGBA = srcRGBA) */
         
     | 
| 
       3006 
3015 
     | 
    
         
             
                rb_define_const(mBlendMode, "NONE", INT2FIX(SDL_BLENDMODE_NONE));
         
     | 
| 
       3007 
     | 
    
         
            -
                /* alpha blending (dstRGB = (srcRGB * srcA) + (dstRGB * (1-srcA), dstA = srcA + (dstA * (1-srcA)))*/
         
     | 
| 
      
 3016 
     | 
    
         
            +
                /* @return [Integer] alpha blending (dstRGB = (srcRGB * srcA) + (dstRGB * (1-srcA), dstA = srcA + (dstA * (1-srcA)))*/
         
     | 
| 
       3008 
3017 
     | 
    
         
             
                rb_define_const(mBlendMode, "BLEND", INT2FIX(SDL_BLENDMODE_BLEND));
         
     | 
| 
       3009 
     | 
    
         
            -
                /* additive blending (dstRGB = (srcRGB * srcA) + dstRGB, dstA = dstA) */
         
     | 
| 
      
 3018 
     | 
    
         
            +
                /* @return [Integer] additive blending (dstRGB = (srcRGB * srcA) + dstRGB, dstA = dstA) */
         
     | 
| 
       3010 
3019 
     | 
    
         
             
                rb_define_const(mBlendMode, "ADD", INT2FIX(SDL_BLENDMODE_ADD));
         
     | 
| 
       3011 
     | 
    
         
            -
                /* color modulate (multiplicative) (dstRGB = srcRGB * dstRGB, dstA = dstA) */
         
     | 
| 
      
 3020 
     | 
    
         
            +
                /* @return [Integer] color modulate (multiplicative) (dstRGB = srcRGB * dstRGB, dstA = dstA) */
         
     | 
| 
       3012 
3021 
     | 
    
         
             
                rb_define_const(mBlendMode, "MOD", INT2FIX(SDL_BLENDMODE_MOD));
         
     | 
| 
       3013 
3022 
     | 
    
         | 
| 
       3014 
3023 
     | 
    
         
             
                cTexture = rb_define_class_under(mSDL2, "Texture", rb_cObject);
         
     | 
| 
         @@ -3029,11 +3038,11 @@ void rubysdl2_init_video(void) 
     | 
|
| 
       3029 
3038 
     | 
    
         
             
                rb_define_method(cTexture, "inspect", Texture_inspect, 0);
         
     | 
| 
       3030 
3039 
     | 
    
         
             
                rb_define_method(cTexture, "debug_info", Texture_debug_info, 0);
         
     | 
| 
       3031 
3040 
     | 
    
         
             
                /*  */
         
     | 
| 
       3032 
     | 
    
         
            -
                /* texture access pattern - changes rarely, not lockable */
         
     | 
| 
      
 3041 
     | 
    
         
            +
                /* @return [Integer] texture access pattern code - changes rarely, not lockable */
         
     | 
| 
       3033 
3042 
     | 
    
         
             
                rb_define_const(cTexture, "ACCESS_STATIC", INT2NUM(SDL_TEXTUREACCESS_STATIC));
         
     | 
| 
       3034 
     | 
    
         
            -
                /* texture access pattern - changes frequently, lockable */
         
     | 
| 
      
 3043 
     | 
    
         
            +
                /* @return [Integer] texture access pattern code - changes frequently, lockable */
         
     | 
| 
       3035 
3044 
     | 
    
         
             
                rb_define_const(cTexture, "ACCESS_STREAMING", INT2NUM(SDL_TEXTUREACCESS_STREAMING));
         
     | 
| 
       3036 
     | 
    
         
            -
                /* texture access pattern - can be used as a render target */
         
     | 
| 
      
 3045 
     | 
    
         
            +
                /* @return [Integer] texture access pattern code - can be used as a render target */
         
     | 
| 
       3037 
3046 
     | 
    
         
             
                rb_define_const(cTexture, "ACCESS_TARGET", INT2NUM(SDL_TEXTUREACCESS_TARGET));
         
     | 
| 
       3038 
3047 
     | 
    
         | 
| 
       3039 
3048 
     | 
    
         | 
| 
         @@ -3058,7 +3067,7 @@ void rubysdl2_init_video(void) 
     | 
|
| 
       3058 
3067 
     | 
    
         
             
                rb_define_method(cSurface, "pixel_color", Surface_pixel_color, 2);
         
     | 
| 
       3059 
3068 
     | 
    
         
             
                rb_define_method(cSurface, "color_key", Surface_color_key, 0);
         
     | 
| 
       3060 
3069 
     | 
    
         
             
                rb_define_method(cSurface, "color_key=", Surface_set_color_key, 1);
         
     | 
| 
       3061 
     | 
    
         
            -
                rb_define_method(cSurface, "unset_color_key",  
     | 
| 
      
 3070 
     | 
    
         
            +
                rb_define_method(cSurface, "unset_color_key", Surface_unset_color_key, 0);
         
     | 
| 
       3062 
3071 
     | 
    
         
             
                rb_define_method(cSurface, "pixels", Surface_pixels, 0);
         
     | 
| 
       3063 
3072 
     | 
    
         
             
                rb_define_method(cSurface, "pitch", Surface_pitch, 0);
         
     | 
| 
       3064 
3073 
     | 
    
         
             
                rb_define_method(cSurface, "bits_per_pixel", Surface_bits_per_pixel, 0);
         
     | 
| 
         @@ -3117,278 +3126,319 @@ void rubysdl2_init_video(void) 
     | 
|
| 
       3117 
3126 
     | 
    
         | 
| 
       3118 
3127 
     | 
    
         
             
                mPixelType = rb_define_module_under(cPixelFormat, "Type");
         
     | 
| 
       3119 
3128 
     | 
    
         
             
                /*  */
         
     | 
| 
      
 3129 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3120 
3130 
     | 
    
         
             
                rb_define_const(mPixelType, "UNKNOWN", UINT2NUM(SDL_PIXELTYPE_UNKNOWN));
         
     | 
| 
      
 3131 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3121 
3132 
     | 
    
         
             
                rb_define_const(mPixelType, "INDEX1", UINT2NUM(SDL_PIXELTYPE_INDEX1));
         
     | 
| 
      
 3133 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3122 
3134 
     | 
    
         
             
                rb_define_const(mPixelType, "INDEX4", UINT2NUM(SDL_PIXELTYPE_INDEX4));
         
     | 
| 
      
 3135 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3123 
3136 
     | 
    
         
             
                rb_define_const(mPixelType, "INDEX8", UINT2NUM(SDL_PIXELTYPE_INDEX8));
         
     | 
| 
      
 3137 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3124 
3138 
     | 
    
         
             
                rb_define_const(mPixelType, "PACKED8", UINT2NUM(SDL_PIXELTYPE_PACKED8));
         
     | 
| 
      
 3139 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3125 
3140 
     | 
    
         
             
                rb_define_const(mPixelType, "PACKED16", UINT2NUM(SDL_PIXELTYPE_PACKED16));
         
     | 
| 
      
 3141 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3126 
3142 
     | 
    
         
             
                rb_define_const(mPixelType, "PACKED32", UINT2NUM(SDL_PIXELTYPE_PACKED32));
         
     | 
| 
      
 3143 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3127 
3144 
     | 
    
         
             
                rb_define_const(mPixelType, "ARRAYU8", UINT2NUM(SDL_PIXELTYPE_ARRAYU8));
         
     | 
| 
      
 3145 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3128 
3146 
     | 
    
         
             
                rb_define_const(mPixelType, "ARRAYU16", UINT2NUM(SDL_PIXELTYPE_ARRAYU16));
         
     | 
| 
      
 3147 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3129 
3148 
     | 
    
         
             
                rb_define_const(mPixelType, "ARRAYU32", UINT2NUM(SDL_PIXELTYPE_ARRAYU32));
         
     | 
| 
      
 3149 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3130 
3150 
     | 
    
         
             
                rb_define_const(mPixelType, "ARRAYF16", UINT2NUM(SDL_PIXELTYPE_ARRAYF16));
         
     | 
| 
      
 3151 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3131 
3152 
     | 
    
         
             
                rb_define_const(mPixelType, "ARRAYF32", UINT2NUM(SDL_PIXELTYPE_ARRAYF32));
         
     | 
| 
       3132 
3153 
     | 
    
         | 
| 
       3133 
3154 
     | 
    
         
             
                mBitmapOrder = rb_define_module_under(cPixelFormat, "BitmapOrder");
         
     | 
| 
      
 3155 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3134 
3156 
     | 
    
         
             
                rb_define_const(mBitmapOrder, "NONE", UINT2NUM(SDL_BITMAPORDER_NONE));
         
     | 
| 
      
 3157 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3135 
3158 
     | 
    
         
             
                rb_define_const(mBitmapOrder, "O_1234", UINT2NUM(SDL_BITMAPORDER_1234));
         
     | 
| 
      
 3159 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3136 
3160 
     | 
    
         
             
                rb_define_const(mBitmapOrder, "O_4321", UINT2NUM(SDL_BITMAPORDER_4321));
         
     | 
| 
       3137 
3161 
     | 
    
         | 
| 
       3138 
3162 
     | 
    
         
             
                mPackedOrder = rb_define_module_under(cPixelFormat, "PackedOrder");
         
     | 
| 
       3139 
     | 
    
         
            -
                /* 
     | 
| 
      
 3163 
     | 
    
         
            +
                /*
         
     | 
| 
      
 3164 
     | 
    
         
            +
                   */
         
     | 
| 
      
 3165 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3140 
3166 
     | 
    
         
             
                rb_define_const(mPackedOrder, "NONE", UINT2NUM(SDL_PACKEDORDER_NONE));
         
     | 
| 
      
 3167 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3141 
3168 
     | 
    
         
             
                rb_define_const(mPackedOrder, "XRGB", UINT2NUM(SDL_PACKEDORDER_XRGB));
         
     | 
| 
      
 3169 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3142 
3170 
     | 
    
         
             
                rb_define_const(mPackedOrder, "RGBX", UINT2NUM(SDL_PACKEDORDER_RGBX));
         
     | 
| 
      
 3171 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3143 
3172 
     | 
    
         
             
                rb_define_const(mPackedOrder, "ARGB", UINT2NUM(SDL_PACKEDORDER_ARGB));
         
     | 
| 
      
 3173 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3144 
3174 
     | 
    
         
             
                rb_define_const(mPackedOrder, "RGBA", UINT2NUM(SDL_PACKEDORDER_RGBA));
         
     | 
| 
      
 3175 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3145 
3176 
     | 
    
         
             
                rb_define_const(mPackedOrder, "XBGR", UINT2NUM(SDL_PACKEDORDER_XBGR));
         
     | 
| 
      
 3177 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3146 
3178 
     | 
    
         
             
                rb_define_const(mPackedOrder, "BGRX", UINT2NUM(SDL_PACKEDORDER_BGRX));
         
     | 
| 
      
 3179 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3147 
3180 
     | 
    
         
             
                rb_define_const(mPackedOrder, "ABGR", UINT2NUM(SDL_PACKEDORDER_ABGR));
         
     | 
| 
      
 3181 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3148 
3182 
     | 
    
         
             
                rb_define_const(mPackedOrder, "BGRA", UINT2NUM(SDL_PACKEDORDER_BGRA));
         
     | 
| 
       3149 
3183 
     | 
    
         | 
| 
       3150 
3184 
     | 
    
         
             
                mArrayOrder = rb_define_module_under(cPixelFormat, "ArrayOrder");
         
     | 
| 
       3151 
3185 
     | 
    
         
             
                /*  */
         
     | 
| 
      
 3186 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3152 
3187 
     | 
    
         
             
                rb_define_const(mArrayOrder, "NONE", UINT2NUM(SDL_ARRAYORDER_NONE));
         
     | 
| 
      
 3188 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3153 
3189 
     | 
    
         
             
                rb_define_const(mArrayOrder, "RGB", UINT2NUM(SDL_ARRAYORDER_RGB));
         
     | 
| 
      
 3190 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3154 
3191 
     | 
    
         
             
                rb_define_const(mArrayOrder, "RGBA", UINT2NUM(SDL_ARRAYORDER_RGBA));
         
     | 
| 
      
 3192 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3155 
3193 
     | 
    
         
             
                rb_define_const(mArrayOrder, "ARGB", UINT2NUM(SDL_ARRAYORDER_ARGB));
         
     | 
| 
      
 3194 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3156 
3195 
     | 
    
         
             
                rb_define_const(mArrayOrder, "BGR", UINT2NUM(SDL_ARRAYORDER_BGR));
         
     | 
| 
      
 3196 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3157 
3197 
     | 
    
         
             
                rb_define_const(mArrayOrder, "BGRA", UINT2NUM(SDL_ARRAYORDER_BGRA));
         
     | 
| 
      
 3198 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3158 
3199 
     | 
    
         
             
                rb_define_const(mArrayOrder, "ABGR", UINT2NUM(SDL_ARRAYORDER_ABGR));
         
     | 
| 
       3159 
3200 
     | 
    
         | 
| 
       3160 
3201 
     | 
    
         
             
                mPackedLayout = rb_define_module_under(cPixelFormat, "PackedLayout");
         
     | 
| 
       3161 
3202 
     | 
    
         
             
                /*  */
         
     | 
| 
      
 3203 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3162 
3204 
     | 
    
         
             
                rb_define_const(mPackedLayout, "NONE", UINT2NUM(SDL_PACKEDLAYOUT_NONE));
         
     | 
| 
      
 3205 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3163 
3206 
     | 
    
         
             
                rb_define_const(mPackedLayout, "L_332", UINT2NUM(SDL_PACKEDLAYOUT_332));
         
     | 
| 
      
 3207 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3164 
3208 
     | 
    
         
             
                rb_define_const(mPackedLayout, "L_4444", UINT2NUM(SDL_PACKEDLAYOUT_4444));
         
     | 
| 
      
 3209 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3165 
3210 
     | 
    
         
             
                rb_define_const(mPackedLayout, "L_1555", UINT2NUM(SDL_PACKEDLAYOUT_1555));
         
     | 
| 
      
 3211 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3166 
3212 
     | 
    
         
             
                rb_define_const(mPackedLayout, "L_5551", UINT2NUM(SDL_PACKEDLAYOUT_5551));
         
     | 
| 
      
 3213 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3167 
3214 
     | 
    
         
             
                rb_define_const(mPackedLayout, "L_565", UINT2NUM(SDL_PACKEDLAYOUT_565));
         
     | 
| 
      
 3215 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3168 
3216 
     | 
    
         
             
                rb_define_const(mPackedLayout, "L_8888", UINT2NUM(SDL_PACKEDLAYOUT_8888));
         
     | 
| 
      
 3217 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3169 
3218 
     | 
    
         
             
                rb_define_const(mPackedLayout, "L_2101010", UINT2NUM(SDL_PACKEDLAYOUT_2101010));
         
     | 
| 
      
 3219 
     | 
    
         
            +
                /* @return [Integer] */
         
     | 
| 
       3170 
3220 
     | 
    
         
             
                rb_define_const(mPackedLayout, "L_1010102", UINT2NUM(SDL_PACKEDLAYOUT_1010102));
         
     | 
| 
       3171 
3221 
     | 
    
         | 
| 
       3172 
3222 
     | 
    
         
             
                {
         
     | 
| 
       3173 
3223 
     | 
    
         
             
                    VALUE formats = rb_ary_new();
         
     | 
| 
       3174 
     | 
    
         
            -
                    /* -: Array of all available formats */
         
     | 
| 
      
 3224 
     | 
    
         
            +
                    /* -: @return [Array<SDL2::PixelFormat>] array of all available formats */
         
     | 
| 
       3175 
3225 
     | 
    
         
             
                    rb_define_const(cPixelFormat, "FORMATS", formats);
         
     | 
| 
       3176 
3226 
     | 
    
         
             
                    /* 
         
     | 
| 
       3177 
3227 
     | 
    
         
             
                     */
         
     | 
| 
       3178 
3228 
     | 
    
         | 
| 
       3179 
3229 
     | 
    
         
             
                    do {
         
     | 
| 
       3180 
3230 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_UNKNOWN);
         
     | 
| 
       3181 
     | 
    
         
            -
                        /* -: PixelFormat 
     | 
| 
      
 3231 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat] Unused - reserved by SDL */
         
     | 
| 
       3182 
3232 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "UNKNOWN", format);
         
     | 
| 
       3183 
3233 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3184 
3234 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3185 
3235 
     | 
    
         
             
                    do {
         
     | 
| 
       3186 
3236 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_INDEX1LSB);
         
     | 
| 
       3187 
     | 
    
         
            -
                        
         
     | 
| 
      
 3237 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3188 
3238 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "INDEX1LSB", format);
         
     | 
| 
       3189 
3239 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3190 
3240 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3191 
3241 
     | 
    
         
             
                    do {
         
     | 
| 
       3192 
3242 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_INDEX1MSB);
         
     | 
| 
       3193 
     | 
    
         
            -
                        
         
     | 
| 
      
 3243 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3194 
3244 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "INDEX1MSB", format);
         
     | 
| 
       3195 
3245 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3196 
3246 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3197 
3247 
     | 
    
         
             
                    do {
         
     | 
| 
       3198 
3248 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_INDEX4LSB);
         
     | 
| 
       3199 
     | 
    
         
            -
                        
         
     | 
| 
      
 3249 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3200 
3250 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "INDEX4LSB", format);
         
     | 
| 
       3201 
3251 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3202 
3252 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3203 
3253 
     | 
    
         
             
                    do {
         
     | 
| 
       3204 
3254 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_INDEX4MSB);
         
     | 
| 
       3205 
     | 
    
         
            -
                        
         
     | 
| 
      
 3255 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3206 
3256 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "INDEX4MSB", format);
         
     | 
| 
       3207 
3257 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3208 
3258 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3209 
3259 
     | 
    
         
             
                    do {
         
     | 
| 
       3210 
3260 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_INDEX8);
         
     | 
| 
       3211 
     | 
    
         
            -
                        
         
     | 
| 
      
 3261 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3212 
3262 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "INDEX8", format);
         
     | 
| 
       3213 
3263 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3214 
3264 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3215 
3265 
     | 
    
         
             
                    do {
         
     | 
| 
       3216 
3266 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_RGB332);
         
     | 
| 
       3217 
     | 
    
         
            -
                        
         
     | 
| 
      
 3267 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3218 
3268 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "RGB332", format);
         
     | 
| 
       3219 
3269 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3220 
3270 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3221 
3271 
     | 
    
         
             
                    do {
         
     | 
| 
       3222 
3272 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_RGB444);
         
     | 
| 
       3223 
     | 
    
         
            -
                        
         
     | 
| 
      
 3273 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3224 
3274 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "RGB444", format);
         
     | 
| 
       3225 
3275 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3226 
3276 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3227 
3277 
     | 
    
         
             
                    do {
         
     | 
| 
       3228 
3278 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_RGB555);
         
     | 
| 
       3229 
     | 
    
         
            -
                        
         
     | 
| 
      
 3279 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3230 
3280 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "RGB555", format);
         
     | 
| 
       3231 
3281 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3232 
3282 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3233 
3283 
     | 
    
         
             
                    do {
         
     | 
| 
       3234 
3284 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_BGR555);
         
     | 
| 
       3235 
     | 
    
         
            -
                        
         
     | 
| 
      
 3285 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3236 
3286 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "BGR555", format);
         
     | 
| 
       3237 
3287 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3238 
3288 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3239 
3289 
     | 
    
         
             
                    do {
         
     | 
| 
       3240 
3290 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_ARGB4444);
         
     | 
| 
       3241 
     | 
    
         
            -
                        
         
     | 
| 
      
 3291 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3242 
3292 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "ARGB4444", format);
         
     | 
| 
       3243 
3293 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3244 
3294 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3245 
3295 
     | 
    
         
             
                    do {
         
     | 
| 
       3246 
3296 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_RGBA4444);
         
     | 
| 
       3247 
     | 
    
         
            -
                        
         
     | 
| 
      
 3297 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3248 
3298 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "RGBA4444", format);
         
     | 
| 
       3249 
3299 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3250 
3300 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3251 
3301 
     | 
    
         
             
                    do {
         
     | 
| 
       3252 
3302 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_ABGR4444);
         
     | 
| 
       3253 
     | 
    
         
            -
                        
         
     | 
| 
      
 3303 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3254 
3304 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "ABGR4444", format);
         
     | 
| 
       3255 
3305 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3256 
3306 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3257 
3307 
     | 
    
         
             
                    do {
         
     | 
| 
       3258 
3308 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_BGRA4444);
         
     | 
| 
       3259 
     | 
    
         
            -
                        
         
     | 
| 
      
 3309 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3260 
3310 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "BGRA4444", format);
         
     | 
| 
       3261 
3311 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3262 
3312 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3263 
3313 
     | 
    
         
             
                    do {
         
     | 
| 
       3264 
3314 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_ARGB1555);
         
     | 
| 
       3265 
     | 
    
         
            -
                        
         
     | 
| 
      
 3315 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3266 
3316 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "ARGB1555", format);
         
     | 
| 
       3267 
3317 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3268 
3318 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3269 
3319 
     | 
    
         
             
                    do {
         
     | 
| 
       3270 
3320 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_RGBA5551);
         
     | 
| 
       3271 
     | 
    
         
            -
                        
         
     | 
| 
      
 3321 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3272 
3322 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "RGBA5551", format);
         
     | 
| 
       3273 
3323 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3274 
3324 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3275 
3325 
     | 
    
         
             
                    do {
         
     | 
| 
       3276 
3326 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_ABGR1555);
         
     | 
| 
       3277 
     | 
    
         
            -
                        
         
     | 
| 
      
 3327 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3278 
3328 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "ABGR1555", format);
         
     | 
| 
       3279 
3329 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3280 
3330 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3281 
3331 
     | 
    
         
             
                    do {
         
     | 
| 
       3282 
3332 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_BGRA5551);
         
     | 
| 
       3283 
     | 
    
         
            -
                        
         
     | 
| 
      
 3333 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3284 
3334 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "BGRA5551", format);
         
     | 
| 
       3285 
3335 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3286 
3336 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3287 
3337 
     | 
    
         
             
                    do {
         
     | 
| 
       3288 
3338 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_RGB565);
         
     | 
| 
       3289 
     | 
    
         
            -
                        
         
     | 
| 
      
 3339 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3290 
3340 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "RGB565", format);
         
     | 
| 
       3291 
3341 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3292 
3342 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3293 
3343 
     | 
    
         
             
                    do {
         
     | 
| 
       3294 
3344 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_BGR565);
         
     | 
| 
       3295 
     | 
    
         
            -
                        
         
     | 
| 
      
 3345 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3296 
3346 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "BGR565", format);
         
     | 
| 
       3297 
3347 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3298 
3348 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3299 
3349 
     | 
    
         
             
                    do {
         
     | 
| 
       3300 
3350 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_RGB24);
         
     | 
| 
       3301 
     | 
    
         
            -
                        
         
     | 
| 
      
 3351 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3302 
3352 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "RGB24", format);
         
     | 
| 
       3303 
3353 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3304 
3354 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3305 
3355 
     | 
    
         
             
                    do {
         
     | 
| 
       3306 
3356 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_BGR24);
         
     | 
| 
       3307 
     | 
    
         
            -
                        
         
     | 
| 
      
 3357 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3308 
3358 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "BGR24", format);
         
     | 
| 
       3309 
3359 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3310 
3360 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3311 
3361 
     | 
    
         
             
                    do {
         
     | 
| 
       3312 
3362 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_RGB888);
         
     | 
| 
       3313 
     | 
    
         
            -
                        
         
     | 
| 
      
 3363 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3314 
3364 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "RGB888", format);
         
     | 
| 
       3315 
3365 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3316 
3366 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3317 
3367 
     | 
    
         
             
                    do {
         
     | 
| 
       3318 
3368 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_RGBX8888);
         
     | 
| 
       3319 
     | 
    
         
            -
                        
         
     | 
| 
      
 3369 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3320 
3370 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "RGBX8888", format);
         
     | 
| 
       3321 
3371 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3322 
3372 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3323 
3373 
     | 
    
         
             
                    do {
         
     | 
| 
       3324 
3374 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_BGR888);
         
     | 
| 
       3325 
     | 
    
         
            -
                        
         
     | 
| 
      
 3375 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3326 
3376 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "BGR888", format);
         
     | 
| 
       3327 
3377 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3328 
3378 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3329 
3379 
     | 
    
         
             
                    do {
         
     | 
| 
       3330 
3380 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_BGRX8888);
         
     | 
| 
       3331 
     | 
    
         
            -
                        
         
     | 
| 
      
 3381 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3332 
3382 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "BGRX8888", format);
         
     | 
| 
       3333 
3383 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3334 
3384 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3335 
3385 
     | 
    
         
             
                    do {
         
     | 
| 
       3336 
3386 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_ARGB8888);
         
     | 
| 
       3337 
     | 
    
         
            -
                        
         
     | 
| 
      
 3387 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3338 
3388 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "ARGB8888", format);
         
     | 
| 
       3339 
3389 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3340 
3390 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3341 
3391 
     | 
    
         
             
                    do {
         
     | 
| 
       3342 
3392 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_RGBA8888);
         
     | 
| 
       3343 
     | 
    
         
            -
                        
         
     | 
| 
      
 3393 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3344 
3394 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "RGBA8888", format);
         
     | 
| 
       3345 
3395 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3346 
3396 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3347 
3397 
     | 
    
         
             
                    do {
         
     | 
| 
       3348 
3398 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_ABGR8888);
         
     | 
| 
       3349 
     | 
    
         
            -
                        
         
     | 
| 
      
 3399 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3350 
3400 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "ABGR8888", format);
         
     | 
| 
       3351 
3401 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3352 
3402 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3353 
3403 
     | 
    
         
             
                    do {
         
     | 
| 
       3354 
3404 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_BGRA8888);
         
     | 
| 
       3355 
     | 
    
         
            -
                        
         
     | 
| 
      
 3405 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3356 
3406 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "BGRA8888", format);
         
     | 
| 
       3357 
3407 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3358 
3408 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3359 
3409 
     | 
    
         
             
                    do {
         
     | 
| 
       3360 
3410 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_ARGB2101010);
         
     | 
| 
       3361 
     | 
    
         
            -
                        
         
     | 
| 
      
 3411 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3362 
3412 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "ARGB2101010", format);
         
     | 
| 
       3363 
3413 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3364 
3414 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3365 
3415 
     | 
    
         
             
                    do {
         
     | 
| 
       3366 
3416 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_YV12);
         
     | 
| 
       3367 
     | 
    
         
            -
                        
         
     | 
| 
      
 3417 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3368 
3418 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "YV12", format);
         
     | 
| 
       3369 
3419 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3370 
3420 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3371 
3421 
     | 
    
         
             
                    do {
         
     | 
| 
       3372 
3422 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_IYUV);
         
     | 
| 
       3373 
     | 
    
         
            -
                        
         
     | 
| 
      
 3423 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3374 
3424 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "IYUV", format);
         
     | 
| 
       3375 
3425 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3376 
3426 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3377 
3427 
     | 
    
         
             
                    do {
         
     | 
| 
       3378 
3428 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_YUY2);
         
     | 
| 
       3379 
     | 
    
         
            -
                        
         
     | 
| 
      
 3429 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3380 
3430 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "YUY2", format);
         
     | 
| 
       3381 
3431 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3382 
3432 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3383 
3433 
     | 
    
         
             
                    do {
         
     | 
| 
       3384 
3434 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_UYVY);
         
     | 
| 
       3385 
     | 
    
         
            -
                        
         
     | 
| 
      
 3435 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3386 
3436 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "UYVY", format);
         
     | 
| 
       3387 
3437 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3388 
3438 
     | 
    
         
             
                    } while (0);
         
     | 
| 
       3389 
3439 
     | 
    
         
             
                    do {
         
     | 
| 
       3390 
3440 
     | 
    
         
             
                        VALUE format = PixelFormat_new(SDL_PIXELFORMAT_YVYU);
         
     | 
| 
       3391 
     | 
    
         
            -
                        
         
     | 
| 
      
 3441 
     | 
    
         
            +
                        /* -: @return [SDL2::PixelFormat]  */
         
     | 
| 
       3392 
3442 
     | 
    
         
             
                        rb_define_const(cPixelFormat, "YVYU", format);
         
     | 
| 
       3393 
3443 
     | 
    
         
             
                        rb_ary_push(formats, format);
         
     | 
| 
       3394 
3444 
     | 
    
         
             
                    } while (0);
         
     | 
| 
         @@ -3511,13 +3561,13 @@ void rubysdl2_init_image(void) 
     | 
|
| 
       3511 
3561 
     | 
    
         
             
                rb_define_method(cRenderer, "load_texture", Renderer_load_texture, 1);
         
     | 
| 
       3512 
3562 
     | 
    
         | 
| 
       3513 
3563 
     | 
    
         | 
| 
       3514 
     | 
    
         
            -
                /* Initialize the JPEG loader */
         
     | 
| 
      
 3564 
     | 
    
         
            +
                /* @return [Integer] Initialize the JPEG loader */
         
     | 
| 
       3515 
3565 
     | 
    
         
             
                rb_define_const(mIMG, "INIT_JPG", INT2NUM(IMG_INIT_JPG));
         
     | 
| 
       3516 
     | 
    
         
            -
                /* Initialize the PNG loader */
         
     | 
| 
      
 3566 
     | 
    
         
            +
                /* @return [Integer] Initialize the PNG loader */
         
     | 
| 
       3517 
3567 
     | 
    
         
             
                rb_define_const(mIMG, "INIT_PNG", INT2NUM(IMG_INIT_PNG));
         
     | 
| 
       3518 
     | 
    
         
            -
                /* Initialize the TIF loader */
         
     | 
| 
      
 3568 
     | 
    
         
            +
                /* @return [Integer] Initialize the TIF loader */
         
     | 
| 
       3519 
3569 
     | 
    
         
             
                rb_define_const(mIMG, "INIT_TIF", INT2NUM(IMG_INIT_TIF));
         
     | 
| 
       3520 
     | 
    
         
            -
                /* Initialize the WEBP loader */
         
     | 
| 
      
 3570 
     | 
    
         
            +
                /* @return [Integer] Initialize the WEBP loader */
         
     | 
| 
       3521 
3571 
     | 
    
         
             
                rb_define_const(mIMG, "INIT_WEBP", INT2NUM(IMG_INIT_WEBP));
         
     | 
| 
       3522 
3572 
     | 
    
         
             
            }
         
     | 
| 
       3523 
3573 
     | 
    
         |