// set window properties SetWindowTitle( "Render to image with mipmap on" ) SetWindowSize( 1024, 768, 0 ) // set display properties SetVirtualResolution( 1024, 768 ) RenderImage = CreateRenderImage(640,480,0,1) RenderSprite = CreateSprite(RenderImage) SetSpritePositionByOffset(RenderSprite, GetDeviceWidth()/2.0, GetDeviceHeight()/2.0) Text = CreateText("A") SetTextSize(Text, 46) SetTextColor(Text, 175,175,0,255) SetTextPosition(Text,10,40) o# = 0 do inc o#, 1 if o# >= 360 then o# = 0 SetSpriteAngle(RenderSprite, 30*sin(o#)) SetRenderToImage(RenderImage, -1) SetClearColor(55,0,0) ClearScreen() print("Render to Image") Update2D( GetFrameTime() ) Render2DFront() SetClearColor(75,75,75) SetTextCharAngle(Text, 0, o#) SetRenderToScreen() sync() loop