On Friday, 27 September 2019 at 21:16:07 UTC, Murilo wrote:
...
Here it is, how do I make the ship have a transparent background?

First: Your PNG file has transparency data information right?

Second: I was Looking into the drawImage function (Line 854):

https://github.com/adamdruppe/arsd/blob/b0d21de148ef0b23ea845be322af5e6931ca4cb6/screen.d

And I'd suggest you to try to add the glEnable(GL_ALPHA_TEST); before glBegin(GL_QUADS);

In fact you should do this only once, maybe inside the constructor, but just try it there to see if it works.

Matheus.

Reply via email to