php-sdl icon indicating copy to clipboard operation
php-sdl copied to clipboard

Uncaught Error: Call to undefined function SDL_SetRenderDrawBlendMode()

Open ushideshi opened this issue 2 years ago • 0 comments

It seems like SDL_SetRenderDrawBlendMode is not ported to PHP, is it planned in the future ? I'm trying to use the alpha value on a rect fill but it seems that it's not supported until SDL_SetRenderDrawBlendMode is set.


 \SDL_SetRenderDrawColor( $this->renderer, 100, 0 ,0 , 200 );
 \SDL_SetRenderDrawBlendMode();
 \SDL_RenderFillRect( $this->renderer, $this->rect);

PHP Fatal error:  Uncaught Error: Call to undefined function SDL_SetRenderDrawBlendMode() in /home/ushideshi/phpsdl/src/Environment/DayCycle.php:59
Stack trace:
#0 /home/ushideshi/phpsdl/src/Engine.php(120): PhpGame\Environment\DayCycle->render()
#1 /home/ushideshi/phpsdl/run.php(30): PhpGame\Engine->run()

ushideshi avatar Nov 09 '23 15:11 ushideshi