php-sdl
php-sdl copied to clipboard
Uncaught Error: Call to undefined function SDL_SetRenderDrawBlendMode()
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()