1.01 : DisplayTransparentSprite() bug ?
Posted: Fri May 08, 2015 12:54 pm
What i'm doing wrong ? Doc say default transparent color is 0, so why i can see black box ? I just want red circle.
Code: Select all
ExamineDesktops()
OpenScreen(DesktopWidth(0), DesktopHeight(0), DesktopDepth(0), "Test")
Procedure RenderFrame()
ClearScreen(RGB(0, 130, 150))
DisplayTransparentSprite(0, 50, 50)
FlipBuffers() ; continue the rendering
EndProcedure
CreateSprite(0, 64, 64, #PB_Sprite_AlphaBlending)
If StartDrawing(SpriteOutput(0))
Circle(32, 32, 25, RGBA(255, 0, 0, 0))
StopDrawing()
EndIf
FlipBuffers() ; start the rendering
BindEvent(#PB_Event_RenderFrame, @RenderFrame())