Hi,
I have just dowloaded GledPlay and I'm just starting to play arount with it.
I am confused about panels - I want to use one so that clipping is done automatically.
At the moment, all I am trying to do is edit the InitialApplication project to include a simple panel to "wrap" the backbuffer.
In my onNextFrame function, I have the following code:
However, when I compile and run (on emulator and device) all I get is a black screen. If I use "pBackBuffer->" instead of "main." it works fine.
Am I being really dumb or missing something really obvious? Should I be using panels in this way?
Thanks in advance.
I have just dowloaded GledPlay and I'm just starting to play arount with it.
I am confused about panels - I want to use one so that clipping is done automatically.
At the moment, all I am trying to do is edit the InitialApplication project to include a simple panel to "wrap" the backbuffer.
In my onNextFrame function, I have the following code:
- Code:
HRESULT InitialApplication::onNextFrame(Surface* pBackBuffer)
{
Panel main(pBackBuffer);
//Paint screen with white
main.fillRect(RGB(255, 255, 255));
//Draw logo image
main.bltFast(0, 0, &surface);
//Write text "GledPlay Application"
main.drawText( 10, 140, Font::getSystemFontWithBorder(), Font::LEFT_ALIGN, TEXT("GledPlay Application"));
return ReturnCode::OK;
}
However, when I compile and run (on emulator and device) all I get is a black screen. If I use "pBackBuffer->" instead of "main." it works fine.
Am I being really dumb or missing something really obvious? Should I be using panels in this way?
Thanks in advance.