Substitute for USEASBMP?

Previous topic - Next topic

Millerszone

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


Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

MrTAToad

Yes, USEASBMP is limited on the iPhone.

Could try created a screen with a sprite (with CREATESCREEN)

Millerszone

I couldn't get CREATESCREEN to save to the background buffer.
For now I can use SAVEBMP and LOADBMP.
Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

Kitty Hello

grabsprite / drawsprite maybe?