From 3f0b8c691d29bfead175f75d3e48fa5275913502 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 21 Mar 2022 09:33:00 +0100 Subject: update to 2.6.0 fix build with PHP 8.0 using patch from https://github.com/Ponup/php-sdl/pull/60 open https://github.com/Ponup/php-sdl/issues/61 build failure with 2.0.10 open https://github.com/Ponup/php-sdl/issues/62 deprecated call --- REFLECTION | 464 +++++++++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 342 insertions(+), 122 deletions(-) (limited to 'REFLECTION') diff --git a/REFLECTION b/REFLECTION index aeeaaa2..a00c702 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #84 SDL version 2.5.0 ] { +Extension [ extension #120 SDL version 2.6.0 ] { - Constants [738] { Constant [ int SDL_BLENDMODE_NONE ] { 0 } @@ -716,11 +716,11 @@ Extension [ extension #84 SDL version 2.5.0 ] { Constant [ int SDL_PREALLOC ] { 1 } Constant [ int SDL_RLEACCEL ] { 2 } Constant [ int SDL_DONTFREE ] { 4 } - Constant [ int SDL_COMPILEDVERSION ] { 2014 } + Constant [ int SDL_COMPILEDVERSION ] { 2020 } Constant [ int SDL_MAJOR_VERSION ] { 2 } Constant [ int SDL_MINOR_VERSION ] { 0 } - Constant [ int SDL_PATCHLEVEL ] { 14 } - Constant [ string SDL_REVISION ] { hg-14525:e52d96ea04fc } + Constant [ int SDL_PATCHLEVEL ] { 20 } + Constant [ string SDL_REVISION ] { @21791b5012198ae204842be1197e9a0b915f4aaa } Constant [ int SDL_WINDOW_FULLSCREEN ] { 1 } Constant [ int SDL_WINDOW_OPENGL ] { 2 } Constant [ int SDL_WINDOW_SHOWN ] { 4 } @@ -1240,6 +1240,65 @@ Extension [ extension #84 SDL version 2.5.0 ] { Parameter #2 [ &$h ] } } + Function [ function SDL_RenderDrawPointF ] { + + - Parameters [3] { + Parameter #0 [ $renderer ] + Parameter #1 [ float $x ] + Parameter #2 [ float $y ] + } + - Return [ int ] + } + Function [ function SDL_RenderDrawLineF ] { + + - Parameters [5] { + Parameter #0 [ $renderer ] + Parameter #1 [ float $x1 ] + Parameter #2 [ float $y1 ] + Parameter #3 [ float $x2 ] + Parameter #4 [ float $y2 ] + } + - Return [ int ] + } + Function [ function SDL_RenderDrawRectF ] { + + - Parameters [2] { + Parameter #0 [ $renderer ] + Parameter #1 [ SDL_FRect $rect ] + } + - Return [ int ] + } + Function [ function SDL_RenderFillRectF ] { + + - Parameters [2] { + Parameter #0 [ $renderer ] + Parameter #1 [ SDL_FRect $rect ] + } + - Return [ int ] + } + Function [ function SDL_RenderCopyF ] { + + - Parameters [4] { + Parameter #0 [ $renderer ] + Parameter #1 [ SDL_Texture $texture ] + Parameter #2 [ ?SDL_Rect $srcrect ] + Parameter #3 [ ?SDL_FRect $dstrect ] + } + - Return [ int ] + } + Function [ function SDL_RenderCopyExF ] { + + - Parameters [7] { + Parameter #0 [ $renderer ] + Parameter #1 [ SDL_Texture $texture ] + Parameter #2 [ ?SDL_Rect $srcrect ] + Parameter #3 [ ?SDL_FRect $dstrect ] + Parameter #4 [ float $angle ] + Parameter #5 [ ?SDL_FPoint $center ] + Parameter #6 [ int $flip ] + } + - Return [ int ] + } Function [ function SDL_CreateRGBSurface ] { - Parameters [8] { @@ -1478,61 +1537,6 @@ Extension [ extension #84 SDL version 2.5.0 ] { Parameter #7 [ $dst_pitch ] } } - Function [ function SDL_RectEmpty ] { - - - Parameters [1] { - Parameter #0 [ SDL_Rect $rect ] - } - } - Function [ function SDL_RectEquals ] { - - - Parameters [2] { - Parameter #0 [ SDL_Rect $rectA ] - Parameter #1 [ SDL_Rect $rectB ] - } - } - Function [ function SDL_HasIntersection ] { - - - Parameters [2] { - Parameter #0 [ SDL_Rect $rectA ] - Parameter #1 [ SDL_Rect $rectB ] - } - } - Function [ function SDL_IntersectRect ] { - - - Parameters [3] { - Parameter #0 [ SDL_Rect $rectA ] - Parameter #1 [ SDL_Rect $rectB ] - Parameter #2 [ &$result ] - } - } - Function [ function SDL_UnionRect ] { - - - Parameters [3] { - Parameter #0 [ SDL_Rect $rectA ] - Parameter #1 [ SDL_Rect $rectB ] - Parameter #2 [ &$result ] - } - } - Function [ function SDL_IntersectRectAndLine ] { - - - Parameters [5] { - Parameter #0 [ SDL_Rect $rect ] - Parameter #1 [ &$X1 ] - Parameter #2 [ &$Y1 ] - Parameter #3 [ &$X2 ] - Parameter #4 [ &$Y2 ] - } - } - Function [ function SDL_EnclosePoints ] { - - - Parameters [4] { - Parameter #0 [ array $point ] - Parameter #1 [ $count ] - Parameter #2 [ SDL_Rect $clip ] - Parameter #3 [ &$rect ] - } - } Function [ function SDL_WaitEvent ] { - Parameters [1] { @@ -2468,10 +2472,104 @@ Extension [ extension #84 SDL version 2.5.0 ] { Parameter #1 [ $value ] } } + Function [ function SDL_PointInRect ] { + + - Parameters [2] { + Parameter #0 [ SDL_Point $p ] + Parameter #1 [ SDL_Rect $r ] + } + - Return [ bool ] + } + Function [ function SDL_RectEmpty ] { + + - Parameters [1] { + Parameter #0 [ SDL_Rect $r ] + } + - Return [ bool ] + } + Function [ function SDL_RectEquals ] { + + - Parameters [2] { + Parameter #0 [ SDL_Rect $a ] + Parameter #1 [ SDL_Rect $b ] + } + - Return [ bool ] + } + Function [ function SDL_HasIntersection ] { + + - Parameters [2] { + Parameter #0 [ SDL_Rect $A ] + Parameter #1 [ SDL_Rect $B ] + } + - Return [ bool ] + } + Function [ function SDL_IntersectRect ] { + + - Parameters [3] { + Parameter #0 [ SDL_Rect $A ] + Parameter #1 [ SDL_Rect $B ] + Parameter #2 [ ?SDL_Rect &$result ] + } + - Return [ bool ] + } + Function [ function SDL_UnionRect ] { + + - Parameters [3] { + Parameter #0 [ SDL_Rect $A ] + Parameter #1 [ SDL_Rect $B ] + Parameter #2 [ ?SDL_Rect &$result ] + } + - Return [ void ] + } + Function [ function SDL_EnclosePoints ] { + + - Parameters [4] { + Parameter #0 [ SDL_Point $points ] + Parameter #1 [ int $count ] + Parameter #2 [ SDL_Rect $clip ] + Parameter #3 [ ?SDL_Rect &$result ] + } + - Return [ bool ] + } + Function [ function SDL_IntersectRectAndLine ] { + + - Parameters [5] { + Parameter #0 [ SDL_Rect $rect ] + Parameter #1 [ int &$X1 ] + Parameter #2 [ int &$Y1 ] + Parameter #3 [ int &$X2 ] + Parameter #4 [ int &$Y2 ] + } + - Return [ bool ] + } + Function [ function SDL_FRectEmpty ] { + + - Parameters [1] { + Parameter #0 [ SDL_FRect $r ] + } + - Return [ bool ] + } + Function [ function SDL_HasIntersectionF ] { + + - Parameters [2] { + Parameter #0 [ SDL_FRect $A ] + Parameter #1 [ SDL_FRect $B ] + } + - Return [ bool ] + } + Function [ function SDL_IntersectFRect ] { + + - Parameters [3] { + Parameter #0 [ SDL_FRect $A ] + Parameter #1 [ SDL_FRect $B ] + Parameter #2 [ ?SDL_FRect &$result ] + } + - Return [ bool ] + } } - - Classes [21] { - Class [ class SDL_Event ] { + - Classes [23] { + Class [ class SDL_Event implements Stringable ] { - Constants [0] { } @@ -2495,15 +2593,16 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Method [ public method __toString ] { + Method [ public method __toString ] { - Parameters [0] { } + - Return [ string ] } } } - Class [ class SDL_GLContext ] { + Class [ class SDL_GLContext implements Stringable ] { - Constants [31] { Constant [ public int RED_SIZE ] { 0 } @@ -2561,10 +2660,11 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Method [ public method __toString ] { + Method [ public method __toString ] { - Parameters [0] { } + - Return [ string ] } Method [ public method Delete ] { @@ -2575,7 +2675,7 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Class [ class SDL_MessageBoxColor ] { + Class [ class SDL_MessageBoxColor implements Stringable ] { - Constants [6] { Constant [ public int BACKGROUND ] { 0 } @@ -2608,15 +2708,16 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Method [ public method __toString ] { + Method [ public method __toString ] { - Parameters [0] { } + - Return [ string ] } } } - Class [ class SDL_MessageBoxButtonData ] { + Class [ class SDL_MessageBoxButtonData implements Stringable ] { - Constants [2] { Constant [ public int RETURNKEY_DEFAULT ] { 1 } @@ -2645,15 +2746,16 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Method [ public method __toString ] { + Method [ public method __toString ] { - Parameters [0] { } + - Return [ string ] } } } - Class [ class SDL_MessageBoxData ] { + Class [ class SDL_MessageBoxData implements Stringable ] { - Constants [3] { Constant [ public int ERROR ] { 16 } @@ -2690,10 +2792,11 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Method [ public method __toString ] { + Method [ public method __toString ] { - Parameters [0] { } + - Return [ string ] } Method [ public method Show ] { @@ -2705,7 +2808,7 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Class [ class SDL_Cursor ] { + Class [ class SDL_Cursor implements Stringable ] { - Constants [13] { Constant [ public int ARROW ] { 0 } @@ -2791,10 +2894,11 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Method [ public method __toString ] { + Method [ public method __toString ] { - Parameters [0] { } + - Return [ string ] } Method [ public method Free ] { @@ -2811,7 +2915,7 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Class [ class SDL_mutex ] { + Class [ class SDL_mutex implements Stringable ] { - Constants [2] { Constant [ public int TIMEDOUT ] { 1 } @@ -2834,10 +2938,11 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Method [ public method __toString ] { + Method [ public method __toString ] { - Parameters [0] { } + - Return [ string ] } Method [ public method Lock ] { @@ -2866,7 +2971,7 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Class [ class SDL_sem ] { + Class [ class SDL_sem implements Stringable ] { - Constants [0] { } @@ -2888,10 +2993,11 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Method [ public method __toString ] { + Method [ public method __toString ] { - Parameters [0] { } + - Return [ string ] } Method [ public method Wait ] { @@ -2933,7 +3039,7 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Class [ class SDL_cond ] { + Class [ class SDL_cond implements Stringable ] { - Constants [0] { } @@ -2954,10 +3060,11 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Method [ public method __toString ] { + Method [ public method __toString ] { - Parameters [0] { } + - Return [ string ] } Method [ public method Wait ] { @@ -2995,7 +3102,7 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Class [ class SDL_Color ] { + Class [ class SDL_Color implements Stringable ] { - Constants [0] { } @@ -3024,15 +3131,16 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Method [ public method __toString ] { + Method [ public method __toString ] { - Parameters [0] { } + - Return [ string ] } } } - Class [ class SDL_Palette implements ArrayAccess ] { + Class [ class SDL_Palette implements Stringable, ArrayAccess ] { - Constants [0] { } @@ -3058,10 +3166,11 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Method [ public method __toString ] { + Method [ public method __toString ] { - Parameters [0] { } + - Return [ string ] } Method [ public method count ] { @@ -3116,7 +3225,7 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Class [ class SDL_PixelFormat ] { + Class [ class SDL_PixelFormat implements Stringable ] { - Constants [0] { } @@ -3154,10 +3263,11 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Method [ public method __toString ] { + Method [ public method __toString ] { - Parameters [0] { } + - Return [ string ] } Method [ public method GetRGB ] { @@ -3215,7 +3325,7 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Class [ class SDL_Pixels implements ArrayAccess ] { + Class [ class SDL_Pixels implements Stringable, ArrayAccess ] { - Constants [0] { } @@ -3241,10 +3351,11 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Method [ public method __toString ] { + Method [ public method __toString ] { - Parameters [0] { } + - Return [ string ] } Method [ public method count ] { @@ -3301,7 +3412,7 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Class [ class SDL_Rect ] { + Class [ class SDL_Rect implements Stringable ] { - Constants [0] { } @@ -3313,78 +3424,147 @@ Extension [ extension #84 SDL version 2.5.0 ] { } - Properties [4] { - Property [ public $x = 0 ] - Property [ public $y = 0 ] - Property [ public $w = 0 ] - Property [ public $h = 0 ] + Property [ public int $x ] + Property [ public int $y ] + Property [ public int $w ] + Property [ public int $h ] } - Methods [8] { Method [ public method __construct ] { - Parameters [4] { - Parameter #0 [ int $x = ] - Parameter #1 [ int $y = ] - Parameter #2 [ int $w = ] - Parameter #3 [ int $y = ] + Parameter #0 [ int $x ] + Parameter #1 [ int $y ] + Parameter #2 [ int $w ] + Parameter #3 [ int $h ] } } - Method [ public method __toString ] { + Method [ public method __toString ] { - Parameters [0] { } + - Return [ string ] } Method [ public method Empty ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method Equal ] { - Parameters [1] { - Parameter #0 [ SDL_Rect $rect ] + Parameter #0 [ SDL_Rect $b ] } + - Return [ bool ] } Method [ public method HasIntersection ] { - Parameters [1] { - Parameter #0 [ SDL_Rect $rect ] + Parameter #0 [ SDL_Rect $B ] } + - Return [ bool ] } Method [ public method Intersect ] { - Parameters [2] { - Parameter #0 [ SDL_Rect $rect ] - Parameter #1 [ &$result ] + Parameter #0 [ SDL_Rect $B ] + Parameter #1 [ ?SDL_Rect &$result ] } + - Return [ bool ] } Method [ public method Union ] { - Parameters [2] { - Parameter #0 [ SDL_Rect $rect ] - Parameter #1 [ &$result ] + Parameter #0 [ SDL_Rect $B ] + Parameter #1 [ ?SDL_Rect &$result ] } + - Return [ void ] } Method [ public method IntersectLine ] { - Parameters [4] { - Parameter #0 [ &$X1 ] - Parameter #1 [ &$Y1 ] - Parameter #2 [ &$X2 ] - Parameter #3 [ &$Y2 ] + Parameter #0 [ int &$X1 ] + Parameter #1 [ int &$Y1 ] + Parameter #2 [ int &$X2 ] + Parameter #3 [ int &$Y2 ] } + - Return [ bool ] } } } - Class [ class SDL_Point ] { + Class [ class SDL_FRect implements Stringable ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ public float $x ] + Property [ public float $y ] + Property [ public float $w ] + Property [ public float $h ] + } + + - Methods [5] { + Method [ public method __construct ] { + + - Parameters [4] { + Parameter #0 [ float $x ] + Parameter #1 [ float $y ] + Parameter #2 [ float $w ] + Parameter #3 [ float $h ] + } + } + + Method [ public method __toString ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ public method Empty ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ public method HasIntersection ] { + + - Parameters [1] { + Parameter #0 [ SDL_FRect $B ] + } + - Return [ bool ] + } + + Method [ public method Intersect ] { + + - Parameters [2] { + Parameter #0 [ SDL_FRect $B ] + Parameter #1 [ ?SDL_FRect &$result ] + } + - Return [ bool ] + } + } + } + + Class [ class SDL_Point implements Stringable ] { - Constants [0] { } @@ -3396,28 +3576,63 @@ Extension [ extension #84 SDL version 2.5.0 ] { } - Properties [2] { - Property [ public $x = 0 ] - Property [ public $y = 0 ] + Property [ public int $x ] + Property [ public int $y ] } - Methods [2] { Method [ public method __construct ] { - Parameters [2] { - Parameter #0 [ $x ] - Parameter #1 [ $y ] + Parameter #0 [ int $x ] + Parameter #1 [ int $y ] + } + } + + Method [ public method __toString ] { + + - Parameters [0] { + } + - Return [ string ] + } + } + } + + Class [ class SDL_FPoint implements Stringable ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [2] { + Property [ public float $x ] + Property [ public float $y ] + } + + - Methods [2] { + Method [ public method __construct ] { + + - Parameters [2] { + Parameter #0 [ float $x ] + Parameter #1 [ float $y ] } } - Method [ public method __toString ] { + Method [ public method __toString ] { - Parameters [0] { } + - Return [ string ] } } } - Class [ class SDL_RWops ] { + Class [ class SDL_RWops implements Stringable ] { - Constants [6] { Constant [ public int UNKNOWN ] { 0 } @@ -3476,10 +3691,11 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Method [ public method __toString ] { + Method [ public method __toString ] { - Parameters [0] { } + - Return [ string ] } Method [ public method Free ] { @@ -3625,7 +3841,7 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Class [ class SDL_WindowShapeMode ] { + Class [ class SDL_WindowShapeMode implements Stringable ] { - Constants [4] { Constant [ public int Default ] { 0 } @@ -3655,15 +3871,16 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Method [ public method __toString ] { + Method [ public method __toString ] { - Parameters [0] { } + - Return [ string ] } } } - Class [ class SDL_Surface ] { + Class [ class SDL_Surface implements Stringable ] { - Constants [4] { Constant [ public int SWSURFACE ] { 0 } @@ -3717,10 +3934,11 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Method [ public method __toString ] { + Method [ public method __toString ] { - Parameters [0] { } + - Return [ string ] } Method [ public method Free ] { @@ -3942,7 +4160,7 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Class [ class SDL_DisplayMode ] { + Class [ class SDL_DisplayMode implements Stringable ] { - Constants [0] { } @@ -3971,15 +4189,16 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Method [ public method __toString ] { + Method [ public method __toString ] { - Parameters [0] { } + - Return [ string ] } } } - Class [ class SDL_Window ] { + Class [ class SDL_Window implements Stringable ] { - Constants [18] { Constant [ public int FULLSCREEN ] { 1 } @@ -4042,10 +4261,11 @@ Extension [ extension #84 SDL version 2.5.0 ] { } } - Method [ public method __toString ] { + Method [ public method __toString ] { - Parameters [0] { } + - Return [ string ] } Method [ public method UpdateSurface ] { -- cgit