Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: Call to undefined function SDL_SetRenderDrawBlendMode() #76

Open
ushideshi opened this issue Nov 9, 2023 · 0 comments

Comments

@ushideshi
Copy link

ushideshi commented Nov 9, 2023

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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant