#170119 - headspin - Tue Sep 01, 2009 12:58 am
How do I get per-sprite alpha blending working? I have setup a sprite in 16-bit bitmap mode and have the alpha value set to 0x7. Sprites appear completely opaque. What else do I need to do?
_________________
Warhawk DS | Manic Miner: The Lost Levels | The Detective Game
Code: |
oamSet(&oamSub, // sub graphics engine context
m_oamIndex, // oam index (0 to 127) m_x, m_y, // x and y pixel location of the sprite 1, // priority, lower renders last (on top) 0x7, // this is the palette index if multiple palettes or the alpha value if bmp sprite SpriteSize_32x32, SpriteColorFormat_Bmp, m_gfxSub, // pointer to the loaded graphics -1, // sprite rotation data false, // double the size when rotating? false, // hide the sprite? false, // horizontal flip? false, // vertical flip? false); // mosaic? |
_________________
Warhawk DS | Manic Miner: The Lost Levels | The Detective Game