Skip to main content
gamedev.net
🔒 Locked

Help : Game Console

Started by Stellar Developer 1 reply 650+ views
Original Post
Stellar Developer
Stellar Developer
Im quite embarrassed to even ask, but im having trouble doing this myself and I cant find any tutorials :( I can handle everything except blitting a background. Basically I want a bitmap to cover the entire screen (leaving room for a self-lowering, raising background). I load the texture using D3DXCreateTextureFromFile to get my LPDIRECT3DTEXTURE9. Any tutorials out there? Any assistance appreciated. -sd -visual studio 2003 -directx 9.0c
Pesmontis
Pesmontis
I just downloaded a VB6 example doing this, by using a D3DXSprite.
Basicly, in VB6 code, it's doing:

Sprite.Draw NormalTex, ByVal 0, Vec2(1, 1), Vec2(0, 0), 0, Vec2(0, 0), D3DColorARGB(255, 255, 255, 255)
Stellar Developer
Stellar Developer
Thanks, Took me while to figure it out. But for some reason Setting the D3DXSPRITE_BILLBOARD flag caused all kinds of problems for me.


Really, this is all you need

CLASS MEMBERSLPDIRECT3DTEXTURE9 m_pTexture;LPD3DXSPRITE       m_pSprite;INITD3DXCreateSprite(pDevice, &m_pSprite);if( FAILED( D3DXCreateTextureFromFile( pD3DDevice, szFileName, &m_pTexture ) ) ){    return E_FAIL;}RENDERm_pSprite->Begin( 0 ); // D3DXSPRITE_BILLBOARD m_pSprite->Draw(m_pTexture, NULL, NULL, NULL, 0xffffffff);m_pSprite->End();


Ill post full source when Im done for others, cause theres not one example on the net ><

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.