GLBasic forum

Main forum => GLBasic - en => Topic started by: Millerszone on 2011-Mar-22

Title: Substitute for USEASBMP?
Post by: Millerszone on 2011-Mar-22
With the test code below, using on the iPad, the sprite logo displays in portrait.
This must be the problem with using USEASBMP in landscape mode on iplatforms?

So, is there something that I can use to substitute USEASBMP and save the screen
to the back buffer so I don't have to draw the screen after every SHOWSCREEN?

Thank you.

Code (glbasic) Select

// screen is set to landscape 1024x768

CLEARSCREEN RGB(255, 255, 255)

DRAWSPRITE logo, 385, 175

USEASBMP

FOR move = 0 TO 1000

PRINT "TEST", move, 400

SHOWSCREEN

NEXT


Title: Re: Substitute for USEASBMP?
Post by: MrTAToad on 2011-Mar-22
Yes, USEASBMP is limited on the iPhone.

Could try created a screen with a sprite (with CREATESCREEN)
Title: Re: Substitute for USEASBMP?
Post by: Millerszone on 2011-Mar-22
I couldn't get CREATESCREEN to save to the background buffer.
For now I can use SAVEBMP and LOADBMP.
Title: Re: Substitute for USEASBMP?
Post by: Kitty Hello on 2011-Mar-22
grabsprite / drawsprite maybe?