From aba547350d127dc7fb13d3cf4ed5406bda9aa9ca Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 3 Aug 2022 06:43:24 +0200 Subject: update to 0.3.0 --- Makefile | 4 ++-- PHPINFO | 2 +- REFLECTION | 27 ++++++++++++++++++++++++++- php-pecl-sdl-ttf.spec | 7 +++++-- 4 files changed, 34 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 9e525a3..f7cc2eb 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,6 @@ NAME := $(shell basename $(SRCDIR)) include ../../../common/Makefile refl: - php -d extension=sdl -d extension=sdl_mixer --re sdl_mixer >REFLECTION - php -d extension=sdl -d extension=sdl_mixer --ri sdl_mixer >PHPINFO + php -d extension=sdl -d extension=sdl_ttf --re sdl_ttf >REFLECTION + php -d extension=sdl -d extension=sdl_ttf --ri sdl_ttf >PHPINFO diff --git a/PHPINFO b/PHPINFO index a6765c9..01e9f47 100644 --- a/PHPINFO +++ b/PHPINFO @@ -2,5 +2,5 @@ sdl_ttf SDL_ttf support => enabled -SDL_ttf PHP extension version => 0.2.0 +SDL_ttf PHP extension version => 0.3.0 SDL_ttf linked version => 2.0.15 diff --git a/REFLECTION b/REFLECTION index ca4a4f9..a4461d9 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #121 sdl_ttf version 0.2.0 ] { +Extension [ extension #120 sdl_ttf version 0.3.0 ] { - Dependencies { Dependency [ sdl (Required) ] @@ -11,6 +11,12 @@ Extension [ extension #121 sdl_ttf version 0.2.0 ] { } - Return [ int ] } + Function [ function TTF_WasInit ] { + + - Parameters [0] { + } + - Return [ int ] + } Function [ function TTF_Quit ] { - Parameters [0] { @@ -41,6 +47,25 @@ Extension [ extension #121 sdl_ttf version 0.2.0 ] { } - Return [ SDL_Surface ] } + Function [ function TTF_RenderText_Blended ] { + + - Parameters [3] { + Parameter #0 [ TTF_Font $font ] + Parameter #1 [ string $text ] + Parameter #2 [ SDL_Color $color ] + } + - Return [ SDL_Surface ] + } + Function [ function TTF_RenderText_Shaded ] { + + - Parameters [4] { + Parameter #0 [ TTF_Font $font ] + Parameter #1 [ string $text ] + Parameter #2 [ SDL_Color $color ] + Parameter #3 [ SDL_Color $backgroundColor ] + } + - Return [ SDL_Surface ] + } } - Classes [1] { diff --git a/php-pecl-sdl-ttf.spec b/php-pecl-sdl-ttf.spec index 0f978ff..f3a43e6 100644 --- a/php-pecl-sdl-ttf.spec +++ b/php-pecl-sdl-ttf.spec @@ -19,7 +19,7 @@ %global pecl_name sdl_ttf # no ini file (loaded by phpsdl helper) -%global upstream_version 0.2.0 +%global upstream_version 0.3.0 #global upstream_prever RC1 Summary: SDL_ttf bindings for PHP @@ -175,7 +175,7 @@ fi %files %{?_licensedir:%license NTS/LICENSE} -#doc %%{pecl_docdir}/%%{pecl_name} +%doc %{pecl_docdir}/%{pecl_name} %{pecl_xmldir}/%{name}.xml %{php_extdir}/%{pecl_name}.so @@ -186,6 +186,9 @@ fi %changelog +* Wed Aug 3 2022 Remi Collet - 0.3.0-1 +- update to 0.3.0 + * Mon Jul 25 2022 Remi Collet - 0.2.0-1 - initial package - open https://github.com/Ponup/php-sdl-ttf/pull/1 fix dependencies -- cgit