Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi,

I want to create an animation that has multiple images. Each image should remain on-screen and wait for the next image. BCI image doesn't do that.
This is what I have so far:

if(f < 20)
{
for(i=0;i
{
pImage = ISHELL_LoadResImage(m_pIShell, MOON_RES_FILE, IDB_GG_000);
IIMAGE_Draw(pImage, 0 +i*20, 0);
}
pImage = ISHELL_LoadResImage(m_pIShell, MOON_RES_FILE, IDB_GG_001);
IIMAGE_Draw(pImage, swWidth+5, swHeight+40);
pImage = ISHELL_LoadResImage(m_pIShell, MOON_RES_FILE, IDB_GG_002);
IIMAGE_Draw(pImage, swWidth+5+44, swHeight+40+26);
if(f>3)
{
pImage = ISHELL_LoadResImage(m_pIShell, MOON_RES_FILE, IDB_GG_003);
IIMAGE_Draw(pImage, swWidth+5+60, swHeight+40+29);

.....
Is this the right way to do this? If so, why does the animation not appear?

Thank you.

Well, first of all, you probably need to call IDISPLAY_Update after each draw.
Second, what do you mean "BCI image doesn't do that?" BCI does animation just fine.

Well, first of all, you probably need to call IDISPLAY_Update after each draw.
Second, what do you mean "BCI image doesn't do that?" BCI does animation just fine.

nparrish wrote:Well, first of all, you probably need to call IDISPLAY_Update after each draw.
Second, what do you mean "BCI image doesn't do that?" BCI does animation just fine.
BCI image just replace one image with another. It does not keep the previous image. I prbably need to draw frames myself like this.
if(f>7)
{
pImage = ISHELL_LoadResImage(m_pIShell, MOON_RES_FILE, IDB_GG_002);
IIMAGE_DrawFrame(pImage, f, swWidth+5+44, swHeight+40+45);
IDISPLAY_Update(m_pIDisplay);

nparrish wrote:Well, first of all, you probably need to call IDISPLAY_Update after each draw.
Second, what do you mean "BCI image doesn't do that?" BCI does animation just fine.
BCI image just replace one image with another. It does not keep the previous image. I prbably need to draw frames myself like this.
if(f>7)
{
pImage = ISHELL_LoadResImage(m_pIShell, MOON_RES_FILE, IDB_GG_002);
IIMAGE_DrawFrame(pImage, f, swWidth+5+44, swHeight+40+45);
IDISPLAY_Update(m_pIDisplay);