Skip to content

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

@ushideshi

Description

@ushideshi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions