Skip to content

[rlgl] Custom blend mode with one function call #3513

@veins1

Description

@veins1

Right now setting custom blend mode requires two function calls: rlSetBlendFactors() and rlSetBlendMode.
I imagine instead of doing rlSetBlendFactors to store the factors and rlSetBlendMode to apply them, just having something like rlSetBlendModeCustom where you pass blend factors and it just applies them. There's no reason for user to just store them, like, there's no situation where a user might do a bunch of rlSetBlendFactors without rlSetBlendMode.
The rlSetBlendMode function stays pretty much the same and the new way of setting custom blend mode will also be just one function call, instead of two.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions