I am using BlendFunction to draw sprites on surface like this.
However, I need something like this:
but Batch.SetBlendFuncSeparate function don't exist.
I found GL.glBlendFuncSeparate() but I don't know how to tell Batch (lgSpriteBatch) to use it...
Thank you
B4X:
Sub Globals
Dim GL as lgGL
Dim Batch as lgSpriteBatch
Dim Wheel As lgSprite
End Sub
'
'
'
Sub LG_Render
Batch.Begin
Batch.SetBlendFunction(GL.GL20_SRC_ALPHA, GL.GL20_ONE_MINUS_SRC_ALPHA)
Wheel.Draw(Batch)
Batch.End
End Sub
However, I need something like this:
B4X:
Batch.Begin
'GL.glBlendFuncSeparate(GL.GL20_SRC_ALPHA, GL.GL20_ONE_MINUS_SRC_ALPHA, _
' GL.GL20_ZERO, GL.GL20_ONE)
Wheel.Draw(Batch)
Batch.End
but Batch.SetBlendFuncSeparate function don't exist.
I found GL.glBlendFuncSeparate() but I don't know how to tell Batch (lgSpriteBatch) to use it...
Thank you