Hello,
I'm new in GapiDraw and Game Development, and although I've looked in the forum, I was unable to fins a way to find the problem in my code.
I'm trying to display an alpha blended PNG without success...
code:
However, nothing is displayed.
What am I doing wrong?
Thanks
Joao
I'm new in GapiDraw and Game Development, and although I've looked in the forum, I was unable to fins a way to find the problem in my code.
I'm trying to display an alpha blended PNG without success...
code:
- Code:
...
private
CGapiRGBASurface* m_RotateLeft;
...
m_RotateLeft = new CGapiRGBASurface(m_pGapiDraw);
...
void ClassGame::OnCreateSysMemSurfaces(CGapiDisplay* pDisplay, HINSTANCE hInstance)
{
m_RotateLeft->CreateSurface(GDRGBASURFACE_CLEAR, hInstance, IDR_ROTATELEFT, _T("PNG"));
//...
::SetRect(&m;_btnRotateLeft, m_btnRotateRight.left - m_RotateLeft->GetWidth(), 0, m_btnRotateRight.left, m_RotateLeft->GetHeight());
, NULL);
}
void ClassGame::OnProcessNextFrame(CGapiSurface* pBackBuffer, DWORD dwFlags)
{
pBackBuffer->FillRect(NULL, /*RGB(128, 128, 128)*/0x00AE00, 0, NULL);
pBackBuffer->AlphaBltFast(m_btnRotateLeft.left, m_btnRotateLeft.top, m_RotateLeft, NULL, GDALPHABLTFAST_OPACITY, NULL);
}
However, nothing is displayed.
What am I doing wrong?
Thanks
Joao