Archived

This topic is now archived and is closed to further replies.

D3DXCreateTextureFromFileEx help.

This topic is 5313 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I would use D3DXCreateTextureFromFileEx to load an image to use as tile map for background... The problem is i would use a sort of CopyRect with LPDIRECT3DTEXTURE8* object returned, so that i can use only a part (a little RECT) from all image loaded, how? What is the right function to do that?

Share this post


Link to post
Share on other sites
what is of these:

HRESULT Draw(
LPDIRECT3DTEXTURE8 pSrcTexture,
CONST RECT* pSrcRect,
CONST D3DXVECTOR2* pScaling,
CONST D3DXVECTOR2* pRotationCenter,
FLOAT Rotation,
CONST D3DVECTOR2* pTranslation,
D3DCOLOR Color
);

Share this post


Link to post
Share on other sites
oh! it is simply CONST RECT* pSrcRect...
i thought it was the RECT needed to put the texture loaded, insead it is the part or the RECT cuted by texture... ok it is perfect!

Now Pipo can u teel me really why do u preffer Polygon textured to ID3DXSprite?
Why do u tell of resource or speed?

Sorry but i don''t understood

Share this post


Link to post
Share on other sites