D3d Sprites Streched

Posts 1–15 of 19 · Page 1 of 2
D3d Sprites Streched
My Sprites are streched can you help me fix this?
Srry 4 bad english i'm italian
Thanks in Advance
Carmine
moved to coding help /
Solved new problem Ca crash when i go ingame with sprites
What..?

Explain more.
Use D3DXCreateTextureFromFileInMemoryEx
Quote Originally Posted by CodeDemon View Post
Use D3DXCreateTextureFromFileInMemoryEx
What?
Explain more xD
Quote Originally Posted by coogle007 View Post
What?
Explain more xD
Thats enough of an explaination. o___o.
I see but can you help me with the function i use this
D3DXCreateTextureFromFileInMemoryEx(Device,&XD,siz eof(XD),&MenuTexture);
But i have an error with the argoments of function...
Code:
D3DXCreateTextureFromFileInMemoryEx(pDevice, bytename, bytesize, width, height, D3DX_DEFAULT, 0, D3DFMT_UNKNOWN, D3DPOOL_MANAGED, D3DX_DEFAULT, D3DX_DEFAULT, 0, NULL, NULL, &texturename);
Ok Works ingame
Another problem disappear after first match xD
Quote Originally Posted by coogle007 View Post
Ok Works ingame
Another problem disappear after first match xD

You have to re-create the textures & sprite after the devices changes /yea
Quote Originally Posted by coogle007 View Post
Ok Works ingame
Another problem disappear after first match xD
Il suply better parameters tomorrow.

Also pSprite->OnLostDevice/OnResetDevice
Quote Originally Posted by Mr.Magicman View Post


Il suply better parameters tomorrow.

Also pSprite->OnLostDevice/OnResetDevice
I Added this but disapeears after a game...
Quote Originally Posted by coogle007 View Post
I Added this but disapeears after a game...
You have to re-create it when the device is changed /yea
How?
Sorry it's late in italy xD
Posts 1–15 of 19 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us