Jump to content
  • Advertisement

Archived

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

beaton_john

Stupid Raw Data

This topic is 5718 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

Hi i am writing an api-independent renderer, which can use GL, D3D8, or GDI (who would want to tho?)... anyway, i already have an image class which loads an image''s raw data. I want to use D3DXCreatetexturefromfileinmemoryex to load it, but how can i do this?? is there any function i can use to replace this?? thankyou, john

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by beaton_john
Hi

i am writing an api-independent renderer, which can use GL, D3D8, or GDI (who would want to tho?)...



is contradictory to

quote:
Original post by beaton_john

I want to use D3DXCreatetexturefromfileinmemoryex to load it...

thankyou, john


since d3dx is NOT api independant.

BUT straight out of the sdk docs you get this

HRESULT D3DXCreateTextureFromFileInMemoryEx( LPDIRECT3DDEVICE9 pDevice,
LPCVOID pSrcData,
UINT SrcDataSize,
UINT Width,
UINT Height,
UINT MipLevels,
DWORD Usage,
D3DFORMAT Format,
D3DPOOL Pool,
DWORD Filter,
DWORD MipFilter,
D3DCOLOR ColorKey,
D3DXIMAGE_INFO *pSrcInfo,
PALETTEENTRY *pPalette,
LPDIRECT3DTEXTURE9 *ppTexture
);

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!