Page 1 of 1

2.21 : StartDrawing() on SpriteOutput fails

Posted: Sat Jun 08, 2019 1:08 pm
by poshu
Code: Select all
InitSprite()
OpenScreen(40,40 ,0,"")

Procedure Handler_Redraw()
   ClearScreen(RGB(255,0,0))
   
   DisplaySprite(0,20,20)
   FlipBuffers()
EndProcedure

CreateSprite(0,2,2)

StartDrawing(SpriteOutput(0))
Box(0,0,2,2,RGB(255,255,255))
StopDrawing()

BindEvent(#PB_Event_RenderFrame,@Handler_Redraw())

FlipBuffers()