Open DirectuX opened 4 years ago
Hi Sebastian,
I am afraid the btb1024.png
does not have any transparency in the image file. You need to update the image the way you did it with bubbles.
Minor tip - if you want smooth alpha, you may consider replacing AlphaFunc with blending:
tbgl_pushMatrix
tbgl_pushTexture(2) ' Of course appropriate texture is needed
tbgl_pushStateProtect(%TBGL_DEPTHMASK | %TBGL_DEPTH)
tbgl_pushState(%TBGL_BLEND)
tbgl_pushBlendFunc(%GL_SRC_ALPHA, %GL_ONE_MINUS_SRC_ALPHA)
' Render bubble or screen here
tbgl_popBlendFunc
tbgl_popState
tbgl_popStateProtect
tbgl_popTexture
tbgl_popMatrix
P
also, did you understand the title.tbasicu issue I mentioned ?
Hi Petr, I created this branch so you can have a look at this strange (to me) display behaviour.
Also title.tbasicu still is shown as binary and I don't know why (there's no Hex 00 at the end of file)
Also2 I added a transparent picture for the tittle, any tip how to make it display correctly according to the background ?