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

glBlendFunc override #11

Open
midn1 opened this issue Oct 25, 2019 · 2 comments
Open

glBlendFunc override #11

midn1 opened this issue Oct 25, 2019 · 2 comments

Comments

@midn1
Copy link

midn1 commented Oct 25, 2019

I suggest that glBlendFunc be removed from the GL backend, I came across a case where I had to use my own blending function, I found this to be a bit limiting.

(Yes, I can edit the source, and that's what I did, but it's still worthy to discuss).

@jtsiomb
Copy link
Owner

jtsiomb commented Oct 25, 2019

Interesting point, but the solution can't be for the blend function setup to be removed. The common case requires it, and it would be silly (not to mention backwards incompatible) to suddenly require the application to set up blending before calling drawtext rendering.

I will think about this. Maybe a setting through dtx_set, although that sounds a bit clunky... But for now you can do exactly what you need by using the user-supplied drawing mechanism. See examples/userdraw/userdraw.c for an example of this.

I'm marking this as a feature request.

@midn1
Copy link
Author

midn1 commented Oct 26, 2019

Alright. By the way, the case I needed was to invert the colors (so glBlendFuncSeparate).

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

No branches or pull requests

2 participants