Hi I have writen a smal GUI in Blitz3D and it works great. But now I have it includet in my new project and it makes mistakes, the parts of sprites wich are black are visible but they should be invisible.
her a picture left it`s corectly right it`s wrong
her the code:
create_label(window,100,180,100,20,"Hallo",91,123,142)
Function create_label(wnd,x_pos,y_pos,x_scal,y_scal,inhalt$,r,g,b)
l.label = New label
l\sprite = CreateSprite(wnd)
HandleSprite l\sprite,-1,-1
EntityAlpha l\sprite,.9
ScaleSprite l\sprite ,x_scal,y_scal
MoveEntity l\sprite ,x_pos*2,y_pos*2-(y_scal*2),0
temp = CreateTexture(x_scal,y_scal)
SetBuffer TextureBuffer(temp)
Color 255,255,255
Text 0,0,inhalt
SetBuffer BackBuffer()
EntityTexture l\sprite,temp
EntityBlend l\sprite,3
EntityOrder l\sprite,-1
Return l\sprite
End Function
her a picture left it`s corectly right it`s wrong
her the code:
create_label(window,100,180,100,20,"Hallo",91,123,142)
Function create_label(wnd,x_pos,y_pos,x_scal,y_scal,inhalt$,r,g,b)
l.label = New label
l\sprite = CreateSprite(wnd)
HandleSprite l\sprite,-1,-1
EntityAlpha l\sprite,.9
ScaleSprite l\sprite ,x_scal,y_scal
MoveEntity l\sprite ,x_pos*2,y_pos*2-(y_scal*2),0
temp = CreateTexture(x_scal,y_scal)
SetBuffer TextureBuffer(temp)
Color 255,255,255
Text 0,0,inhalt
SetBuffer BackBuffer()
EntityTexture l\sprite,temp
EntityBlend l\sprite,3
EntityOrder l\sprite,-1
Return l\sprite
End Function