Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

How do I achieve navigation to different views in Marmalade? Like what using startActivity(intent) in Android does.
I know that there's only a single view in Marmalade, but still couldn't figure out how to make a similar example.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I've come to know that there's nothing similar like Activities in Marmalade. Because Marmalade works on Game loop, in which a particular rendering has to be done frequently in the loop, so as to make it look persistent on the screen. Something like what we do in the custom View's onDraw(Canvas canvas) method, although we use invalidate() method to do that instead of the loop.
The CIwMaterial looks similar like a fullScreen View which can be used in lace of the Activity, though there's nothing like the same in it. IwGxSetMaterial() is the global function to render the newer material on the screen.
This answer is not perfect, but atleast will help those who want to code in C++ using marmalade for the first time and previously doing it using the Android SDK.
PS: Kindly correct me wherever I am wrong.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.