Drawing to backbuffer

Hi,

i’am currently trying to create a starfield within Corona. But i cannot see any ability to :

  1. do logic
  2. draw to backbuffer
  3. push to screen

Am i seeing anything wrong here ?

I cannot find a like: beforeEnterFrame or so

So my question: Can we make use of a backbuffer to draw everything before showing to screen and how ?

Cheers,
Jespar
[import]uid: 2734 topic_id: 282 reply_id: 300282[/import]

Another thing:

How to remove / release an object or child within a group ? [import]uid: 2734 topic_id: 282 reply_id: 365[/import]

Conceptually, there is no back-buffer: You register “enterframe” event handlers, within those handlers you update your display objects, after, and *ONLY* after, Corona has called all registered “enterframe” handlers, Corona then draws all active display objects to the screen.

Now, since Corona uses OpenGL ES, behind the scenes there is, of course, a front/back-buffer scheme being used to avoid flickering/tearing of the screen image, but those using the SDK don’t need to be concerned about that.

As to your second question, you’d use the “group:remove(IndexOrChild)” method to remove an object from a group, and then make sure there are no references to the removed object so it gets garbage-collected properly.

BTW, more detail answers to both your questions can be found in the docs … :wink:

David [import]uid: 1581 topic_id: 282 reply_id: 367[/import]

Thanks David, just what i needed [import]uid: 2734 topic_id: 282 reply_id: 385[/import]